mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
77
Brutal.ImGui/Generated/PInvoke/ListBox.gen.cs
Normal file
77
Brutal.ImGui/Generated/PInvoke/ListBox.gen.cs
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
// <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#L794">imgui.h:794</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8507">imgui_widgets.cpp:8507</see>
|
||||
/// <br/>
|
||||
/// <c>bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Widgets: List Boxes
|
||||
/// - This is essentially a thin wrapper to using BeginChild/EndChild with the ImGuiChildFlags_FrameStyle flag for stylistic changes + displaying a label.
|
||||
/// - If you don't need a label you can probably simply use BeginChild() with the ImGuiChildFlags_FrameStyle flag for the same result.
|
||||
/// - You can submit contents and manage your selection state however you want it, by creating e.g. Selectable() or any other items.
|
||||
/// - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analogous to how Combos are created.
|
||||
/// - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth
|
||||
/// - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui")]
|
||||
public static unsafe partial Bool8 ListBox_0(
|
||||
byte* label,
|
||||
int* current_item,
|
||||
byte** items,
|
||||
int items_count,
|
||||
int height_in_items
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L795">imgui.h:795</see>
|
||||
/// ,
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8515">imgui_widgets.cpp:8515</see>
|
||||
/// <br/>
|
||||
/// <c>bool ListBox(const char* label, int* current_item, const char* (*getter)(void* user_data, int idx), void* user_data, int items_count, int height_in_items = -1)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Widgets: List Boxes
|
||||
/// - This is essentially a thin wrapper to using BeginChild/EndChild with the ImGuiChildFlags_FrameStyle flag for stylistic changes + displaying a label.
|
||||
/// - If you don't need a label you can probably simply use BeginChild() with the ImGuiChildFlags_FrameStyle flag for the same result.
|
||||
/// - You can submit contents and manage your selection state however you want it, by creating e.g. Selectable() or any other items.
|
||||
/// - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analogous to how Combos are created.
|
||||
/// - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth
|
||||
/// - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items
|
||||
/// </code>
|
||||
/// <code>
|
||||
/// This is merely a helper around BeginListBox(), EndListBox().
|
||||
/// Considering using those directly to submit custom data or store selection differently.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("imgui")]
|
||||
public static unsafe partial Bool8 ListBox_1(
|
||||
byte* label,
|
||||
int* current_item,
|
||||
nint getter,
|
||||
void* user_data,
|
||||
int items_count,
|
||||
int height_in_items
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue