3 summary:: A view consisting of a sliding extendable handle
8 A view that allows setting two numerical values between 0 and 1, represented by the two ends of a movable and extendable handle. It can have horizontal or vertical orientation, meaning the direction in which the handle moves and extends.
10 Clicking and moving the mouse pointer within the view will define the two ends of the range. Doing the same while holding down the Ctrl key will move the whole range without changing its size.
20 When a new RangeSlider is created, its link::#-orientation:: is determined by the initial size: if it is wider than high, the orientation will be horizontal, otherwise it will be vertical.
31 The low end of the range.
33 If you attempt to set it higher then the current link::#-hi::, -hi will be set instead, and -lo will become the old -hi.
35 When setting -lo the value will always be clipped to the range between 0 and 1.
38 A Float between 0 and 1.
42 The high end of the range. If you attempt to set it lower then the current link::#-lo::, -lo will be set instead, and -hi will become the old -lo.
44 When setting -hi the value will always be clipped to the range between 0 and 1.
47 A Float between 0 and 1.
51 Sets link::#-lo:: to the argument and triggers link::#-action::.
55 Sets link::#-hi:: to the argument and triggers link::#-action::.
59 The difference between link::#-hi:: and link::#-lo::. Setting -range will set -hi to -lo + -range.
63 Sets link::#-range:: to the argument and triggers link::#-action::.
67 Sets link::#-lo:: and link::#-hi:: to each of the arguments, respectively.
69 METHOD:: setSpanActive
71 Calls link::#-setSpan::, forwarding the arguments, and triggers link::#-action::.
75 Sets link::#-lo:: and link::#-hi:: according to their deviation and their average instead of their absolute values.
78 A Float determining the absolute deviation of -lo and -hi from their average.
80 A Float determining the average of -lo and -hi.
83 Increments both link::#-lo:: and link::#-hi:: by link::#-step:: multiplied by 'factor'.
89 Decrements both link::#-lo:: and link::#-hi:: by link::#-step:: multiplied by 'factor'.
98 SUBSECTION:: Appearance
101 The orientation of the RangeSlider - the direction in which the handle moves and is extendable. The default value depends on the size of the view when created.
104 One of the two Symbols: \horizontal or \vertical.
107 The color of the handle.
115 SUBSECTION:: Interaction
118 The amount by which the range will change when link::#-increment:: or link::#-decrement:: is called, or when related keys are pressed.
124 The absolute amount by which the range would change if the handle moved by one pixel.
130 The factor by which link::#-step:: is multiplied when incrementing or decrementing the range by keyboard while the Shift key is pressed.
136 The factor by which link::#-step:: is multiplied when incrementing or decrementing the range by keyboard while the Ctrl key is pressed.
142 The factor by which link::#-step:: is multiplied when incrementing or decrementing the range by keyboard while the Alt key is pressed.
152 The action object evaluated whenever the user changes the position or size of the handle.
154 METHOD:: defaultKeyDownAction
156 Implements the default effects of key presses as follows:
159 ## strong::Key:: || strong::Effect::
160 ## a || lo_(0), hi_(1), and triggers action
161 ## n || lo_(0), hi_(0), and triggers action
162 ## x || lo_(1), hi_(1), and triggers action
163 ## c || lo_(0.5), hi_(0.5), and triggers action
164 ## up arrow || increment
165 ## down arrow || decrement
166 ## right arrow || increment
167 ## left arrow || decrement
172 SUBSECTION:: Drag and drop
174 METHOD:: defaultGetDrag
176 A Point of which the x and y coordinates are set to link::#-lo:: and link::#-hi::, respectively.
178 METHOD:: defaultCanReceiveDrag
180 True if the current drag data is a Point.
182 METHOD:: defaultReceiveDrag
183 Sets link::#-lo:: and link::#-hi:: to the two coordinates of the Point stored as the current drag data, respectively, and triggers the link::#-action::.