API reference
Preparing search index…

ImGui.ButtonEx

  • 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.

    size

    Button width and height in pixels; 0 uses the label size plus frame padding, and negative values align to the remaining region.

    Returns

    boolean

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

    Returns true when pressed.

    Use size to set the button dimensions. 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