This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37
383 changed files with 784842 additions and 0 deletions

View file

@ -0,0 +1,38 @@
// <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>
/// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into
/// the payload before the mouse button is released.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L1000">imgui.h:1000</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15418">imgui.cpp:15418</see>
/// <br/>
/// <c>const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Drag and Drop
/// - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource().
/// - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget().
/// - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725)
/// - An item can be both drag source and drop target.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial ImGuiPayload* AcceptDragDropPayload(byte* type, ImGuiDragDropFlags flags);
}
}
}

View file

@ -0,0 +1,33 @@
// <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>
/// vertically align upcoming text baseline to FramePadding.y so that it will align properly to
/// regularly framed items (call if you have text on a line before a framed item)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L593">imgui.h:593</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1608">imgui_widgets.cpp:1608</see>
/// <br/><c>void AlignTextToFramePadding()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Other layout functions
/// </para>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void AlignTextToFramePadding();
}
}
}

View file

@ -0,0 +1,34 @@
// <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>
/// square button with an arrow shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L642">imgui.h:642</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L879">imgui_widgets.cpp:879</see>
/// <br/><c>bool ArrowButton(const char* str_id, ImGuiDir dir)</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 ArrowButton(byte* str_id, ImGuiDir dir);
}
}
}

View file

@ -0,0 +1,49 @@
// <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#L439">imgui.h:439</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L7571">imgui.cpp:7571</see>
/// <br/><c>bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Windows
/// - Begin() = push window to the stack and start appending to it. End() = pop window from the stack.
/// - Passing 'bool* p_open != NULL' shows a window-closing widget in the upper-right corner of the window,
/// which clicking will set the boolean to false when clicked.
/// - You may append multiple times to the same window during the same frame by calling Begin()/End() pairs multiple times.
/// Some information such as 'flags' or 'p_open' will only be considered by the first call to Begin().
/// - Begin() return false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting
/// anything to the window. Always call a matching End() for each Begin() call, regardless of its return value!
/// [Important: due to legacy reason, Begin/End and BeginChild/EndChild are inconsistent with all other functions
/// such as BeginMenu/EndMenu, BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding
/// BeginXXX function returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.]
/// - Note that the bottom of window stack always contains a window called "Debug".
/// </code>
/// <code>
/// Push a new Dear ImGui window to add widgets to.
/// - A default window called "Debug" is automatically stacked at the beginning of every frame so you can use widgets without explicitly calling a Begin/End pair.
/// - Begin/End can be called multiple times during the frame with the same window name to append content.
/// - The window name is used as a unique identifier to preserve window information across frames (and save rudimentary information to the .ini file).
/// You can use the "##" or "###" markers to use the same label with different id, or same id with different label. See documentation at the top of this file.
/// - Return false when window is collapsed, so you can early out in your code. You always need to call ImGui::End() even if false is returned.
/// - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 Begin(byte* name, Bool8* p_open, ImGuiWindowFlags flags);
}
}
}

View file

