Function ImGui::ImageButton#
Function Documentation#
-
bool ImGui::ImageButton(const TRAP::Ref<TRAP::Graphics::Texture> &image, const ImVec2 &size, const ImVec2 &uv0 = ImVec2(0, 0), const ImVec2 &uv1 = ImVec2(1, 1), const ImVec4 &bg_col = ImVec4(0, 0, 0, 0), const ImVec4 &tint_col = ImVec4(1, 1, 1, 1))#
Draw an image button with ImGui.
Remark
Headless mode: This function is not available in headless mode.
- Parameters:
image – Image to draw.
size – Size for the image.
uv0 – UV0 coordinates.
uv1 – UV1 coordinates.
bg_col – Background color.
tint_col – Tint color.
- Returns:
True if image button is pressed, false otherwise.