C# Class Gruppe22.Client.TextInput

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

Protected Properties

Свойство Type Description
_background Microsoft.Xna.Framework.Graphics.Texture2D
_canEdit bool
_font Microsoft.Xna.Framework.Graphics.SpriteFont
_label string
_text string
_textWidth int
_tooltip string

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
_DisplayToolTip ( ) : void

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

Method Details

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

OnKeyDown() public méthode

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

TextInput() public méthode

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
Résultat System

Update() public méthode

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

_DisplayToolTip() protected méthode

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

Property Details

_background protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics _background
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

_canEdit protected_oe property

protected bool _canEdit
Résultat bool

_font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics _font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

_label protected_oe property

protected string _label
Résultat string

_text protected_oe property

protected string _text
Résultat string

_textWidth protected_oe property

protected int _textWidth
Résultat int

_tooltip protected_oe property

protected string _tooltip
Résultat string