@ -0,0 +1,96 @@
// <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#L460">imgui.h:460</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6471">imgui.cpp:6471</see>
/// <br/>
/// <c>bool BeginChild(const char* str_id, const ImVec2&amp; size = ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Child Windows
/// - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child.
/// - Before 1.90 (November 2023), the "ImGuiChildFlags child_flags = 0" parameter was "bool border = false".
/// This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Borders == true.
/// Consider updating your old code:
/// BeginChild("Name", size, false) -&gt; Begin("Name", size, 0); or Begin("Name", size, ImGuiChildFlags_None);
/// BeginChild("Name", size, true) -&gt; Begin("Name", size, ImGuiChildFlags_Borders);
/// - Manual sizing (each axis can use a different setting e.g. ImVec2(0.0f, 400.0f)):
/// == 0.0f: use remaining parent window size for this axis.
/// &gt; 0.0f: use specified size for this axis.
/// &lt; 0.0f: right/bottom-align to specified distance from available content boundaries.
/// - Specifying ImGuiChildFlags_AutoResizeX or ImGuiChildFlags_AutoResizeY makes the sizing automatic based on child contents.
/// Combining both ImGuiChildFlags_AutoResizeX _and_ ImGuiChildFlags_AutoResizeY defeats purpose of a scrolling region and is NOT recommended.
/// - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting
/// anything to the window. Always call a matching EndChild() for each BeginChild() call, regardless of its return value.
/// [Important: due to legacy reason, Begin/End and BeginChild/EndChild are inconsistent with all other functions
/// such as BeginMenu/EndMenu, BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding
/// BeginXXX function returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.]
/// </code>
/// <code>
/// Prior to v1.90 2023/10/16, the BeginChild() function took a 'bool border = false' parameter instead of 'ImGuiChildFlags child_flags = 0'.
/// ImGuiChildFlags_Borders is defined as always == 1 in order to allow old code passing 'true'. Read comments in imgui.h for details!
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginChild_0(
byte* str_id,
float2* size,
ImGuiChildFlags child_flags,
ImGuiWindowFlags window_flags
);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L461">imgui.h:461</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L6477">imgui.cpp:6477</see>
/// <br/>
/// <c>bool BeginChild(ImGuiID id, const ImVec2&amp; size = ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Child Windows
/// - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child.
/// - Before 1.90 (November 2023), the "ImGuiChildFlags child_flags = 0" parameter was "bool border = false".
/// This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Borders == true.
/// Consider updating your old code:
/// BeginChild("Name", size, false) -&gt; Begin("Name", size, 0); or Begin("Name", size, ImGuiChildFlags_None);
/// BeginChild("Name", size, true) -&gt; Begin("Name", size, ImGuiChildFlags_Borders);
/// - Manual sizing (each axis can use a different setting e.g. ImVec2(0.0f, 400.0f)):
/// == 0.0f: use remaining parent window size for this axis.
/// &gt; 0.0f: use specified size for this axis.
/// &lt; 0.0f: right/bottom-align to specified distance from available content boundaries.
/// - Specifying ImGuiChildFlags_AutoResizeX or ImGuiChildFlags_AutoResizeY makes the sizing automatic based on child contents.
/// Combining both ImGuiChildFlags_AutoResizeX _and_ ImGuiChildFlags_AutoResizeY defeats purpose of a scrolling region and is NOT recommended.
/// - BeginChild() returns false to indicate the window is collapsed or fully clipped, so you may early out and omit submitting
/// anything to the window. Always call a matching EndChild() for each BeginChild() call, regardless of its return value.
/// [Important: due to legacy reason, Begin/End and BeginChild/EndChild are inconsistent with all other functions
/// such as BeginMenu/EndMenu, BeginPopup/EndPopup, etc. where the EndXXX call should only be called if the corresponding
/// BeginXXX function returned true. Begin and BeginChild are the only odd ones out. Will be fixed in a future update.]
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginChild_1(
ImGuiID id,
float2* size,
ImGuiChildFlags child_flags,
ImGuiWindowFlags window_flags
);
}
}
}

View file

@ -0,0 +1,31 @@
// <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#L666">imgui.h:666</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L1904">imgui_widgets.cpp:1904</see>
/// <br/><c>bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0)</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>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginCombo(byte* label, byte* preview_value, ImGuiComboFlags flags);
}
}
}

View file

@ -0,0 +1,42 @@
// <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#L1009">imgui.h:1009</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L8619">imgui.cpp:8619</see>
/// <br/><c>void BeginDisabled(bool disabled = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Disabling [BETA API]
/// - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors)
/// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled)
/// - Tooltips windows by exception are opted out of disabling.
/// - BeginDisabled(false)/EndDisabled() essentially does nothing but is provided to facilitate use of boolean expressions (as a micro-optimization: if you have tens of thousands of BeginDisabled(false)/EndDisabled() pairs, you might want to reformulate your code to avoid making those calls)
/// </code>
/// <code>
/// BeginDisabled()/EndDisabled()
/// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled)
/// - Visually this is currently altering alpha, but it is expected that in a future styling system this would work differently.
/// - Feedback welcome at https://github.com/ocornut/imgui/issues/211
/// - BeginDisabled(false)/EndDisabled() essentially does nothing but is provided to facilitate use of boolean expressions.
/// (as a micro-optimization: if you have tens of thousands of BeginDisabled(false)/EndDisabled() pairs, you might want to reformulate your code to avoid making those calls)
/// - Note: mixing up BeginDisabled() and PushItemFlag(ImGuiItemFlags_Disabled) is currently NOT SUPPORTED.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void BeginDisabled(Bool8 disabled);
}
}
}

