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
contextUIContext
Fields
_cursorDirection
protected EditableTextWidget.CursorMovementDirection _cursorDirection
Field Value
_cursorVisible
protected bool _cursorVisible
Field Value
_editableText
protected EditableText _editableText
Field Value
_isObfuscationEnabled
protected bool _isObfuscationEnabled
Field Value
_isSelection
protected bool _isSelection
Field Value
_keyboardAction
protected EditableTextWidget.KeyboardAction _keyboardAction
Field Value
_lastFontBrush
protected Brush _lastFontBrush
Field Value
_lastLanguageCode
protected string _lastLanguageCode
Field Value
_lastScale
protected float _lastScale
Field Value
_mouseDownPosition
protected Vector2 _mouseDownPosition
Field Value
_mouseState
protected EditableTextWidget.MouseState _mouseState
Field Value
_nextRepeatTime
protected int _nextRepeatTime
Field Value
_obfuscationChar
protected readonly char _obfuscationChar
Field Value
_textHeight
protected int _textHeight
Field Value
Properties
DefaultSearchText
public string DefaultSearchText { get; set; }
Property Value
IsObfuscationEnabled
public bool IsObfuscationEnabled { get; set; }
Property Value
KeyboardInfoText
[Editor(false)]
public string KeyboardInfoText { get; set; }
Property Value
MaxLength
public int MaxLength { get; set; }
Property Value
RealText
[Editor(false)]
public string RealText { get; set; }
Property Value
Text
[Editor(false)]
public string Text { get; set; }
Property Value
Methods
AppendCharacter(int)
protected void AppendCharacter(int charCode)
Parameters
charCodeint
AppendText(string)
protected void AppendText(string text)
Parameters
textstring
BlinkCursor()
protected void BlinkCursor()
CopyText(int, int)
protected void CopyText(int beginIndex, int endIndex)
Parameters
DeleteChar(bool)
protected void DeleteChar(bool nextChar = false)
Parameters
nextCharbool
DeleteText(int, int)
protected void DeleteText(int beginIndex, int endIndex)
Parameters
FindNextWordPosition(int)
protected int FindNextWordPosition(int direction)
Parameters
directionint
Returns
GetAppendCharacterResult(int)
protected string GetAppendCharacterResult(int charCode)
Parameters
charCodeint
Returns
HandleInput(IReadOnlyList<int>)
public override void HandleInput(IReadOnlyList<int> lastKeysPressed)
Parameters
lastKeysPressedIReadOnlyList<int>
MoveCursor(int, bool)
protected void MoveCursor(int direction, bool withSelection = false)
Parameters
OnGainFocus()
protected override void OnGainFocus()
OnLateUpdate(float)
protected override void OnLateUpdate(float dt)
Parameters
dtfloat
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
twoDimensionContextTwoDimensionContextdrawContextTwoDimensionDrawContext
OnUpdate(float)
protected override void OnUpdate(float dt)
Parameters
dtfloat
PasteText()
protected void PasteText()
ResetSelected()
protected void ResetSelected()
SetAllText(string)
public virtual void SetAllText(string text)
Parameters
textstring
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).