ltk

Module text_edit

Source
Expand description

Text input field — single-line or multiline. The widget itself owns layout / draw; the runtime side of text editing (insert, delete, cursor movement, selection, clipboard) lives in the event_loop::text_editing private module.

Structs§

Functions§

  • Hit rect for the eye icon at the right edge of a TextEdit configured with TextEdit::password_toggle. Returned in the same coordinate space as the field’s rect. Pointer / touch dispatch consult this before falling through to cursor placement — a tap inside the zone fires the toggle message instead of moving the caret.