API reference
Preparing search index…

ImGui.InvisibleButton

  • Create an invisible interactive button region.

    Parameters

    str_id
    string | Uint8Array

    String identifier hashed with the current ID stack to distinguish this item or scope.

    size

    Invisible button hit-area dimensions in pixels; both axes must be nonzero.

    flags
    number = 0

    ImGuiButtonFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    boolean

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

    flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.)

    Source & inheritance

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