API reference
Preparing search index…

ImGui.RadioButton

  • Display a radio button with the 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.

    active
    boolean

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

    Returns

    boolean

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

    use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; }

    Source & inheritance

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