Table of Contents

Class EditableTextWidget

Namespace
TaleWorlds.GauntletUI.BaseTypes
Assembly
TaleWorlds.GauntletUI.dll
public class EditableTextWidget : BrushWidget
Inheritance
EditableTextWidget
Derived
Inherited Members
Extension Methods

Constructors

EditableTextWidget(UIContext)

public EditableTextWidget(UIContext context)

Parameters

context UIContext

Fields

_cursorDirection

protected EditableTextWidget.CursorMovementDirection _cursorDirection

Field Value

EditableTextWidget.CursorMovementDirection

_cursorVisible

protected bool _cursorVisible

Field Value

bool

_editableText

protected EditableText _editableText

Field Value

EditableText

_isObfuscationEnabled

protected bool _isObfuscationEnabled

Field Value

bool

_isSelection

protected bool _isSelection

Field Value

bool

_keyboardAction

protected EditableTextWidget.KeyboardAction _keyboardAction

Field Value

EditableTextWidget.KeyboardAction

_lastFontBrush

protected Brush _lastFontBrush

Field Value

Brush

_lastLanguageCode

protected string _lastLanguageCode

Field Value

string

_lastScale

protected float _lastScale

Field Value

float

_mouseDownPosition

protected Vector2 _mouseDownPosition

Field Value

Vector2

_mouseState

protected EditableTextWidget.MouseState _mouseState

Field Value

EditableTextWidget.MouseState

_nextRepeatTime

protected int _nextRepeatTime

Field Value

int

_obfuscationChar

protected readonly char _obfuscationChar

Field Value

char

_textHeight

protected int _textHeight

Field Value

int

Properties

DefaultSearchText

public string DefaultSearchText { get; set; }

Property Value

string

IsObfuscationEnabled

public bool IsObfuscationEnabled { get; set; }

Property Value

bool

KeyboardInfoText

[Editor(false)]
public string KeyboardInfoText { get; set; }

Property Value

string

MaxLength

public int MaxLength { get; set; }

Property Value

int

RealText

[Editor(false)]
public string RealText { get; set; }

Property Value

string

Text

[Editor(false)]
public string Text { get; set; }

Property Value

string

Methods

AppendCharacter(int)

protected void AppendCharacter(int charCode)

Parameters

charCode int

AppendText(string)

protected void AppendText(string text)

Parameters

text string

BlinkCursor()

protected void BlinkCursor()

CopyText(int, int)

protected void CopyText(int beginIndex, int endIndex)

Parameters

beginIndex int
endIndex int

DeleteChar(bool)

protected void DeleteChar(bool nextChar = false)

Parameters

nextChar bool

DeleteText(int, int)

protected void DeleteText(int beginIndex, int endIndex)

Parameters

beginIndex int
endIndex int

FindNextWordPosition(int)

protected int FindNextWordPosition(int direction)

Parameters

direction int

Returns

int

GetAppendCharacterResult(int)

protected string GetAppendCharacterResult(int charCode)

Parameters

charCode int

Returns

string

HandleInput(IReadOnlyList<int>)

public override void HandleInput(IReadOnlyList<int> lastKeysPressed)

Parameters

lastKeysPressed IReadOnlyList<int>

MoveCursor(int, bool)

protected void MoveCursor(int direction, bool withSelection = false)

Parameters

direction int
withSelection bool

OnGainFocus()

protected override void OnGainFocus()

OnLateUpdate(float)

protected override void OnLateUpdate(float dt)

Parameters

dt float

OnLoseFocus()

protected override void OnLoseFocus()

OnMousePressed()

protected override void OnMousePressed()

OnMouseReleased()

protected override void OnMouseReleased()

OnRender(TwoDimensionContext, TwoDimensionDrawContext)

protected override void OnRender(TwoDimensionContext twoDimensionContext, TwoDimensionDrawContext drawContext)

Parameters

twoDimensionContext TwoDimensionContext
drawContext TwoDimensionDrawContext

OnUpdate(float)

protected override void OnUpdate(float dt)

Parameters

dt float

PasteText()

protected void PasteText()

ResetSelected()

protected void ResetSelected()

SetAllText(string)

public virtual void SetAllText(string text)

Parameters

text string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).