C# Class MoodSwingGUI.MSTextField

Inheritance: MSGUITypable
Afficher le fichier Open project: verngutz/MoodSwing Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void
HandleKeyboardInput ( KeyboardState oldKeyboardState ) : void
Hover ( ) : void
LeftClick ( ) : void
MSTextField ( String text, Rectangle boundingRectangle, MSAction onEnter, MSGUITypable onTab, int maxTextLength, SpriteFont spriteFont, Color color, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System

Constructs and MSTextField from the given parameters

MSTextField ( String text, Rectangle boundingRectangle, MSAction onEnter, MSGUITypable onTab, int maxTextLength, SpriteFont spriteFont, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MiddleClick ( ) : void
RightClick ( ) : void
UnHover ( ) : void
UnLeftClick ( ) : void
UnMiddleClick ( ) : void
UnRightClick ( ) : void

Private Methods

Méthode Description
GoHome ( ) : void
GoToEnd ( ) : void
InsertAfterCursor ( String s ) : void
RemoveBeforeCursor ( ) : void
ShiftCursorLeft ( ) : void
ShiftCursorRight ( ) : void

Method Details

Draw() public méthode

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

HandleKeyboardInput() public méthode

public HandleKeyboardInput ( KeyboardState oldKeyboardState ) : void
oldKeyboardState Microsoft.Xna.Framework.Input.KeyboardState
Résultat void

Hover() public méthode

public Hover ( ) : void
Résultat void

LeftClick() public méthode

public LeftClick ( ) : void
Résultat void

MSTextField() public méthode

Constructs and MSTextField from the given parameters
public MSTextField ( String text, Rectangle boundingRectangle, MSAction onEnter, MSGUITypable onTab, int maxTextLength, SpriteFont spriteFont, Color color, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
text String the initial text this MSTextField contains
boundingRectangle Microsoft.Xna.Framework.Rectangle the bounding Rectangle of this MSTextField
onEnter MSAction the MSAction to perform when this MSTextField is focused and the Enter key has been pressed
onTab MSGUITypable the MSGUITypable that will be given the keyboard focus when this MSTextField is focused and the Tab key has been pressed
maxTextLength int the maximum length of the text that this MSTextField can contain
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont the SpriteFont that will be used to draw the text on this MSTextField
color Color the text color of this MSTextField
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch the SpriteBatch that will draw this MSTextField
game Microsoft.Xna.Framework.Game the Game where this MSTextField will be used
Résultat System

MSTextField() public méthode

public MSTextField ( String text, Rectangle boundingRectangle, MSAction onEnter, MSGUITypable onTab, int maxTextLength, SpriteFont spriteFont, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
text String
boundingRectangle Microsoft.Xna.Framework.Rectangle
onEnter MSAction
onTab MSGUITypable
maxTextLength int
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
Résultat System

MiddleClick() public méthode

public MiddleClick ( ) : void
Résultat void

RightClick() public méthode

public RightClick ( ) : void
Résultat void

UnHover() public méthode

public UnHover ( ) : void
Résultat void

UnLeftClick() public méthode

public UnLeftClick ( ) : void
Résultat void

UnMiddleClick() public méthode

public UnMiddleClick ( ) : void
Résultat void

UnRightClick() public méthode

public UnRightClick ( ) : void
Résultat void