C# Class Nez.UI.ProgressBar

Inheritance: Element
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
disabled bool
shiftIgnoresSnap bool
snapThreshold float
snapValues float[]

Protected Properties

Property Type Description
_min float
_value float
_vertical bool
position float

Public Methods

Method Description
ProgressBar ( Skin skin, string styleName = null ) : System
ProgressBar ( float min, float max, float stepSize, bool vertical, ProgressBarStyle style ) : System
draw ( Graphics graphics, float parentAlpha ) : void
getStyle ( ) : ProgressBarStyle

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

getVisualPercent ( ) : float
setStepSize ( float stepSize ) : ProgressBar
setStyle ( ProgressBarStyle style ) : void
setValue ( float value ) : void

Sets the progress bar position, rounded to the nearest step size and clamped to the minimum and maximum values.

Protected Methods

Method Description
getKnobDrawable ( ) : IDrawable

Private Methods

Method Description
snap ( float value ) : float

Returns a snapped value

Method Details

ProgressBar() public method

public ProgressBar ( Skin skin, string styleName = null ) : System
skin Skin
styleName string
return System

ProgressBar() public method

public ProgressBar ( float min, float max, float stepSize, bool vertical, ProgressBarStyle style ) : System
min float
max float
stepSize float
vertical bool
style ProgressBarStyle
return System

draw() public method

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
return void

getKnobDrawable() protected method

protected getKnobDrawable ( ) : IDrawable
return IDrawable

getStyle() public method

Returns the progress bar's style. Modifying the returned style may not have an effect until {@link #setStyle(ProgressBarStyle)} is called.
public getStyle ( ) : ProgressBarStyle
return ProgressBarStyle

getVisualPercent() public method

public getVisualPercent ( ) : float
return float

setStepSize() public method

public setStepSize ( float stepSize ) : ProgressBar
stepSize float
return ProgressBar

setStyle() public method

public setStyle ( ProgressBarStyle style ) : void
style ProgressBarStyle
return void

setValue() public method

Sets the progress bar position, rounded to the nearest step size and clamped to the minimum and maximum values.
public setValue ( float value ) : void
value float Value.
return void

Property Details

_min protected_oe property

protected float _min
return float

_value protected_oe property

protected float _value
return float

_vertical protected_oe property

protected bool _vertical
return bool

disabled public_oe property

public bool disabled
return bool

position protected_oe property

protected float position
return float

shiftIgnoresSnap public_oe property

public bool shiftIgnoresSnap
return bool

snapThreshold public_oe property

public float snapThreshold
return float

snapValues public_oe property

public float[] snapValues
return float[]