// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi.Internal { public unsafe partial class PInvoke { /// /// /// C++: /// imgui_internal.h:3813 /// , /// imgui.cpp:3816 ///
/// void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL) ///
///
/// /// /// Render helpers /// AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT. /// NB: All position are in absolute pixels coordinates (we are never using window coordinates internally) /// /// /// Default clip_rect uses (pos_min,pos_max) /// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges) /// FIXME-OPT: Since we have or calculate text_size we could coarse clip whole block immediately, especially for text above draw_list->DrawList. /// Effectively as this is called from widget doing their own coarse clipping it's not very valuable presently. Next time function will take /// better advantage of the render function taking size into account for coarse clipping. /// /// [LibraryImport("imgui")] public static unsafe partial void RenderTextClippedEx_internal( ImDrawList* draw_list, float2* pos_min, float2* pos_max, byte* text, byte* text_end, float2* text_size_if_known, float2* align, floatRect* clip_rect ); } }