DVUI

TextEntryWidget

Fields

#
wd:WidgetData
WidgetData
prevClip:Rect.Physical
Rect.Physical
scroll:ScrollAreaWidget
ScrollAreaWidget
scrollClip:Rect.Physical
Rect.Physical
textLayout:TextLayoutWidget
TextLayoutWidget
textClip:Rect.Physical
Rect.Physical
padding:Rect
Rect
init_opts:InitOptions
InitOptions
text:[]u8
[]u8
len:usize
usize
enter_pressed:bool
bool
text_changed:bool
bool
text_changed_start:usize
usize
text_changed_end:usize
usize
text_changed_added:i64
i64
edited_outside_last_frame:*bool
*bool

Types

#

Functions

#
init

It's expected to call this when self is undefined

textGet

Return text as a slice to the backing storage. The returned slice is

getText

Deprecated in favor of textGet.

filterIn

Remove all characters that not present in filter_chars.

filterOut

Remove all instances of the string needle.

setLen

Sets the new length and does fixups:

copy

This could use textLayout.copy(), but that doesn't work if we have a masked

Variables

#
defaultMWidth

If min_size_content is not given, use Font.sizeM(defaultMWidth, 1).

Aliases

#
SyntaxHighlight

Used with TreeSitter