Expand description
TextArea — a multiline text editor.
Built for W5 of the Window Resize Test (egui’s “↔ resizable with
TextEdit”) — a widget that fills its available area and lets
the user edit a paragraph of text across many wrapped visual
lines. Shares the underlying TextEditState with TextField so
the same keyboard shortcuts / undo semantics are in reach later.
§Scope (Stage 4)
Covers the behaviour W5 actually needs and what a mobile user would expect from an editable paragraph:
- word-wrap to the widget’s inner width;
- typing / backspace / delete / Enter produce visible edits;
- arrow keys navigate by char or visual line;
- click positions cursor; drag selects;
- cursor blink with focus state;
- copy / cut / paste via the standard clipboard shortcuts.
Deferred (known gaps, filed for Stage 5 polish):
- word-boundary jumps (Ctrl+arrows) across wrapped visual lines;
- undo / redo;
- input-method composition;
- BiDi and RTL layout.
Structs§
- Text
Area - A multiline text editor that fills its available area.