Esc

Composition_Event

structextensionexperimentalsince 0.36.1Source
  • macOS: Composition_Event works on macOS
  • Linux: Composition_Event works on Linux
  • Windows: Composition_Event works on Windows
  • Wasm: Composition_Event is not available on Wasm

Declaration

Composition_Event :: struct {
    window: WT.Window_Type;    position: int;    text: string;    commit: bool;    cancel: bool;    cursor: int = -1;}

An owned composition update, ordered before Input.events_this_frame[position]. Text remains valid until the next update_events call. Cursor counts UTF-8 bytes; -1 means the text's end.

See also