class Slider
package minimalcomps.components
extends Component
extended by HSlider, ScrollSlider, VSlider
Abstract base slider class for HSlider and VSlider.
Constructor
new (?orientation:String, ?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float, ?defaultHandler:Dynamic)
Constructor
Parameters:
orientation | Whether the slider will be horizontal or vertical. |
---|---|
parent | The parent DisplayObjectContainer on which to add this Slider. |
xpos | The x position to place this component. |
ypos | The y position to place this component. |
defaultHandler | The event handling function to handle the default event for this component (change in this case). |
Variables
backClick:Bool
Sets / gets whether or not a click on the background of the slider will move the handler to that position.
tick:Float
Gets / sets the tick value of this slider. This round the value to the nearest multiple of this number.
Methods
setSliderParams (min:Float, max:Float, value:Float):Void
Convenience method to set the three main parameters in one shot.
Parameters:
min | The minimum value of the slider. |
---|---|
max | The maximum value of the slider. |
value | The value of the slider. |