C# Class Ensage.Common.Menu.Draw.OnOffSlider

The on off.
显示文件 Open project: EnsageSharp/Ensage.Common

Private Properties

Property Type Description

Public Methods

Method Description
Draw ( System.Vector2 mousePosition ) : void

The draw.

LeftButtonDown ( System.Vector2 mousePosition ) : void

The left button down.

LeftButtonUp ( ) : void

The left button up.

OnOffSlider ( Color onColor, Color offColor, float height, bool enabled ) : System

Initializes a new instance of the OnOffSlider class.

Method Details

Draw() public method

The draw.
public Draw ( System.Vector2 mousePosition ) : void
mousePosition System.Vector2 /// The mouse position. ///
return void

LeftButtonDown() public method

The left button down.
public LeftButtonDown ( System.Vector2 mousePosition ) : void
mousePosition System.Vector2 /// The mouse position. ///
return void

LeftButtonUp() public method

The left button up.
public LeftButtonUp ( ) : void
return void

OnOffSlider() public method

Initializes a new instance of the OnOffSlider class.
public OnOffSlider ( Color onColor, Color offColor, float height, bool enabled ) : System
onColor Color /// The on color. ///
offColor Color /// The off color. ///
height float /// The height. ///
enabled bool /// The enabled. ///
return System