API reference
Preparing search index…

ImGui.Checkbox

  • Display a checkbox that edits a Boolean value.

    Parameters

    label
    string | Uint8Array

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

    v
    Uint8Array

    Mutable checked state in Uint8Array[0]: 0 is unchecked, 1 is checked; activation toggles it in place. Pass Uint8Array storage, not a JS scalar; native access uses the supplied backing memory.

    Returns

    boolean

    True if the widget changed the supplied value; false if it remained unchanged.

    Source & inheritance

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