C# Class Flood.GUI.Controls.Slider

Base slider.
Inheritance: Control
Datei anzeigen Open project: FloodProject/flood

Protected Properties

Property Type Description
m_Max float
m_Min float
m_NotchCount int
m_SliderBar Flood.GUI.ControlInternal.SliderBar
m_SnapToNotches bool
m_Value float

Public Methods

Method Description
SetRange ( float min, float max ) : void

Sets the value range.

Protected Methods

Method 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 method

protected CalculateValue ( ) : float
return float

OnKeyDown() protected method

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

OnKeyEnd() protected method

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

OnKeyHome() protected method

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

OnKeyLeft() protected method

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

OnKeyRight() protected method

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

OnKeyUp() protected method

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

OnMouseClickedLeft() protected method

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.
return void

OnMoved() protected method

protected OnMoved ( Control control ) : void
control Control
return void

RenderFocus() protected method

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

SetRange() public method

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

SetValueInternal() protected method

protected SetValueInternal ( float val ) : void
val float
return void

Slider() protected method

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

UpdateBarFromValue() protected method

protected UpdateBarFromValue ( ) : void
return void

Property Details

m_Max protected_oe property

protected float m_Max
return float

m_Min protected_oe property

protected float m_Min
return float

m_NotchCount protected_oe property

protected int m_NotchCount
return int

m_SliderBar protected_oe property

protected SliderBar,Flood.GUI.ControlInternal m_SliderBar
return Flood.GUI.ControlInternal.SliderBar

m_SnapToNotches protected_oe property

protected bool m_SnapToNotches
return bool

m_Value protected_oe property

protected float m_Value
return float