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

45 lines
2.3 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#L3813">imgui_internal.h:3813</see>
/// ,
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.cpp#L3816">imgui.cpp:3816</see>
/// <br/>
/// <c>void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2&amp; pos_min, const ImVec2&amp; pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2&amp; align = ImVec2(0, 0), const ImRect* clip_rect = NULL)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// 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)
/// </code>
/// <code>
/// 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-&gt;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.
/// </code>
/// </remarks>
[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
);
}
}