API reference
Preparing search index…

ImGui.SelectableBoolPtrEx

  • Display a selectable item that updates its selection state.

    Parameters

    label
    string | Uint8Array

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

    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.

    flags
    number = 0

    ImGuiSelectableFlags options controlling this operation; combine compatible flag bits with |.

    size

    Selectable item dimensions in pixels; zero width fills the available width and zero height uses the label height.

    Returns

    boolean

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

    The first element of the mutable Uint8Array holds the selection state and is updated by the widget. Returns true when activated.

    Source & inheritance

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