C# 클래스 Nez.UI.Slider

상속: ProgressBar, IInputListener, IGamepadFocusable
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
sliderBoundaryThreshold float

공개 메소드들

메소드 설명
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, SliderStyle style ) : System

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 ( ) : SliderStyle

Returns the slider's style. Modifying the returned style may not have an effect until {@link #setStyle(SliderStyle)} is called

isDragging ( ) : bool
setStyle ( SliderStyle style ) : void

보호된 메소드들

메소드 설명
getKnobDrawable ( ) : IDrawable
onActionButtonPressed ( ) : void
onActionButtonReleased ( ) : void
onFocused ( ) : void
onUnfocused ( ) : void
onUnhandledDirectionPressed ( Direction direction ) : void

비공개 메소드들

메소드 설명
IInputListener ( Vector2 mousePos ) : bool
IInputListener ( int mouseWheelDelta ) : bool

메소드 상세

IGamepadFocusable() 공개 메소드

public IGamepadFocusable ( ) : void
리턴 void

IGamepadFocusable() 공개 메소드

public IGamepadFocusable ( Direction direction ) : void
direction Direction
리턴 void

IInputListener() 공개 메소드

public IInputListener ( ) : void
리턴 void

IInputListener() 공개 메소드

public IInputListener ( Vector2 mousePos ) : void
mousePos Vector2
리턴 void

Slider() 공개 메소드

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
리턴 System

Slider() 공개 메소드

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.
public Slider ( float min, float max, float stepSize, bool vertical, SliderStyle style ) : System
min float Minimum.
max float Max.
stepSize float Step size.
vertical bool If set to true vertical.
style SliderStyle
리턴 System

calculatePositionAndValue() 공개 메소드

public calculatePositionAndValue ( Vector2 mousePos ) : void
mousePos Vector2
리턴 void

enableExplicitFocusableControl() 공개 메소드

public enableExplicitFocusableControl ( IGamepadFocusable upEle, IGamepadFocusable downEle, IGamepadFocusable leftEle, IGamepadFocusable rightEle ) : void
upEle IGamepadFocusable
downEle IGamepadFocusable
leftEle IGamepadFocusable
rightEle IGamepadFocusable
리턴 void

getKnobDrawable() 보호된 메소드

protected getKnobDrawable ( ) : IDrawable
리턴 IDrawable

getStyle() 공개 메소드

Returns the slider's style. Modifying the returned style may not have an effect until {@link #setStyle(SliderStyle)} is called
public getStyle ( ) : SliderStyle
리턴 SliderStyle

isDragging() 공개 메소드

public isDragging ( ) : bool
리턴 bool

onActionButtonPressed() 보호된 메소드

protected onActionButtonPressed ( ) : void
리턴 void

onActionButtonReleased() 보호된 메소드

protected onActionButtonReleased ( ) : void
리턴 void

onFocused() 보호된 메소드

protected onFocused ( ) : void
리턴 void

onUnfocused() 보호된 메소드

protected onUnfocused ( ) : void
리턴 void

onUnhandledDirectionPressed() 보호된 메소드

protected onUnhandledDirectionPressed ( Direction direction ) : void
direction Direction
리턴 void

setStyle() 공개 메소드

public setStyle ( SliderStyle style ) : void
style SliderStyle
리턴 void

프로퍼티 상세

sliderBoundaryThreshold 공개적으로 프로퍼티

the maximum distance outside the slider the mouse can move when pressing it to cause it to be unfocused
public float sliderBoundaryThreshold
리턴 float