Class EditableText
- Namespace
- TaleWorlds.TwoDimension
- Assembly
- TaleWorlds.TwoDimension.dll
public class EditableText : RichText, IText
- Inheritance
-
EditableText
- Implements
- Inherited Members
Constructors
EditableText(int, int, Font, Func<int, Font>)
public EditableText(int width, int height, Font font, Func<int, Font> getUsableFontForCharacter)
Parameters
Properties
BlinkTimer
public float BlinkTimer { get; set; }
Property Value
CursorPosition
public int CursorPosition { get; }
Property Value
HighlightEnd
public bool HighlightEnd { get; set; }
Property Value
HighlightStart
public bool HighlightStart { get; set; }
Property Value
SelectedTextBegin
public int SelectedTextBegin { get; }
Property Value
SelectedTextEnd
public int SelectedTextEnd { get; }
Property Value
VisibleText
public string VisibleText { get; set; }
Property Value
Methods
BeginSelection()
public void BeginSelection()
BlinkCursor()
public void BlinkCursor()
FindNextWordPosition(int)
public int FindNextWordPosition(int direction)
Parameters
direction
int
Returns
GetCursorPosition(Font, float, float)
public Vector2 GetCursorPosition(Font font, float fontSize, float scale)
Parameters
Returns
IsAnySelected()
public bool IsAnySelected()
Returns
IsCursorVisible()
public bool IsCursorVisible()
Returns
ResetSelected()
public void ResetSelected()
SelectAll()
public void SelectAll()
SetCursor(int, bool, bool)
public void SetCursor(int position, bool visible = true, bool withSelection = false)
Parameters
SetCursorPosition(int, bool)
public void SetCursorPosition(int position, bool visible)
Parameters
Update(SpriteData, Vector2, bool, bool, bool, float)
public override void Update(SpriteData spriteData, Vector2 focusPosition, bool focus, bool isFixedWidth, bool isFixedHeight, float renderScale)
Parameters
spriteData
SpriteDatafocusPosition
Vector2focus
boolisFixedWidth
boolisFixedHeight
boolrenderScale
float
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).