View file

@ -0,0 +1,46 @@
// <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>
/// call after submitting an item which may be dragged. when this return true, you can call
/// SetDragDropPayload() + EndDragDropSource()
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L996">imgui.h:996</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15174">imgui.cpp:15174</see>
/// <br/><c>bool BeginDragDropSource(ImGuiDragDropFlags flags = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Drag and Drop
/// - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource().
/// - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget().
/// - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725)
/// - An item can be both drag source and drop target.
/// </code>
/// <code>
/// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource()
/// If the item has an identifier:
/// - This assume/require the item to be activated (typically via ButtonBehavior).
/// - Therefore if you want to use this with a mouse button other than left mouse button, it is up to the item itself to activate with another button.
/// - We then pull and use the mouse button that was used to activate the item and use it to carry on the drag.
/// If the item has no identifier:
/// - Currently always assume left mouse button.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginDragDropSource(ImGuiDragDropFlags flags);
}
}
}

View file

@ -0,0 +1,43 @@
// <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>
/// call after submitting an item that may receive a payload. If this returns true, you can call
/// AcceptDragDropPayload() + EndDragDropTarget()
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L999">imgui.h:999</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L15381">imgui.cpp:15381</see>
/// <br/><c>bool BeginDragDropTarget()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Drag and Drop
/// - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource().
/// - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget().
/// - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725)
/// - An item can be both drag source and drop target.
/// </code>
/// <code>
/// We don't use BeginDragDropTargetCustom() and duplicate its code because:
/// 1) we use LastItemData's ImGuiItemStatusFlags_HoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them.
/// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can.
/// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case)
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginDragDropTarget();
}
}
}

View file

@ -0,0 +1,37 @@
// <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>
/// lock horizontal starting position
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L591">imgui.h:591</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12097">imgui.cpp:12097</see>
/// <br/><c>void BeginGroup()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Other layout functions
/// </para>
/// <code>
/// Lock horizontal starting position + capture group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.)
/// Groups are currently a mishmash of functionalities which should perhaps be clarified and separated.
/// FIXME-OPT: Could we safely early out on -&gt;SkipItems?
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void BeginGroup();
}
}
}

View file

@ -0,0 +1,35 @@
// <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>
/// begin/append a tooltip window if preceding item was hovered.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L838">imgui.h:838</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12443">imgui.cpp:12443</see>
/// <br/><c>bool BeginItemTooltip()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Tooltips: helpers for showing a tooltip when hovering an item
/// - BeginItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_ForTooltip) &amp;&amp; BeginTooltip())' idiom.
/// - SetItemTooltip() is a shortcut for the 'if (IsItemHovered(ImGuiHoveredFlags_ForTooltip)) { SetTooltip(...); }' idiom.
/// - Where 'ImGuiHoveredFlags_ForTooltip' itself is a shortcut to use 'style.HoverFlagsForTooltipMouse' or 'style.HoverFlagsForTooltipNav' depending on active input type. For mouse it defaults to 'ImGuiHoveredFlags_Stationary | ImGuiHoveredFlags_DelayShort'.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginItemTooltip();
}
}
}

View file

@ -0,0 +1,45 @@
// <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>
/// open a framed scrolling region
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L792">imgui.h:792</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8455">imgui_widgets.cpp:8455</see>
/// <br/><c>bool BeginListBox(const char* label, const ImVec2&amp; size = ImVec2(0, 0))</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 &gt; 0.0f: custom / size.x &lt; 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth
/// - Choose frame height: size.y &gt; 0.0f: custom / size.y &lt; 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items
/// </code>
/// <code>
/// This is essentially a thin wrapper to using BeginChild/EndChild with the ImGuiChildFlags_FrameStyle flag for stylistic changes + displaying a label.
/// This handle some subtleties with capturing info from the label.
/// If you don't need a label you can pretty much directly use ImGui::BeginChild() with ImGuiChildFlags_FrameStyle.
/// Tip: To have a list filling the entire window width, use size.x = -FLT_MIN and pass an non-visible label e.g. "##empty"
/// Tip: If your vertical size is calculated from an item count (e.g. 10 * item_height) consider adding a fractional part to facilitate seeing scrolling boundaries (e.g. 10.5f * item_height).
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginListBox(byte* label, float2* size);
}
}
}

