A view that allows setting a numerical value by means of moving a sliding handle. It can have horizontal or vertical orientation, meaning the direction in which the handle moves.
When a new Slider 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.
Numerical value between 0 and 1, represented by the handle position within the groove.
A Float. |
The orientation of the Slider - the direction in which the handle moves. The default value depends on the size of the view when created.
One of the two Symbols: \horizontal or \vertical. |
The size of the handle - its width or height, depending on -orientation.
An Integer amount of pixels. |
The color of the handle.
A Color. |
The amount by which the value will changed when -increment or -decrement is called, or when related keys are pressed.
A Float. |
The absolute amount by which the value would change if the handle moved by one pixel.
A Float.
The factor by which -step is multiplied when incrementing or decrementing the value by keyboard while the Shift key is pressed.
A Float. |
The factor by which -step is multiplied when incrementing or decrementing the value by keyboard while the Ctrl key is pressed.
A Float. |
The factor by which -step is multiplied when incrementing or decrementing the value by keyboard while the Alt key is pressed.
A Float. |
The action object evaluated whenever the user moves the handle.
Implements the default effects of key presses as follows:
Key | Effect |
r | valueAction_(1.0.rand) |
n | valueAction_(0) |
x | valueAction_(1) |
c | valueAction_(0.5) |
] | increment |
[ | decrement |
up arrow | increment |
down arrow | decrement |
right arrow | increment |
left arrow | decrement |
The -value.
True if the current drag data is a number.
Sets -valueAction to the current drag data.
This is useful for adding things to existing frameworks that have action functions already.