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

60 lines
2.8 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>
/// use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; }
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L646">imgui.h:646</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1339">imgui_widgets.cpp:1339</see>
/// <br/><c>bool RadioButton(const char* label, bool active)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Widgets: Main
/// - Most widgets return true when the value has been changed or when pressed/selected
/// - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 RadioButton_0(byte* label, Bool8 active);
/// <summary>
/// <para>
/// shortcut to handle the above pattern when value is an integer
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L647">imgui.h:647</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1394">imgui_widgets.cpp:1394</see>
/// <br/><c>bool RadioButton(const char* label, int* v, int v_button)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Widgets: Main
/// - Most widgets return true when the value has been changed or when pressed/selected
/// - You may also use one of the many IsItemXXX functions (e.g. IsItemActive, IsItemHovered, etc.) to query widget state.
/// </code>
/// <para>
/// FIXME: This would work nicely if it was a public template, e.g. 'template&lt;T&gt; RadioButton(const
/// char* label, T* v, T v_button)', but I'm not sure how we would expose it..
/// </para>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 RadioButton_1(byte* label, int* v, int v_button);
}
}
}