C# Class Nez.UI.ProgressBar

Inheritance: Element
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
disabled bool
shiftIgnoresSnap bool
snapThreshold float
snapValues float[]

Protected Properties

Свойство Type Description
_min float
_value float
_vertical bool
position float

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getKnobDrawable ( ) : IDrawable

Private Methods

Méthode Description
snap ( float value ) : float

Returns a snapped value

Method Details

ProgressBar() public méthode

public ProgressBar ( Skin skin, string styleName = null ) : System
skin Skin
styleName string
Résultat System

ProgressBar() public méthode

public ProgressBar ( float min, float max, float stepSize, bool vertical, ProgressBarStyle style ) : System
min float
max float
stepSize float
vertical bool
style ProgressBarStyle
Résultat System

draw() public méthode

public draw ( Graphics graphics, float parentAlpha ) : void
graphics Graphics
parentAlpha float
Résultat void

getKnobDrawable() protected méthode

protected getKnobDrawable ( ) : IDrawable
Résultat IDrawable

getStyle() public méthode

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

getVisualPercent() public méthode

public getVisualPercent ( ) : float
Résultat float

setStepSize() public méthode

public setStepSize ( float stepSize ) : ProgressBar
stepSize float
Résultat ProgressBar

setStyle() public méthode

public setStyle ( ProgressBarStyle style ) : void
style ProgressBarStyle
Résultat void

setValue() public méthode

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.
Résultat void

Property Details

_min protected_oe property

protected float _min
Résultat float

_value protected_oe property

protected float _value
Résultat float

_vertical protected_oe property

protected bool _vertical
Résultat bool

disabled public_oe property

public bool disabled
Résultat bool

position protected_oe property

protected float position
Résultat float

shiftIgnoresSnap public_oe property

public bool shiftIgnoresSnap
Résultat bool

snapThreshold public_oe property

public float snapThreshold
Résultat float

snapValues public_oe property

public float[] snapValues
Résultat float[]