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

45 lines
2.4 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#L1014">imgui.h:1014</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L5879">imgui.cpp:5879</see>
/// <br/>
/// <c>void PushClipRect(const ImVec2&amp; clip_rect_min, const ImVec2&amp; clip_rect_max, bool intersect_with_current_clip_rect)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Clipping
/// - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only.
/// </code>
/// <code>
/// Push a clipping rectangle for both ImGui logic (hit-testing etc.) and low-level ImDrawList rendering.
/// - When using this function it is sane to ensure that float are perfectly rounded to integer values,
/// so that e.g. (int)(max.x-min.x) in user's render produce correct result.
/// - If the code here changes, may need to update code of functions like NextColumn() and PushColumnClipRect():
/// some frequently called functions which to modify both channels and clipping simultaneously tend to use the
/// more specialized SetWindowClipRectBeforeSetChannel() to avoid extraneous updates of underlying ImDrawCmds.
/// - This is analogous to PushFont()/PopFont() in the sense that are a mixing a global stack and a window stack,
/// which in the case of ClipRect is not so problematic but tends to be more restrictive for fonts.
/// </code>
/// </remarks>
[LibraryImport("imgui")]
public static unsafe partial void PushClipRect(
float2* clip_rect_min,
float2* clip_rect_max,
Bool8 intersect_with_current_clip_rect
);
}
}
}