API reference
Preparing search index…

ImGui.MenuItemBoolPtr

  • Display a menu item that toggles its checked state.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    shortcut
    string | Uint8Array

    Shortcut label displayed in the menu; this text does not register a key binding.

    p_selected
    Uint8Array

    Selection state in Uint8Array[0]. Write only 0 (false) or 1 (true); activation can toggle it in place. Native code accesses the supplied writable backing memory directly, not a JS scalar.

    enabled
    boolean = true

    Whether the item or pushed option is enabled.

    Returns

    boolean

    True when the item is activated this frame; this is an activation event, not a persistent selected state.

    Returns true when activated. If p_selected is supplied as a Uint8Array, activation toggles its first element between 0 and 1.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0