C# Class Gruppe22.Client.Toolbar

Inheritance: UIElement
Show file Open project: propra13-orga/gruppe22 Class Usage Examples

Public Methods

Method Description
DisplayToolTip ( int icon ) : void

Append a new line of text to the status box; word wrap if necessary

Draw ( GameTime gametime ) : void
HandleEvent ( bool DownStream, Backend eventID ) : void
OnKeyDown ( Microsoft k ) : bool
OnMouseDown ( int button ) : bool
OnMouseUp ( int button ) : bool
Pos2Tile ( int x, int y ) : int
Toolbar ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, Backend actor ) : System
Update ( GameTime gameTime ) : void

Method Details

DisplayToolTip() public method

Append a new line of text to the status box; word wrap if necessary
public DisplayToolTip ( int icon ) : void
icon int
return void

Draw() public method

public Draw ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
return void

HandleEvent() public method

public HandleEvent ( bool DownStream, Backend eventID ) : void
DownStream bool
eventID Backend
return void

OnKeyDown() public method

public OnKeyDown ( Microsoft k ) : bool
k Microsoft
return bool

OnMouseDown() public method

public OnMouseDown ( int button ) : bool
button int
return bool

OnMouseUp() public method

public OnMouseUp ( int button ) : bool
button int
return bool

Pos2Tile() public method

public Pos2Tile ( int x, int y ) : int
x int
y int
return int

Toolbar() public method

public Toolbar ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, Backend actor ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
actor Backend
return System

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void