View file

@ -0,0 +1,36 @@
// <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>
/// create and append to a full screen menu-bar.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L818">imgui.h:818</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8948">imgui_widgets.cpp:8948</see>
/// <br/><c>bool BeginMainMenuBar()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Widgets: Menus
/// - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar.
/// - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it.
/// - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it.
/// - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginMainMenuBar();
}
}
}

View file

@ -0,0 +1,36 @@
// <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>
/// create a sub-menu entry. only call EndMenu() if this returns true!
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L820">imgui.h:820</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L9232">imgui_widgets.cpp:9232</see>
/// <br/><c>bool BeginMenu(const char* label, bool enabled = true)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Widgets: Menus
/// - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar.
/// - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it.
/// - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it.
/// - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginMenu(byte* label, Bool8 enabled);
}
}
}

View file

@ -0,0 +1,42 @@
// <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>
/// append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L816">imgui.h:816</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L8823">imgui_widgets.cpp:8823</see>
/// <br/><c>bool BeginMenuBar()</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Widgets: Menus
/// - Use BeginMenuBar() on a window ImGuiWindowFlags_MenuBar to append to its menu bar.
/// - Use BeginMainMenuBar() to create a menu bar at the top of the screen and append to it.
/// - Use BeginMenu() to create a menu. You can call BeginMenu() multiple time with the same identifier to append more items to it.
/// - Not that MenuItem() keyboardshortcuts are displayed as a convenience but _not processed_ by Dear ImGui at the moment.
/// </code>
/// <code>
/// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere..
/// Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer.
/// Ideally we also want this to be responsible for claiming space out of the main window scrolling rectangle, in which case ImGuiWindowFlags_MenuBar will become unnecessary.
/// Then later the same system could be used for multiple menu-bars, scrollbars, side-bars.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginMenuBar();
}
}
}

View file

@ -0,0 +1,50 @@
// <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#L780">imgui.h:780</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_widgets.cpp#L7715">imgui_widgets.cpp:7715</see>
/// <br/>
/// <c>ImGuiMultiSelectIO* BeginMultiSelect(ImGuiMultiSelectFlags flags, int selection_size = -1, int items_count = -1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Multi-selection system for Selectable(), Checkbox(), TreeNode() functions [BETA]
/// - This enables standard multi-selection/range-selection idioms (CTRL+Mouse/Keyboard, SHIFT+Mouse/Keyboard, etc.) in a way that also allow a clipper to be used.
/// - ImGuiSelectionUserData is often used to store your item index within the current view (but may store something else).
/// - Read comments near ImGuiMultiSelectIO for instructions/details and see 'Demo-&gt;Widgets-&gt;Selection State &amp; Multi-Select' for demo.
/// - TreeNode() is technically supported but... using this correctly is more complicated. You need some sort of linear/random access to your tree,
/// which is suited to advanced trees setups already implementing filters and clipper. We will work simplifying the current demo.
/// - 'selection_size' and 'items_count' parameters are optional and used by a few features. If they are costly for you to compute, you may avoid them.
/// </code>
/// <code>
/// Return ImGuiMultiSelectIO structure.
/// Lifetime: don't hold on ImGuiMultiSelectIO* pointers over multiple frames or past any subsequent call to BeginMultiSelect() or EndMultiSelect().
/// Passing 'selection_size' and 'items_count' parameters is currently optional.
/// - 'selection_size' is useful to disable some shortcut routing: e.g. ImGuiMultiSelectFlags_ClearOnEscape won't claim Escape key when selection_size 0,
/// allowing a first press to clear selection THEN the second press to leave child window and return to parent.
/// - 'items_count' is stored in ImGuiMultiSelectIO which makes it a convenient way to pass the information to your ApplyRequest() handler (but you may pass it differently).
/// - If they are costly for you to compute (e.g. external intrusive selection without maintaining size), you may avoid them and pass -1.
/// - If you can easily tell if your selection is empty or not, you may pass 0/1, or you may enable ImGuiMultiSelectFlags_ClearOnEscape flag dynamically.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial ImGuiMultiSelectIO* BeginMultiSelect(
ImGuiMultiSelectFlags flags,
int selection_size,
int items_count
);
}
}
}

View file

