API reference
Preparing search index…

ImGui.Button

  • Display a button and report whether it was pressed.

    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.

    Returns true when pressed.

    • Uses an automatic size equivalent to size = (0, 0).
    • Query additional state with IsItemActive(), IsItemHovered(), and other item-query functions.
    Source & inheritance

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