mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
118 lines
3.6 KiB
C#
118 lines
3.6 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImPlotApi.Internal
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L293">implot_internal.h:293</see>
|
|
/// <br/><c>struct ImPlotTime {</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Two part timestamp struct.
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
|
public partial struct ImPlotTime
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// second part
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L294">implot_internal.h:294</see>
|
|
/// <br/><c>time_t S</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Two part timestamp struct.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public long S;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// microsecond part
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L295">implot_internal.h:295</see>
|
|
/// <br/><c>int Us</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Two part timestamp struct.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public int Us;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L293">implot_internal.h:293</see>
|
|
/// <br/><c>struct ImPlotTime {</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Two part timestamp struct.
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImPlotTimePtr(ImPlotTime* ptr) : INullable
|
|
{
|
|
private ImPlotTime* _ptr = ptr;
|
|
public ImPlotTime* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImPlotTimePtr(ImPlotTime* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImPlotTime*(ImPlotTimePtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// second part
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L294">implot_internal.h:294</see>
|
|
/// <br/><c>time_t S</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Two part timestamp struct.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref long S => ref Unsafe.AsRef<long>(&_ptr->S);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// microsecond part
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/epezent/implot/blob/3da8bd34/implot_internal.h#L295">implot_internal.h:295</see>
|
|
/// <br/><c>int Us</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Two part timestamp struct.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int Us => ref Unsafe.AsRef<int>(&_ptr->Us);
|
|
}
|
|
}
|