C# Class OpenRA.Mods.Common.Widgets.SliderWidget

Inheritance: OpenRA.Widgets.Widget
Mostra file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
GetValue Func
IsDisabled Func
MaximumValue float
MinimumValue float
Thumb string
Ticks int
Track string
TrackHeight int
Value float

Protected Properties

Property Type Description
isMoving bool

Private Properties

Property Type Description
ValueFromPx float

Public Methods

Method Description
Clone ( ) : OpenRA.Widgets.Widget
Draw ( ) : void
HandleMouseInput ( MouseInput mi ) : bool
SliderWidget ( ) : System
SliderWidget ( SliderWidget other ) : System
UpdateValue ( float newValue ) : void

Protected Methods

Method Description
PxFromValue ( float x ) : int

Private Methods

Method Description
ValueFromPx ( int x ) : float

Method Details

Clone() public method

public Clone ( ) : OpenRA.Widgets.Widget
return OpenRA.Widgets.Widget

Draw() public method

public Draw ( ) : void
return void

HandleMouseInput() public method

public HandleMouseInput ( MouseInput mi ) : bool
mi MouseInput
return bool

PxFromValue() protected method

protected PxFromValue ( float x ) : int
x float
return int

SliderWidget() public method

public SliderWidget ( ) : System
return System

SliderWidget() public method

public SliderWidget ( SliderWidget other ) : System
other SliderWidget
return System

UpdateValue() public method

public UpdateValue ( float newValue ) : void
newValue float
return void

Property Details

GetValue public_oe property

public Func GetValue
return Func

IsDisabled public_oe property

public Func IsDisabled
return Func

MaximumValue public_oe property

public float MaximumValue
return float

MinimumValue public_oe property

public float MinimumValue
return float

Thumb public_oe property

public string Thumb
return string

Ticks public_oe property

public int Ticks
return int

Track public_oe property

public string Track
return string

TrackHeight public_oe property

public int TrackHeight
return int

Value public_oe property

public float Value
return float

isMoving protected_oe property

protected bool isMoving
return bool