C# 클래스 MoodSwingGUI.MSTextField

상속: MSGUITypable
파일 보기 프로젝트 열기: verngutz/MoodSwing 1 사용 예제들

공개 메소드들

메소드 설명
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