Esc

Native_Menu

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

Declaration

Native_Menu :: struct {
    window: WT.Window_Type;    handle: *void;    target: *void;    accelerators: *void;    previous: *void;    pending: [..] u16;}

An owned menu installation, used on the window's thread. macOS allows one installation per application; Windows allows one per window. Remove it before destroying its window.

See also