C# Class Gruppe22.Client.TextInput

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

Protected Properties

Property Type Description
_background Microsoft.Xna.Framework.Graphics.Texture2D
_canEdit bool
_font Microsoft.Xna.Framework.Graphics.SpriteFont
_label string
_text string
_textWidth int
_tooltip string

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
HandleEvent ( bool DownStream, Backend eventID ) : void
OnKeyDown ( Microsoft k ) : bool
TextInput ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string label, string text, string toolTip, int inputWidth, bool canEdit ) : System

Update ( GameTime gameTime ) : void

Protected Methods

Method Description
_DisplayToolTip ( ) : void

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

Method Details

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

TextInput() public method

public TextInput ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, string label, string text, string toolTip, int inputWidth, bool canEdit ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
label string
text string
toolTip string
inputWidth int
canEdit bool
return System

Update() public method

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

_DisplayToolTip() protected method

Append a new line of text to the status box; word wrap if necessary
protected _DisplayToolTip ( ) : void
return void

Property Details

_background protected property

protected Texture2D,Microsoft.Xna.Framework.Graphics _background
return Microsoft.Xna.Framework.Graphics.Texture2D

_canEdit protected property

protected bool _canEdit
return bool

_font protected property

protected SpriteFont,Microsoft.Xna.Framework.Graphics _font
return Microsoft.Xna.Framework.Graphics.SpriteFont

_label protected property

protected string _label
return string

_text protected property

protected string _text
return string

_textWidth protected property

protected int _textWidth
return int

_tooltip protected property

protected string _tooltip
return string