C# Класс MoodSwingGUI.MSTextField

Наследование: MSGUITypable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GoHome ( ) : void
GoToEnd ( ) : void
InsertAfterCursor ( String s ) : void
RemoveBeforeCursor ( ) : void
ShiftCursorLeft ( ) : void
ShiftCursorRight ( ) : void

Описание методов

Draw() публичный Метод

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

HandleKeyboardInput() публичный Метод

public HandleKeyboardInput ( KeyboardState oldKeyboardState ) : void
oldKeyboardState Microsoft.Xna.Framework.Input.KeyboardState
Результат void

Hover() публичный Метод

public Hover ( ) : void
Результат void

LeftClick() публичный Метод

public LeftClick ( ) : void
Результат void

MSTextField() публичный Метод

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
Результат System

MSTextField() публичный Метод

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
Результат System

MiddleClick() публичный Метод

public MiddleClick ( ) : void
Результат void

RightClick() публичный Метод

public RightClick ( ) : void
Результат void

UnHover() публичный Метод

public UnHover ( ) : void
Результат void

UnLeftClick() публичный Метод

public UnLeftClick ( ) : void
Результат void

UnMiddleClick() публичный Метод

public UnMiddleClick ( ) : void
Результат void

UnRightClick() публичный Метод

public UnRightClick ( ) : void
Результат void