Module text

Module text 

Source
Expand description

Text editing core functionality and utilities.

Modules§

clipboard
There are too many clipboard crates.
core
Core structs for text-editing. Used to implement the widgets.
cursor
undo_buffer
Undo functionality.

Macros§

impl_screen_cursor
Create the implementation of HasScreenCursor for the given list of struct members.

Structs§

Grapheme
One grapheme.
TextPosition
Text position.
TextRange
Exclusive range for text ranges.
TextStyle
Combined style for the widget.

Enums§

Locale
Locales matching the locales in glibc.
TextError
TextFocusGained
This flag sets the behaviour of the widget when it detects that it gained focus.
TextFocusLost
This flag sets the behaviour of the widget when it detects that it lost focus.
TextTab
This flag sets the behaviour of the widget when Tab/BackTab is pressed.

Traits§

Cursor
Trait for a cursor (akin to an Iterator, not the blinking thing).
HasScreenCursor
Trait for accessing the screen-cursor.

Functions§

screen_cursor
Returns the screen_cursor for the first widget that returns one.

Type Aliases§

ipos_type
Row/Column type.
upos_type
Row/Column type.