C# Class Flood.GUI.Controls.Slider

Base slider.
Inheritance: Control
Afficher le fichier Open project: FloodProject/flood

Protected Properties

Свойство Type Description
m_Max float
m_Min float
m_NotchCount int
m_SliderBar Flood.GUI.ControlInternal.SliderBar
m_SnapToNotches bool
m_Value float

Méthodes publiques

Méthode Description
SetRange ( float min, float max ) : void

Sets the value range.

Méthodes protégées

Méthode Description
CalculateValue ( ) : float
OnKeyDown ( bool down ) : bool

Handler for Down Arrow keyboard event.

OnKeyEnd ( bool down ) : bool

Handler for End keyboard event.

OnKeyHome ( bool down ) : bool

Handler for Home keyboard event.

OnKeyLeft ( bool down ) : bool

Handler for Left Arrow keyboard event.

OnKeyRight ( bool down ) : bool

Handler for Right Arrow keyboard event.

OnKeyUp ( bool down ) : bool

Handler for Up Arrow keyboard event.

OnMouseClickedLeft ( int x, int y, bool down ) : void

Handler invoked on mouse click (left) event.

OnMoved ( Control control ) : void
RenderFocus ( Skins skin ) : void

Renders the focus overlay.

SetValueInternal ( float val ) : void
Slider ( Control parent ) : System

Initializes a new instance of the Slider class.

UpdateBarFromValue ( ) : void

Method Details

CalculateValue() protected méthode

protected CalculateValue ( ) : float
Résultat float

OnKeyDown() protected méthode

Handler for Down Arrow keyboard event.
protected OnKeyDown ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyEnd() protected méthode

Handler for End keyboard event.
protected OnKeyEnd ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyHome() protected méthode

Handler for Home keyboard event.
protected OnKeyHome ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyLeft() protected méthode

Handler for Left Arrow keyboard event.
protected OnKeyLeft ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyRight() protected méthode

Handler for Right Arrow keyboard event.
protected OnKeyRight ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnKeyUp() protected méthode

Handler for Up Arrow keyboard event.
protected OnKeyUp ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
Résultat bool

OnMouseClickedLeft() protected méthode

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
Résultat void

OnMoved() protected méthode

protected OnMoved ( Control control ) : void
control Control
Résultat void

RenderFocus() protected méthode

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
Résultat void

SetRange() public méthode

Sets the value range.
public SetRange ( float min, float max ) : void
min float Minimum value.
max float Maximum value.
Résultat void

SetValueInternal() protected méthode

protected SetValueInternal ( float val ) : void
val float
Résultat void

Slider() protected méthode

Initializes a new instance of the Slider class.
protected Slider ( Control parent ) : System
parent Control Parent control.
Résultat System

UpdateBarFromValue() protected méthode

protected UpdateBarFromValue ( ) : void
Résultat void

Property Details

m_Max protected_oe property

protected float m_Max
Résultat float

m_Min protected_oe property

protected float m_Min
Résultat float

m_NotchCount protected_oe property

protected int m_NotchCount
Résultat int

m_SliderBar protected_oe property

protected SliderBar,Flood.GUI.ControlInternal m_SliderBar
Résultat Flood.GUI.ControlInternal.SliderBar

m_SnapToNotches protected_oe property

protected bool m_SnapToNotches
Résultat bool

m_Value protected_oe property

protected float m_Value
Résultat float