Skip to main content

Module textarea

Module textarea 

Source

Structs§

ElementId
Stable, unique identifier for a text element. Monotonically increasing, never reused.
ElementKind
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.
InternalClipboard
In-memory clipboard — the default provider.
Selection
A byte-range selection in the buffer, created by mouse drag.
TextArea
TextAreaState
TextElement
An atomic text element embedded in the buffer.
TextElementEvent
An interaction with a TextElement, returned by TextArea::poll_element_event.

Enums§

MouseAction
Result of processing a mouse event in the textarea.
TextElementEventKind
The kind of element interaction.

Traits§

ClipboardProvider
Trait for clipboard access. The textarea calls this on copy/cut/paste.

Functions§

is_undo_input
Whether key is the undo chord TextArea::input binds: lowercase ‘z’ with Ctrl or Cmd. Uppercase ‘Z’ (redo) is intentionally excluded, which keeps this guard disjoint from the redo arm regardless of order.