C# Class OpenRA.Mods.Common.Widgets.TextFieldWidget

Inheritance: OpenRA.Widgets.Widget
Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Свойство Type Description
Disabled bool
Font string
IsDisabled Func
IsValid Func
LeftMargin int
MaxLength int
OnAltKey Func
OnEnterKey Func
OnEscKey Func
OnLoseFocus System.Action
OnTabKey Func
OnTextEdited System.Action
RightMargin int
TextColor Color
TextColorDisabled Color
TextColorInvalid Color
VisualHeight int

Protected Properties

Свойство Type Description
blinkCycle int
showCursor bool

Méthodes publiques

Méthode Description
Clone ( ) : OpenRA.Widgets.Widget
Draw ( ) : void
HandleKeyPress ( KeyInput e ) : bool
HandleMouseInput ( MouseInput mi ) : bool
HandleTextInput ( string text ) : bool
TextFieldWidget ( ) : System
Tick ( ) : void
YieldKeyboardFocus ( ) : bool

Méthodes protégées

Méthode Description
GetApparentText ( ) : string
ResetBlinkCycle ( ) : void
TextFieldWidget ( TextFieldWidget widget ) : System

Private Methods

Méthode Description
ClosestCursorPosition ( int x ) : int
GetNextWhitespaceIndex ( ) : int
GetPrevWhitespaceIndex ( ) : int

Method Details

Clone() public méthode

public Clone ( ) : OpenRA.Widgets.Widget
Résultat OpenRA.Widgets.Widget

Draw() public méthode

public Draw ( ) : void
Résultat void

GetApparentText() protected méthode

protected GetApparentText ( ) : string
Résultat string

HandleKeyPress() public méthode

public HandleKeyPress ( KeyInput e ) : bool
e KeyInput
Résultat bool

HandleMouseInput() public méthode

public HandleMouseInput ( MouseInput mi ) : bool
mi MouseInput
Résultat bool

HandleTextInput() public méthode

public HandleTextInput ( string text ) : bool
text string
Résultat bool

ResetBlinkCycle() protected méthode

protected ResetBlinkCycle ( ) : void
Résultat void

TextFieldWidget() public méthode

public TextFieldWidget ( ) : System
Résultat System

TextFieldWidget() protected méthode

protected TextFieldWidget ( TextFieldWidget widget ) : System
widget TextFieldWidget
Résultat System

Tick() public méthode

public Tick ( ) : void
Résultat void

YieldKeyboardFocus() public méthode

public YieldKeyboardFocus ( ) : bool
Résultat bool

Property Details

Disabled public_oe property

public bool Disabled
Résultat bool

Font public_oe property

public string Font
Résultat string

IsDisabled public_oe property

public Func IsDisabled
Résultat Func

IsValid public_oe property

public Func IsValid
Résultat Func

LeftMargin public_oe property

public int LeftMargin
Résultat int

MaxLength public_oe property

public int MaxLength
Résultat int

OnAltKey public_oe property

public Func OnAltKey
Résultat Func

OnEnterKey public_oe property

public Func OnEnterKey
Résultat Func

OnEscKey public_oe property

public Func OnEscKey
Résultat Func

OnLoseFocus public_oe property

public Action,System OnLoseFocus
Résultat System.Action

OnTabKey public_oe property

public Func OnTabKey
Résultat Func

OnTextEdited public_oe property

public Action,System OnTextEdited
Résultat System.Action

RightMargin public_oe property

public int RightMargin
Résultat int

TextColor public_oe property

public Color TextColor
Résultat Color

TextColorDisabled public_oe property

public Color TextColorDisabled
Résultat Color

TextColorInvalid public_oe property

public Color TextColorInvalid
Résultat Color

VisualHeight public_oe property

public int VisualHeight
Résultat int

blinkCycle protected_oe property

protected int blinkCycle
Résultat int

showCursor protected_oe property

protected bool showCursor
Résultat bool