Expand description
Shared multi-click (single / double / triple) detection for the text editors.
TextField, TextArea and RichTextEdit all want the same “click again
quickly to select more” behaviour: a first press positions the caret, a
second selects the word, a third selects the line/paragraph/block. Rather
than each widget re-deriving the timing gate, they share this tracker so the
window and travel tolerance match each other — and match the Scene’s
double-click reset (scene::DBL_CLICK_MS / MAX_CLICK_DIST).
Structs§
- Multi
Click Tracker - Tracks consecutive mouse presses to distinguish single, double and triple clicks. One lives per text-editor widget instance.
Enums§
- Select
Granularity - Granularity of an in-progress selection drag, decided by the click that
began it. A double-click starts a
Worddrag (extends by whole words), a triple-click aLinedrag; an ordinary press staysChar.