API reference
Preparing search index…

ImGui.Selectable

  • Display a selectable item.

    Parameters

    label
    string | Uint8Array

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

    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

    • A selectable highlights when hovered, and can display another color when selected.

    • Neighbors selectable extend their highlight bounds in order to leave no gap between them. This is so a series of selected Selectable appear contiguous.

    Implied selected = false, flags = 0, size = { x: 0, y: 0 }

    Source & inheritance

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