brutal/Brutal.ImGui/Generated/PInvoke/ColorButton.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

46 lines
2.3 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public partial class ImGui
{
public unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// display a color square/button, hover for details, return true when pressed.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L743">imgui.h:743</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L6221">imgui_widgets.cpp:6221</see>
/// <br/>
/// <c>bool ColorButton(const char* desc_id, const ImVec4&amp; col, ImGuiColorEditFlags flags = 0, const ImVec2&amp; size = ImVec2(0, 0))</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// 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. &amp;myvector.x
/// </code>
/// <code>
/// 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.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 ColorButton(
byte* desc_id,
float4* col,
ImGuiColorEditFlags flags,
float2* size
);
}
}
}