Structs§
- Element
Id - Stable, unique identifier for a text element. Monotonically increasing, never reused.
- Element
Kind - Opaque element kind tag. The textarea does not interpret this value;
the host app defines constants like
ElementKind(1)for pastes,ElementKind(2)for file references, etc. - Internal
Clipboard - In-memory clipboard — the default provider.
- Selection
- A byte-range selection in the buffer, created by mouse drag.
- Text
Area - Text
Area State - Text
Element - An atomic text element embedded in the buffer.
- Text
Element Event - An interaction with a
TextElement, returned byTextArea::poll_element_event.
Enums§
- Mouse
Action - Result of processing a mouse event in the textarea.
- Text
Element Event Kind - The kind of element interaction.
Traits§
- Clipboard
Provider - Trait for clipboard access. The textarea calls this on copy/cut/paste.
Functions§
- is_
undo_ input - Whether
keyis the undo chordTextArea::inputbinds: lowercase ‘z’ with Ctrl or Cmd. Uppercase ‘Z’ (redo) is intentionally excluded, which keeps this guard disjoint from the redo arm regardless of order.