API reference
Preparing search index…

ImGui.ImageButton

  • Display a clickable button containing a texture image.

    Parameters

    str_id
    string | Uint8Array

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

    user_texture_id
    bigint

    Renderer texture identifier (ImTextureID bigint), not an SFML texture object.

    image_size

    Displayed image width and height in screen pixels, independent of texture dimensions.

    Returns

    boolean

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

    Implied uv0 = { x: 0, y: 0 }, uv1 = { x: 1, y: 1 }, bg_col = { x: 0, y: 0, z: 0, w: 0 }, tint_col = { x: 1, y: 1, z: 1, w: 1 }

    Source & inheritance

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