mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
100 lines
3.5 KiB
C#
100 lines
3.5 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImPlotApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L495">implot.h:495</see><br/>
|
|
/// <c>struct ImPlotRect {</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
|
public partial struct ImPlotRect
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L496">implot.h:496</see><br/>
|
|
/// <c>ImPlotRange X</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Combination of two range limits for X and Y axes. Also an AABB defined by Min()/Max().
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImPlotRange X;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L496">implot.h:496</see><br/>
|
|
/// <c>ImPlotRange X, 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>
|
|
[FieldOffset(16)]
|
|
public ImPlotRange Y;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L495">implot.h:495</see><br/>
|
|
/// <c>struct ImPlotRect {</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 unsafe partial struct ImPlotRectPtr(ImPlotRect* ptr) : INullable
|
|
{
|
|
private ImPlotRect* _ptr = ptr;
|
|
public ImPlotRect* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImPlotRectPtr(ImPlotRect* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImPlotRect*(ImPlotRectPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L496">implot.h:496</see><br/>
|
|
/// <c>ImPlotRange X</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 ref ImPlotRange X => ref Unsafe.AsRef<ImPlotRange>(&_ptr->X);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L496">implot.h:496</see><br/>
|
|
/// <c>ImPlotRange X, 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 ref ImPlotRange Y => ref Unsafe.AsRef<ImPlotRange>(&_ptr->Y);
|
|
}
|
|
}
|