// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi { public partial class ImGui { public unsafe partial class PInvoke { /// /// /// C++: /// imgui.h:1014 /// , /// imgui.cpp:5879 ///
/// void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) ///
///
/// /// /// Clipping /// - Mouse hovering is affected by ImGui::PushClipRect() calls, unlike direct calls to ImDrawList::PushClipRect() which are render only. /// /// /// 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. /// /// [LibraryImport("imgui")] public static unsafe partial void PushClipRect( float2* clip_rect_min, float2* clip_rect_max, Bool8 intersect_with_current_clip_rect ); } } }