//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
///
///
/// display a color square/button, hover for details, return true when pressed.
///
///
/// C++:
/// imgui.h:743
/// ,
/// imgui_widgets.cpp:6221
///
/// bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0))
///
///
///
///
/// Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.)
/// - Note that in C++ a 'float v[X]' function argument is the _same_ as 'float* v', the array syntax is just a way to document the number of elements that are expected to be accessible.
/// - You can pass the address of a first float element out of a contiguous structure, e.g. &myvector.x
///
///
/// A little color square. Return true when clicked.
/// FIXME: May want to display/ignore the alpha component in the color display? Yet show it in the tooltip.
/// 'desc_id' is not called 'label' because we don't display it next to the button, but only in the tooltip.
/// Note that 'col' may be encoded in HSV if ImGuiColorEditFlags_InputHSV is set.
///
///
[LibraryImport("imgui")]
public static unsafe partial Bool8 ColorButton(
byte* desc_id,
float4* col,
ImGuiColorEditFlags flags,
float2* size
);
}
}
}