C# Class XNAInterfaceComponents.ChildComponents.XNATextField

Inheritance: XNAInterfaceComponents.AbstractComponents.ChildComponent, Focusable, KeyboardListener, MouseClickListener, MouseMotionListener
Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Private Properties

Свойство Type Description
DeleteCharacterAt void
InsertStringAtCaret void
ProcessKey void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

CalculateVerticalScrollBarHeight() public méthode

Calculates the vertical scrollbar height.
public CalculateVerticalScrollBarHeight ( ) : int
Résultat int

Draw() public méthode

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetDisplayText() public méthode

Gets the display text
public GetDisplayText ( ) : String
Résultat String

GetPixelsPerScrollBarTick() public méthode

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

GetTextOnRow() public méthode

Gets the text on a row.
public GetTextOnRow ( int row ) : String
row int The row.
Résultat String

OnFocusLost() public méthode

public OnFocusLost ( ) : void
Résultat void

OnFocusReceived() public méthode

public OnFocusReceived ( ) : void
Résultat void

OnKeyPressed() public méthode

public OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent
Résultat void

OnKeyReleased() public méthode

public OnKeyReleased ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent
Résultat void

OnKeyTyped() public méthode

public OnKeyTyped ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent
Résultat void

OnMouseClick() public méthode

public OnMouseClick ( MouseEvent e ) : void
e MouseEvent
Résultat void

OnMouseDrag() public méthode

public OnMouseDrag ( MouseEvent e ) : void
e MouseEvent
Résultat void

OnMouseEnter() public méthode

public OnMouseEnter ( MouseEvent e ) : void
e MouseEvent
Résultat void

OnMouseExit() public méthode

public OnMouseExit ( MouseEvent e ) : void
e MouseEvent
Résultat void

OnMouseMotion() public méthode

public OnMouseMotion ( MouseEvent e ) : void
e MouseEvent
Résultat void

OnMouseRelease() public méthode

public OnMouseRelease ( MouseEvent e ) : void
e MouseEvent
Résultat void

ShouldDrawVerticalScrollBar() public méthode

Checks whether we should draw the scrollbar
public ShouldDrawVerticalScrollBar ( ) : System.Boolean
Résultat System.Boolean

Unload() public méthode

public Unload ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

XNATextField() public méthode

public XNATextField ( ParentComponent parent, Rectangle bounds, int rows ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
bounds Microsoft.Xna.Framework.Rectangle
rows int
Résultat System