mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
135 lines
5.7 KiB
C#
135 lines
5.7 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
public static partial class ImGuiViewportPExtensions
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2123">imgui_internal.h:2123</see>
|
|
/// <br/><c>void ClearRequestFlags()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static unsafe void ClearRequestFlags(this ImGuiViewportPPtr target) =>
|
|
PInvoke.ImGuiViewportP_ClearRequestFlags_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2126">imgui_internal.h:2126</see>
|
|
/// <br/><c>ImVec2 CalcWorkRectPos(const ImVec2& inset_min) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last
|
|
/// frame data, and 1 pair for currently building rect)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 CalcWorkRectPos(this ImGuiViewportPPtr target, in float2 insetMin)
|
|
{
|
|
fixed (float2* insetMin_fixed = &insetMin)
|
|
{
|
|
return PInvoke.ImGuiViewportP_CalcWorkRectPos_internal(target, insetMin_fixed);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2127">imgui_internal.h:2127</see>
|
|
/// <br/><c>ImVec2 CalcWorkRectSize(const ImVec2& inset_min, const ImVec2& inset_max) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last
|
|
/// frame data, and 1 pair for currently building rect)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe float2 CalcWorkRectSize(
|
|
this ImGuiViewportPPtr target,
|
|
in float2 insetMin,
|
|
in float2 insetMax
|
|
)
|
|
{
|
|
fixed (float2* insetMax_fixed = &insetMax)
|
|
{
|
|
fixed (float2* insetMin_fixed = &insetMin)
|
|
{
|
|
return PInvoke.ImGuiViewportP_CalcWorkRectSize_internal(target, insetMin_fixed, insetMax_fixed);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Update public fields
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2128">imgui_internal.h:2128</see>
|
|
/// <br/><c>void UpdateWorkRect()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last
|
|
/// frame data, and 1 pair for currently building rect)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe void UpdateWorkRect(this ImGuiViewportPPtr target) =>
|
|
PInvoke.ImGuiViewportP_UpdateWorkRect_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2131">imgui_internal.h:2131</see>
|
|
/// <br/><c>ImRect GetMainRect() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it,
|
|
/// hence the code asymmetry)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe floatRect GetMainRect(this ImGuiViewportPPtr target) =>
|
|
PInvoke.ImGuiViewportP_GetMainRect_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2132">imgui_internal.h:2132</see>
|
|
/// <br/><c>ImRect GetWorkRect() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it,
|
|
/// hence the code asymmetry)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe floatRect GetWorkRect(this ImGuiViewportPPtr target) =>
|
|
PInvoke.ImGuiViewportP_GetWorkRect_internal(target);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2133">imgui_internal.h:2133</see>
|
|
/// <br/><c>ImRect GetBuildWorkRect() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it,
|
|
/// hence the code asymmetry)
|
|
/// </para>
|
|
/// </remarks>
|
|
public static unsafe floatRect GetBuildWorkRect(this ImGuiViewportPPtr target) =>
|
|
PInvoke.ImGuiViewportP_GetBuildWorkRect_internal(target);
|
|
}
|
|
}
|