Esc

create_native_menu

procedureextensionexperimental2 overloadssince 0.36.1Source
  • macOS: create_native_menu works on macOS
  • Linux: create_native_menu works on Linux
  • Windows: create_native_menu works on Windows
  • Wasm: create_native_menu is not available on Wasm

overload 1

create_native_menu :: (
    window: WT.Window_Type,
    items: [] Menu_Item
) -> *Native_Menu

Linux has no native menu backend; returns null.

overload 2

create_native_menu :: (
    window: WT.Window_Type,
    items: [] Menu_Item
) -> *Native_Menu

Installs a menu on a native window; null for unsupported, invalid or failed creation.

See also