brutal/brutal.imgui/Brutal.ImPlot/Generated/Functions/ImPlotRect.gen.cs
2026-10-15 14:12:02 +13:00

114 lines
4.5 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImPlotApi
{
public static partial class ImPlotRectExtensions
{
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L499">implot.h:499</see><br/>
/// <c>bool Contains(const ImPlotPoint&amp; p) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe bool Contains(this ImPlotRectPtr target, in double2 p)
{
fixed (double2* p_fixed = &p)
{
return PInvoke.ImPlotRect_Contains_0(target, p_fixed);
}
}
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L500">implot.h:500</see><br/>
/// <c>bool Contains(double x, double y) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe bool Contains(this ImPlotRectPtr target, double x, double y) =>
PInvoke.ImPlotRect_Contains_1(target, x, y);
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L501">implot.h:501</see><br/>
/// <c>ImPlotPoint Size() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe double2 Size(this ImPlotRectPtr target) => PInvoke.ImPlotRect_Size(target);
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L502">implot.h:502</see><br/>
/// <c>ImPlotPoint Clamp(const ImPlotPoint&amp; p)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe double2 Clamp(this ImPlotRectPtr target, in double2 p)
{
fixed (double2* p_fixed = &p)
{
return PInvoke.ImPlotRect_Clamp_0(target, p_fixed);
}
}
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L503">implot.h:503</see><br/>
/// <c>ImPlotPoint Clamp(double x, double y)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe double2 Clamp(this ImPlotRectPtr target, double x, double y) =>
PInvoke.ImPlotRect_Clamp_1(target, x, y);
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L504">implot.h:504</see><br/>
/// <c>ImPlotPoint Min() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe double2 Min(this ImPlotRectPtr target) => PInvoke.ImPlotRect_Min(target);
/// <summary>
/// <para>
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L505">implot.h:505</see><br/>
/// <c>ImPlotPoint Max() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
/// </para>
/// </remarks>
public static unsafe double2 Max(this ImPlotRectPtr target) => PInvoke.ImPlotRect_Max(target);
}
}