@ -0,0 +1,41 @@
// <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>
/// return true if the popup is open, and you can start outputting to it.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L852">imgui.h:852</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12871">imgui.cpp:12871</see>
/// <br/><c>bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Popups, Modals
/// - They block normal mouse hovering detection (and therefore most mouse interactions) behind them.
/// - If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE.
/// - Their visibility state (~bool) is held internally instead of being held by the programmer as we are used to with regular Begin*() calls.
/// - The 3 properties above are related: we need to retain popup visibility state in the library because popups may be closed as any time.
/// - You can bypass the hovering restriction by using ImGuiHoveredFlags_AllowWhenBlockedByPopup when calling IsItemHovered() or IsWindowHovered().
/// - IMPORTANT: Popup identifiers are relative to the current ID stack, so OpenPopup and BeginPopup generally needs to be at the same level of the stack.
/// This is sometimes leading to confusing mistakes. May rework this in the future.
/// - BeginPopup(): query popup state, if open start appending into the window. Call EndPopup() afterwards if returned true. ImGuiWindowFlags are forwarded to the window.
/// - BeginPopupModal(): block every interaction behind the window, cannot be closed by user, add a dimming background, has a title bar.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginPopup(byte* str_id, ImGuiWindowFlags flags);
}
}
}

View file

@ -0,0 +1,56 @@
// <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>
/// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous
/// item. If you want to use that on a non-interactive item such as Text() you need to pass in an
/// explicit ID here. read comments in .cpp!
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L874">imgui.h:874</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12975">imgui.cpp:12975</see>
/// <br/><c>bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Popups: open+begin combined functions helpers
/// - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking.
/// - They are convenient to easily create context menus, hence the name.
/// - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future.
/// - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight.
/// </code>
/// <code>
/// This is a helper to handle the simplest case of associating one named popup to one given widget.
/// - To create a popup associated to the last item, you generally want to pass a NULL value to str_id.
/// - To create a popup with a specific identifier, pass it in str_id.
/// - This is useful when using using BeginPopupContextItem() on an item which doesn't have an identifier, e.g. a Text() call.
/// - This is useful when multiple code locations may want to manipulate/open the same popup, given an explicit id.
/// - You may want to handle the whole on user side if you have specific needs (e.g. tweaking IsItemHovered() parameters).
/// This is essentially the same as:
/// id = str_id ? GetID(str_id) : GetItemID();
/// OpenPopupOnItemClick(str_id, ImGuiPopupFlags_MouseButtonRight);
/// return BeginPopup(id);
/// Which is essentially the same as:
/// id = str_id ? GetID(str_id) : GetItemID();
/// if (IsItemHovered() &amp;&amp; IsMouseReleased(ImGuiMouseButton_Right))
/// OpenPopup(id);
/// return BeginPopup(id);
/// The main difference being that this is tweaked to avoid computing the ID twice.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginPopupContextItem(byte* str_id, ImGuiPopupFlags popup_flags);
}
}
}

View file

@ -0,0 +1,36 @@
// <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>
/// open+begin popup when clicked in void (where there are no windows).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L876">imgui.h:876</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L13003">imgui.cpp:13003</see>
/// <br/><c>bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Popups: open+begin combined functions helpers
/// - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking.
/// - They are convenient to easily create context menus, hence the name.
/// - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future.
/// - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginPopupContextVoid(byte* str_id, ImGuiPopupFlags popup_flags);
}
}
}

View file

@ -0,0 +1,36 @@
// <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>
/// open+begin popup when clicked on current window.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L875">imgui.h:875</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L12989">imgui.cpp:12989</see>
/// <br/><c>bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Popups: open+begin combined functions helpers
/// - Helpers to do OpenPopup+BeginPopup where the Open action is triggered by e.g. hovering an item and right-clicking.
/// - They are convenient to easily create context menus, hence the name.
/// - IMPORTANT: Notice that BeginPopupContextXXX takes ImGuiPopupFlags just like OpenPopup() and unlike BeginPopup(). For full consistency, we may add ImGuiWindowFlags to the BeginPopupContextXXX functions in the future.
/// - IMPORTANT: Notice that we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial Bool8 BeginPopupContextWindow(byte* str_id, ImGuiPopupFlags popup_flags);
}
}
}

Some files were not shown because too many files have changed in this diff Show more