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

Inheritance: OpenRA.Widgets.Widget
Datei anzeigen Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property 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

Property Type Description
blinkCycle int
showCursor bool

Public Methods

Method 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

Protected Methods

Method Description
GetApparentText ( ) : string
ResetBlinkCycle ( ) : void
TextFieldWidget ( TextFieldWidget widget ) : System

Private Methods

Method Description
ClosestCursorPosition ( int x ) : int
GetNextWhitespaceIndex ( ) : int
GetPrevWhitespaceIndex ( ) : int

Method Details

Clone() public method

public Clone ( ) : OpenRA.Widgets.Widget
return OpenRA.Widgets.Widget

Draw() public method

public Draw ( ) : void
return void

GetApparentText() protected method

protected GetApparentText ( ) : string
return string

HandleKeyPress() public method

public HandleKeyPress ( KeyInput e ) : bool
e KeyInput
return bool

HandleMouseInput() public method

public HandleMouseInput ( MouseInput mi ) : bool
mi MouseInput
return bool

HandleTextInput() public method

public HandleTextInput ( string text ) : bool
text string
return bool

ResetBlinkCycle() protected method

protected ResetBlinkCycle ( ) : void
return void

TextFieldWidget() public method

public TextFieldWidget ( ) : System
return System

TextFieldWidget() protected method

protected TextFieldWidget ( TextFieldWidget widget ) : System
widget TextFieldWidget
return System

Tick() public method

public Tick ( ) : void
return void

YieldKeyboardFocus() public method

public YieldKeyboardFocus ( ) : bool
return bool

Property Details

Disabled public_oe property

public bool Disabled
return bool

Font public_oe property

public string Font
return string

IsDisabled public_oe property

public Func IsDisabled
return Func

IsValid public_oe property

public Func IsValid
return Func

LeftMargin public_oe property

public int LeftMargin
return int

MaxLength public_oe property

public int MaxLength
return int

OnAltKey public_oe property

public Func OnAltKey
return Func

OnEnterKey public_oe property

public Func OnEnterKey
return Func

OnEscKey public_oe property

public Func OnEscKey
return Func

OnLoseFocus public_oe property

public Action,System OnLoseFocus
return System.Action

OnTabKey public_oe property

public Func OnTabKey
return Func

OnTextEdited public_oe property

public Action,System OnTextEdited
return System.Action

RightMargin public_oe property

public int RightMargin
return int

TextColor public_oe property

public Color TextColor
return Color

TextColorDisabled public_oe property

public Color TextColorDisabled
return Color

TextColorInvalid public_oe property

public Color TextColorInvalid
return Color

VisualHeight public_oe property

public int VisualHeight
return int

blinkCycle protected_oe property

protected int blinkCycle
return int

showCursor protected_oe property

protected bool showCursor
return bool