Property | Type | Description | |
---|---|---|---|
sliderBoundaryThreshold | float |
Method | Description | |
---|---|---|
IGamepadFocusable ( ) : void | ||
IGamepadFocusable ( Direction direction ) : void | ||
IInputListener ( ) : void | ||
IInputListener ( Vector2 mousePos ) : void | ||
Slider ( Skin skin, string styleName = null, float min, float max = 1, float step = 0.1f ) : System | ||
Slider ( float min, float max, float stepSize, bool vertical, |
Creates a new slider. It's width is determined by the given prefWidth parameter, its height is determined by the maximum of the height of either the slider {@link NinePatch} or slider handle {@link TextureRegion}. The min and max values determine the range the values of this slider can take on, the stepSize parameter specifies the distance between individual values. E.g. min could be 4, max could be 10 and stepSize could be 0.2, giving you a total of 30 values, 4.0 4.2, 4.4 and so on.
|
|
calculatePositionAndValue ( Vector2 mousePos ) : void | ||
enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void | ||
getStyle ( ) : |
Returns the slider's style. Modifying the returned style may not have an effect until {@link #setStyle(SliderStyle)} is called
|
|
isDragging ( ) : bool | ||
setStyle ( |
Method | Description | |
---|---|---|
getKnobDrawable ( ) : IDrawable | ||
onActionButtonPressed ( ) : void | ||
onActionButtonReleased ( ) : void | ||
onFocused ( ) : void | ||
onUnfocused ( ) : void | ||
onUnhandledDirectionPressed ( Direction direction ) : void |
Method | Description | |
---|---|---|
IInputListener ( Vector2 mousePos ) : bool | ||
IInputListener ( int mouseWheelDelta ) : bool |
public IGamepadFocusable ( Direction direction ) : void | ||
direction | Direction | |
return | void |
public IInputListener ( Vector2 mousePos ) : void | ||
mousePos | Vector2 | |
return | void |
public Slider ( Skin skin, string styleName = null, float min, float max = 1, float step = 0.1f ) : System | ||
skin | Skin | |
styleName | string | |
min | float | |
max | float | |
step | float | |
return | System |
public Slider ( float min, float max, float stepSize, bool vertical, |
||
min | float | Minimum. |
max | float | Max. |
stepSize | float | Step size. |
vertical | bool | If set to |
style | ||
return | System |
public calculatePositionAndValue ( Vector2 mousePos ) : void | ||
mousePos | Vector2 | |
return | void |
public enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void | ||
upEle | IGamepadFocusable | |
downEle | IGamepadFocusable | |
leftEle | IGamepadFocusable | |
rightEle | IGamepadFocusable | |
return | void |
protected onUnhandledDirectionPressed ( Direction direction ) : void | ||
direction | Direction | |
return | void |