C# Class GrandLarceny.TextButton

Inheritance: Button
Mostra file Open project: melburn/GLhf Class Usage Examples

Public Methods

Method Description
TextButton ( Vector2 a_position, string a_text, string a_font ) : System
TextButton ( Vector2 a_position, string a_text, string a_font, Color a_normal, Color a_hover, Color a_pressed, Color a_toggle ) : System
draw ( GameTime a_gameTime, SpriteBatch a_spriteBatch ) : void
invokeClickEvent ( ) : void
setState ( Button a_state ) : void
update ( ) : bool

Method Details

TextButton() public method

public TextButton ( Vector2 a_position, string a_text, string a_font ) : System
a_position Vector2
a_text string
a_font string
return System

TextButton() public method

public TextButton ( Vector2 a_position, string a_text, string a_font, Color a_normal, Color a_hover, Color a_pressed, Color a_toggle ) : System
a_position Vector2
a_text string
a_font string
a_normal Color
a_hover Color
a_pressed Color
a_toggle Color
return System

draw() public method

public draw ( GameTime a_gameTime, SpriteBatch a_spriteBatch ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
a_spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

invokeClickEvent() public method

public invokeClickEvent ( ) : void
return void

setState() public method

public setState ( Button a_state ) : void
a_state Button
return void

update() public method

public update ( ) : bool
return bool