API reference
Preparing search index…

ImGui.ImageButtonEx

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

    uv0

    Texture coordinates at the upper-left corner; (0,0) is the usual full-image start.

    uv1

    Texture coordinates at the lower-right corner; (1,1) is the usual full-image end.

    bg_col

    RGBA background color behind the image, with floating-point components.

    tint_col

    RGBA color multiplied into the image; white preserves its colors.

    Returns

    boolean

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

    Source & inheritance

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