C# 클래스 XNAInterfaceComponents.ChildComponents.XNATextField

상속: XNAInterfaceComponents.AbstractComponents.ChildComponent, Focusable, KeyboardListener, MouseClickListener, MouseMotionListener
파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DeleteCharacterAt void
InsertStringAtCaret void
ProcessKey void

공개 메소드들

메소드 설명
CalculateVerticalScrollBarHeight ( ) : int

Calculates the vertical scrollbar height.

Draw ( SpriteBatch sb ) : void
GetDisplayText ( ) : String

Gets the display text

GetPixelsPerScrollBarTick ( ) : double

Gets the amount of pixels the scrollbar needs to scroll before a row up or down is shown.

GetTextOnRow ( int row ) : String

Gets the text on a row.

OnFocusLost ( ) : void
OnFocusReceived ( ) : void
OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
OnKeyReleased ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
OnKeyTyped ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
OnMouseClick ( MouseEvent e ) : void
OnMouseDrag ( MouseEvent e ) : void
OnMouseEnter ( MouseEvent e ) : void
OnMouseExit ( MouseEvent e ) : void
OnMouseMotion ( MouseEvent e ) : void
OnMouseRelease ( MouseEvent e ) : void
ShouldDrawVerticalScrollBar ( ) : System.Boolean

Checks whether we should draw the scrollbar

Unload ( ) : void
Update ( ) : void
XNATextField ( ParentComponent parent, Rectangle bounds, int rows ) : System

비공개 메소드들

메소드 설명
DeleteCharacterAt ( int index, System.Boolean isBackspace ) : void

Deletes a character, and places the caret before or after the deleted character

InsertStringAtCaret ( String s ) : void

Inserts a string at the current caret position.

ProcessKey ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void

메소드 상세

CalculateVerticalScrollBarHeight() 공개 메소드

Calculates the vertical scrollbar height.
public CalculateVerticalScrollBarHeight ( ) : int
리턴 int

Draw() 공개 메소드

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

GetDisplayText() 공개 메소드

Gets the display text
public GetDisplayText ( ) : String
리턴 String

GetPixelsPerScrollBarTick() 공개 메소드

Gets the amount of pixels the scrollbar needs to scroll before a row up or down is shown.
public GetPixelsPerScrollBarTick ( ) : double
리턴 double

GetTextOnRow() 공개 메소드

Gets the text on a row.
public GetTextOnRow ( int row ) : String
row int The row.
리턴 String

OnFocusLost() 공개 메소드

public OnFocusLost ( ) : void
리턴 void

OnFocusReceived() 공개 메소드

public OnFocusReceived ( ) : void
리턴 void

OnKeyPressed() 공개 메소드

public OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent
리턴 void

OnKeyReleased() 공개 메소드

public OnKeyReleased ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent
리턴 void

OnKeyTyped() 공개 메소드

public OnKeyTyped ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent
리턴 void

OnMouseClick() 공개 메소드

public OnMouseClick ( MouseEvent e ) : void
e MouseEvent
리턴 void

OnMouseDrag() 공개 메소드

public OnMouseDrag ( MouseEvent e ) : void
e MouseEvent
리턴 void

OnMouseEnter() 공개 메소드

public OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
리턴 void

OnMouseExit() 공개 메소드

public OnMouseExit ( MouseEvent e ) : void
e MouseEvent
리턴 void

OnMouseMotion() 공개 메소드

public OnMouseMotion ( MouseEvent e ) : void
e MouseEvent
리턴 void

OnMouseRelease() 공개 메소드

public OnMouseRelease ( MouseEvent e ) : void
e MouseEvent
리턴 void

ShouldDrawVerticalScrollBar() 공개 메소드

Checks whether we should draw the scrollbar
public ShouldDrawVerticalScrollBar ( ) : System.Boolean
리턴 System.Boolean

Unload() 공개 메소드

public Unload ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

XNATextField() 공개 메소드

public XNATextField ( ParentComponent parent, Rectangle bounds, int rows ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
rows int
리턴 System