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§
- Query
Composition - Retained shaping and IME state for an inline query editor. Editing goes
through the shared
EditCore: the owner’sSelectionis 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. - Query
Ink - The colours a
QueryCompositionpaints with. - Query
View - The query a
QueryCompositionpaints: the committed text and its selection, the placeholder shown while it is empty, and whether the caret is visible.
Enums§
- Query
Event Change - Result of routing an event through the shared single-line query editor.
- Query
ImeChange - Whether an IME event changed only the display composition or committed a
new query value. Owners should re-run filtering only for
Committed.