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.
Dragging the mouse pointer on either end of the range moves the end by itself. Dragging in the middle of the range moves the whole range without changing its size.
When a new RangeSlider is created, its -orientation is determined by the initial size: if it is wider than high, the orientation will be horizontal, otherwise it will be vertical.
The low end of the range.
If you attempt to set it higher then the current -hi, -hi will be set instead, and -lo will become the old -hi.
When setting -lo the value will always be clipped to the range between 0 and 1.
A Float between 0 and 1. |
The high end of the range. If you attempt to set it lower then the current -lo, -lo will be set instead, and -hi will become the old -lo.
When setting -hi the value will always be clipped to the range between 0 and 1.
A Float between 0 and 1. |
Sets -lo and -hi according to their deviation and their average instead of their absolute values.
deviation |
A Float determining the absolute deviation of -lo and -hi from their average. |
average |
A Float determining the average of -lo and -hi. |
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.
One of the two Symbols: \horizontal or \vertical. |
The color of the handle.
A Color. |
The amount by which the range will change when -increment or -decrement is called, or when related keys are pressed.
A Float. |
The absolute amount by which the range would change if the handle moved by one pixel.
A Float.
The factor by which -step is multiplied when incrementing or decrementing the range by keyboard while the Shift key is pressed.
A Float. |
The factor by which -step is multiplied when incrementing or decrementing the range by keyboard while the Ctrl key is pressed.
A Float. |
The factor by which -step is multiplied when incrementing or decrementing the range by keyboard while the Alt key is pressed.
A Float. |
The action object evaluated whenever the user changes the position or size of the handle.
Implements the default effects of key presses as follows:
Key | Effect |
a | lo_(0), hi_(1), and triggers action |
n | lo_(0), hi_(0), and triggers action |
x | lo_(1), hi_(1), and triggers action |
c | lo_(0.5), hi_(0.5), and triggers action |
up arrow | increment |
down arrow | decrement |
right arrow | increment |
left arrow | decrement |
True if the current drag data is a Point.
Sets -lo and -hi to the two coordinates of the Point stored as the current drag data, respectively, and triggers the -action.
Shape a bandpass filter.
In Cocoa GUI, hold down the Ctrl key to move the whole range; in other GUI kits you can simply click within the range and drag it.