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

Inheritance: OpenRA.Widgets.Widget
Show file 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 property

public bool Disabled
return bool

Font public property

public string Font
return string

IsDisabled public property

public Func IsDisabled
return Func

IsValid public property

public Func IsValid
return Func

LeftMargin public property

public int LeftMargin
return int

MaxLength public property

public int MaxLength
return int

OnAltKey public property

public Func OnAltKey
return Func

OnEnterKey public property

public Func OnEnterKey
return Func

OnEscKey public property

public Func OnEscKey
return Func

OnLoseFocus public property

public Action,System OnLoseFocus
return System.Action

OnTabKey public property

public Func OnTabKey
return Func

OnTextEdited public property

public Action,System OnTextEdited
return System.Action

RightMargin public property

public int RightMargin
return int

TextColor public property

public Color TextColor
return Color

TextColorDisabled public property

public Color TextColorDisabled
return Color

TextColorInvalid public property

public Color TextColorInvalid
return Color

VisualHeight public property

public int VisualHeight
return int

blinkCycle protected property

protected int blinkCycle
return int

showCursor protected property

protected bool showCursor
return bool