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

36 lines
1.8 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi.Internal
{
public unsafe partial class PInvoke
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3926">imgui_internal.h:3926</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L11224">imgui.cpp:11224</see>
/// <br/><c>void ErrorCheckUsingSetCursorPosToExtendParentBoundaries()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Error handling, State Recovery
/// </para>
/// <code>
/// Advanced:
/// - For reference, old logic was causing issues because it meant that SetCursorScreenPos(GetCursorScreenPos())
/// had a side-effect on layout! In particular this caused problem to compute group boundaries.
/// e.g. BeginGroup() + SomeItem() + SetCursorScreenPos(GetCursorScreenPos()) + EndGroup() would cause the
/// group to be taller because auto-sizing generally adds padding on bottom and right side.
/// - While this code is a little twisted, no-one would expect SetXXX(GetXXX()) to have a side-effect.
/// Using vertical alignment patterns would frequently trigger this sorts of issue.
/// - See https://github.com/ocornut/imgui/issues/5548 for more details.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void ErrorCheckUsingSetCursorPosToExtendParentBoundaries_internal();
}
}