//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImPlotApi
{
public static partial class ImPlotRectExtensions
{
///
///
/// C++: implot.h:499
/// bool Contains(const ImPlotPoint& p) const
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe bool Contains(this ImPlotRectPtr target, in double2 p)
{
fixed (double2* p_fixed = &p)
{
return PInvoke.ImPlotRect_Contains_0(target, p_fixed);
}
}
///
///
/// C++: implot.h:500
/// bool Contains(double x, double y) const
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe bool Contains(this ImPlotRectPtr target, double x, double y) =>
PInvoke.ImPlotRect_Contains_1(target, x, y);
///
///
/// C++: implot.h:501
/// ImPlotPoint Size() const
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe double2 Size(this ImPlotRectPtr target) => PInvoke.ImPlotRect_Size(target);
///
///
/// C++: implot.h:502
/// ImPlotPoint Clamp(const ImPlotPoint& p)
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe double2 Clamp(this ImPlotRectPtr target, in double2 p)
{
fixed (double2* p_fixed = &p)
{
return PInvoke.ImPlotRect_Clamp_0(target, p_fixed);
}
}
///
///
/// C++: implot.h:503
/// ImPlotPoint Clamp(double x, double y)
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe double2 Clamp(this ImPlotRectPtr target, double x, double y) =>
PInvoke.ImPlotRect_Clamp_1(target, x, y);
///
///
/// C++: implot.h:504
/// ImPlotPoint Min() const
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe double2 Min(this ImPlotRectPtr target) => PInvoke.ImPlotRect_Min(target);
///
///
/// C++: implot.h:505
/// ImPlotPoint Max() const
///
///
///
///
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
///
///
public static unsafe double2 Max(this ImPlotRectPtr target) => PInvoke.ImPlotRect_Max(target);
}
}