API reference
Preparing search index…

ImGui.SelectableEx

  • Display a selectable item with a supplied 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.

    selected
    boolean = false

    Whether the item is currently selected; this by-value state is not written back.

    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.

    "bool selected" carry the selection state (read-only).

    Selectable() is clicked is returns true so you can modify your selection state.

    size.x==0.0: use remaining width, size.x>0.0: specify width.

    size.y==0.0: use label height, size.y>0.0: specify height

    Source & inheritance

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