mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,45 @@
|
|||
// <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& 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)</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->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
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue