mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
103 lines
5.1 KiB
C#
103 lines
5.1 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>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L668">imgui.h:668</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2179">imgui_widgets.cpp:2179</see>
|
|
/// <br/>
|
|
/// <c>bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Combo Box (Dropdown)
|
|
/// - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items.
|
|
/// - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created.
|
|
/// </code>
|
|
/// <para>
|
|
/// Combo box helper allowing to pass an array of strings.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 Combo_0(
|
|
byte* label,
|
|
int* current_item,
|
|
byte** items,
|
|
int items_count,
|
|
int popup_max_height_in_items
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0"
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L669">imgui.h:669</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2186">imgui_widgets.cpp:2186</see>
|
|
/// <br/>
|
|
/// <c>bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Combo Box (Dropdown)
|
|
/// - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items.
|
|
/// - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created.
|
|
/// </code>
|
|
/// <para>
|
|
/// Combo box helper allowing to pass all items in a single string literal holding multiple
|
|
/// zero-terminated items "item1\0item2\0"
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 Combo_1(
|
|
byte* label,
|
|
int* current_item,
|
|
byte* items_separated_by_zeros,
|
|
int popup_max_height_in_items
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L670">imgui.h:670</see>
|
|
/// ,
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L2131">imgui_widgets.cpp:2131</see>
|
|
/// <br/>
|
|
/// <c>bool Combo(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int popup_max_height_in_items = -1)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Widgets: Combo Box (Dropdown)
|
|
/// - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items.
|
|
/// - The old Combo() api are helpers over BeginCombo()/EndCombo() which are kept available for convenience purpose. This is analogous to how ListBox are created.
|
|
/// </code>
|
|
/// <para>
|
|
/// Old API, prefer using BeginCombo() nowadays if you can.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("imgui")]
|
|
public static unsafe partial Bool8 Combo_2(
|
|
byte* label,
|
|
int* current_item,
|
|
nint getter,
|
|
void* user_data,
|
|
int items_count,
|
|
int popup_max_height_in_items
|
|
);
|
|
}
|
|
}
|
|
}
|