3 summary:: A view consisting of a sliding handle.
8 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.
19 When a new Slider 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.
32 Numerical value between 0 and 1, represented by the handle position within the groove.
38 Sets link::#-value:: and triggeres link::#-action::.
41 Increments the value by link::#-step:: multiplied by 'factor'.
47 Decrements the value by link::#-step:: multiplied by 'factor'.
55 SUBSECTION:: Appearance
58 The orientation of the Slider - the direction in which the handle moves. The default value depends on the size of the view when created.
61 One of the two Symbols: \horizontal or \vertical.
64 The size of the handle - its width or height, depending on link::#-orientation::.
67 An Integer amount of pixels.
70 The color of the handle.
77 SUBSECTION:: Interaction
80 The amount by which the value will changed when link::#-increment:: or link::#-decrement:: is called, or when related keys are pressed.
86 The absolute amount by which the value would change if the handle moved by one pixel.
92 The factor by which link::#-step:: is multiplied when incrementing or decrementing the value by keyboard while the Shift key is pressed.
98 The factor by which link::#-step:: is multiplied when incrementing or decrementing the value by keyboard while the Ctrl key is pressed.
104 The factor by which link::#-step:: is multiplied when incrementing or decrementing the value by keyboard while the Alt key is pressed.
113 The action object evaluated whenever the user moves the handle.
115 METHOD:: defaultKeyDownAction
117 Implements the default effects of key presses as follows:
120 ## strong::Key:: || strong::Effect::
121 ## r || valueAction_(1.0.rand)
122 ## n || valueAction_(0)
123 ## x || valueAction_(1)
124 ## c || valueAction_(0.5)
127 ## up arrow || increment
128 ## down arrow || decrement
129 ## right arrow || increment
130 ## left arrow || decrement
135 SUBSECTION:: Drag and drop
137 METHOD:: defaultGetDrag
141 METHOD:: defaultCanReceiveDrag
143 True if the current drag data is a number.
145 METHOD:: defaultReceiveDrag
146 Sets link::#-valueAction:: to the current drag data.