RawTextInput class abstract

A low level text input helper. Takes high level input and creates shaped text, selection, and cursor. Does not handle scrolling internally.

Constructors

RawTextInput()

Properties

bounds AABB
no setter
clipPath RenderPath
no setter
cursorPath RenderPath
no setter
cursorPosition CursorVisualPosition
Returns the visual position of the cursor relative to the local space of the RawTextInput.
no setter
font Font?
getter/setter pair
fontSize double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
length int
no setter
maxHeight double
getter/setter pair
maxWidth double
getter/setter pair
overflow ↔ TextOverflow
getter/setter pair
paragraphSpacing double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTextPath RenderPath
no setter
selectionCornerRadius double
getter/setter pair
selectionPath RenderPath
no setter
separateSelectionText bool
getter/setter pair
sizing ↔ TextSizing
getter/setter pair
text String
getter/setter pair
textPath RenderPath
no setter

Methods

backspace(int direction) → void
cursorDown({bool select = false}) → void
cursorLeft({CursorBoundary boundary = CursorBoundary.character, bool select = false}) → void
cursorRight({CursorBoundary boundary = CursorBoundary.character, bool select = false}) → void
cursorUp({bool select = false}) → void
dispose() → void
erase() → void
insertCodePoint(int codePoint) → void
insertText(String value) → void
measure(Size max) AABB
moveCursorTo(Vec2D translation, {bool select = false}) → void
Moves the cursor to a local translation relative to the RawTextInput, if select is true the end position of the cursor is moved while keeping the start in place creating a range selection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redo() → void
Redo a text change operation on this RawTextInput, also moves the cursor to the position it was at after text change.
selectWord() → void
Select the word at the collapsed position of the cursor, should be sent after a double click on the local space of the RawTextInput.
toString() String
A string representation of this object.
inherited
undo() → void
Undo a text change operation on this RawTextInput, also moves the cursor to the position it was at prior to text change.
update() int
Updates any flagged dirt on the RawTextInput, this is where shaping and selection updates occur. It will return a bitmask with the operations completed so externally cached paths/scroll events/etc can be synced.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

make(Factory riveFactory) RawTextInput

Constants

updatedSelection → const int
updatedShape → const int