C# Class Gruppe22.Client.Window

Inheritance: UIElement
Datei anzeigen Open project: propra13-orga/gruppe22 Class Usage Examples

Protected Properties

Property Type Description
_background Microsoft.Xna.Framework.Graphics.Texture2D
_children List
_focusID int

Public Methods

Method Description
AddChild ( UIElement child ) : void
ChangeFocus ( bool forward = true ) : void
Dispose ( ) : void
Draw ( GameTime gameTime ) : void

HandleEvent ( bool DownStream, Backend eventID ) : void
OnKeyDown ( Keys k ) : bool
OnMouseDown ( int button ) : bool
Update ( GameTime gameTime ) : void

Window ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect ) : System

Constructor

Method Details

AddChild() public method

public AddChild ( UIElement child ) : void
child UIElement
return void

ChangeFocus() public method

public ChangeFocus ( bool forward = true ) : void
forward bool
return void

Dispose() public method

public Dispose ( ) : void
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 ( Keys k ) : bool
k Keys
return bool

OnMouseDown() public method

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

Update() public method

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

Window() public method

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

Property Details

_background protected_oe property

Single pixel to fill background
protected Texture2D,Microsoft.Xna.Framework.Graphics _background
return Microsoft.Xna.Framework.Graphics.Texture2D

_children protected_oe property

UI-Children
protected List _children
return List

_focusID protected_oe property

protected int _focusID
return int