//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
///
///
/// C++:
/// imgui.h:661
/// ,
/// imgui_widgets.cpp:1185
///
/// bool ImageButton(const char* str_id, ImTextureRef tex_ref, const ImVec2& image_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))
///
///
///
///
/// Widgets: Images
/// - Read about ImTextureID/ImTextureRef here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples
/// - 'uv0' and 'uv1' are texture coordinates. Read about them from the same link above.
/// - Image() pads adds style.ImageBorderSize on each side, ImageButton() adds style.FramePadding on each side.
/// - ImageButton() draws a background based on regular Button() color + optionally an inner background if specified.
/// - An obsolete version of Image(), before 1.91.9 (March 2025), had a 'tint_col' parameter which is now supported by the ImageWithBg() function.
///
///
/// - ImageButton() adds style.FramePadding*2.0f to provided size. This is in order to facilitate fitting an image in a button.
/// - ImageButton() draws a background based on regular Button() color + optionally an inner background if specified. (#8165) // FIXME: Maybe that's not the best design?
///
///
[LibraryImport("imgui")]
public static unsafe partial Bool8 ImageButton(
byte* str_id,
ImTextureRef tex_ref,
float2* image_size,
float2* uv0,
float2* uv1,
float4* bg_col,
float4* tint_col
);
}
}
}