C# Class WaveEngine.Components.UI.Button

Button decorate class
Inheritance: UIBase
Mostra file Open project: WaveEngine/Components Class Usage Examples

Private Properties

Property Type Description
ChangeBackgroundImage void
Entity_EntityInitialized void
TouchGestures_TouchPressed void
TouchGestures_TouchReleased void

Public Methods

Method Description
Button ( ) : System

Initializes a new instance of the Button class.

Button ( string name ) : System

Initializes a new instance of the Button class.

Private Methods

Method Description
ChangeBackgroundImage ( string imagePath ) : void

Modifies the background image with the new asset path.

Entity_EntityInitialized ( object sender, EventArgs e ) : void

Handles the EntityInitialized event of the entity control.

TouchGestures_TouchPressed ( object sender, GestureEventArgs e ) : void

If a pressed background image is set, it draws this last one instead of background image, just up to the released event is catched.

TouchGestures_TouchReleased ( object sender, GestureEventArgs e ) : void

Handles the TouchReleased event of the Button control.

Method Details

Button() public method

Initializes a new instance of the Button class.
public Button ( ) : System
return System

Button() public method

Initializes a new instance of the Button class.
public Button ( string name ) : System
name string The name.
return System