Skip to main content

Module query_text

Module query_text 

Expand description

Shared visual/IME state for transient search and command queries.

Query owners keep their committed String and filtering semantics. This helper makes the editable presentation behave like every other toolkit text surface: one shaped layout for ink, selection, caret and candidate geometry, with IME preedit excluded from application state until commit.

Structs§

QueryComposition
Retained shaping and IME state for an inline query editor. Editing goes through the shared EditCore: the owner’s Selection is loaded into it for every event and written back afterwards, so a query keeps the same grapheme, word, clipboard and composition rules as every other field.
QueryInk
The colours a QueryComposition paints with.
QueryView
The query a QueryComposition paints: the committed text and its selection, the placeholder shown while it is empty, and whether the caret is visible.

Enums§

QueryEventChange
Result of routing an event through the shared single-line query editor.
QueryImeChange
Whether an IME event changed only the display composition or committed a new query value. Owners should re-run filtering only for Committed.