mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
96 lines
6.7 KiB
C#
96 lines
6.7 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#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& 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) -> Begin("Name", size, 0); or Begin("Name", size, ImGuiChildFlags_None);
|
|
/// BeginChild("Name", size, true) -> 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.
|
|
/// > 0.0f: use specified size for this axis.
|
|
/// < 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& 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) -> Begin("Name", size, 0); or Begin("Name", size, ImGuiChildFlags_None);
|
|
/// BeginChild("Name", size, true) -> 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.
|
|
/// > 0.0f: use specified size for this axis.
|
|
/// < 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
|
|
);
|
|
}
|
|
}
|
|
}
|