C# Class Myre.UI.Controls.TextBox

A text box control.
Inheritance: Control
显示文件 Open project: martindevans/Myre Class Usage Examples

Public Methods

Method Description
BeginTyping ( Microsoft.Xna.Framework.PlayerIndex player ) : void
Draw ( SpriteBatch spriteBatch ) : void
TextBox ( Control parent, Microsoft.Xna.Framework.Game game, SpriteFont font, string title, string description ) : System
Update ( Microsoft.Xna.Framework.GameTime gameTime ) : void

Private Methods

Method Description
Backspace ( ) : void
CompleteMove ( bool shift ) : void
Copy ( ) : void
Cut ( ) : void
Delete ( ) : void
Dirty ( ) : void
End ( bool shift ) : void
Home ( bool shift ) : void
Left ( bool shift ) : void
MeasureString ( StringBuilder sb, int startIndex, int length ) : Vector2
NewOrRepeat ( Keys key ) : bool
Paste ( ) : void
ReadNavigationKeys ( ) : void
Right ( bool shift ) : void
UpdatePositions ( ) : void
Write ( string characters ) : void

Method Details

BeginTyping() public method

public BeginTyping ( Microsoft.Xna.Framework.PlayerIndex player ) : void
player Microsoft.Xna.Framework.PlayerIndex
return void

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

TextBox() public method

public TextBox ( Control parent, Microsoft.Xna.Framework.Game game, SpriteFont font, string title, string description ) : System
parent Control
game Microsoft.Xna.Framework.Game
font Microsoft.Xna.Framework.Graphics.SpriteFont
title string
description string
return System

Update() public method

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