C# Class Gruppe22.Client.Button

Inheritance: UIElement, IDisposable
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Méthode Description
Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string label, int id, bool staydown = false ) : System

Create a button using a text label

Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string normal, string active, string pressed, int id ) : System

Create a button using a bitmap

Dispose ( ) : void
Draw ( GameTime gameTime ) : void

HandleEvent ( bool downstream, Backend eventID ) : void
Hide ( ) : void
OnKeyDown ( Keys k ) : bool
OnMouseDown ( int button ) : bool

Show ( ) : void

Method Details

Button() public méthode

Create a button using a text label
public Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string label, int id, bool staydown = false ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
label string
id int
staydown bool
Résultat System

Button() public méthode

Create a button using a bitmap
public Button ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string normal, string active, string pressed, int id ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
normal string
active string
pressed string
id int
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

HandleEvent() public méthode

public HandleEvent ( bool downstream, Backend eventID ) : void
downstream bool
eventID Backend
Résultat void

Hide() public méthode

public Hide ( ) : void
Résultat void

OnKeyDown() public méthode

public OnKeyDown ( Keys k ) : bool
k Keys
Résultat bool

OnMouseDown() public méthode

public OnMouseDown ( int button ) : bool
button int
Résultat bool

Show() public méthode

public Show ( ) : void
Résultat void