mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
312 lines
10 KiB
C#
312 lines
10 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// User data payload for drag and drop operations
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L202">imgui.h:202</see>
|
|
/// <br/><c>struct ImGuiPayload</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 64)]
|
|
public unsafe partial struct ImGuiPayload
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Data (copied and owned by dear imgui)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2769">imgui.h:2769</see>
|
|
/// <br/><c>void* Data</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public nint Data;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Data size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2770">imgui.h:2770</see>
|
|
/// <br/><c>int DataSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public int DataSize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Source item id
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2773">imgui.h:2773</see>
|
|
/// <br/><c>ImGuiID SourceId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public ImGuiID SourceId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Source parent id (if available)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2774">imgui.h:2774</see>
|
|
/// <br/><c>ImGuiID SourceParentId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public ImGuiID SourceParentId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Data timestamp
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2775">imgui.h:2775</see>
|
|
/// <br/><c>int DataFrameCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(20)]
|
|
public int DataFrameCount;
|
|
|
|
/// <summary>
|
|
/// Data type tag (short user-supplied string, 32 characters max)
|
|
/// </summary>
|
|
[FieldOffset(24)]
|
|
public fixed byte DataType[33];
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle
|
|
/// overlapping drag targets)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2777">imgui.h:2777</see>
|
|
/// <br/><c>bool Preview</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(57)]
|
|
public Bool8 Preview;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when AcceptDragDropPayload() was called and mouse button is released over the target item.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2778">imgui.h:2778</see>
|
|
/// <br/><c>bool Delivery</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(58)]
|
|
public Bool8 Delivery;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// User data payload for drag and drop operations
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L202">imgui.h:202</see>
|
|
/// <br/><c>struct ImGuiPayload</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiPayloadPtr(ImGuiPayload* ptr) : INullable
|
|
{
|
|
private ImGuiPayload* _ptr = ptr;
|
|
public ImGuiPayload* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiPayloadPtr(ImGuiPayload* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiPayload*(ImGuiPayloadPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Data (copied and owned by dear imgui)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2769">imgui.h:2769</see>
|
|
/// <br/><c>void* Data</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Data => ref Unsafe.AsRef<nint>(&_ptr->Data);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Data size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2770">imgui.h:2770</see>
|
|
/// <br/><c>int DataSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Members
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int DataSize => ref Unsafe.AsRef<int>(&_ptr->DataSize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Source item id
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2773">imgui.h:2773</see>
|
|
/// <br/><c>ImGuiID SourceId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiID SourceId => ref Unsafe.AsRef<ImGuiID>(&_ptr->SourceId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Source parent id (if available)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2774">imgui.h:2774</see>
|
|
/// <br/><c>ImGuiID SourceParentId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiID SourceParentId => ref Unsafe.AsRef<ImGuiID>(&_ptr->SourceParentId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Data timestamp
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2775">imgui.h:2775</see>
|
|
/// <br/><c>int DataFrameCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int DataFrameCount => ref Unsafe.AsRef<int>(&_ptr->DataFrameCount);
|
|
|
|
/// <summary>
|
|
/// Data type tag (short user-supplied string, 32 characters max)
|
|
/// </summary>
|
|
public Span<byte> DataType => MemoryMarshal.CreateSpan(ref _ptr->DataType[0], 33);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle
|
|
/// overlapping drag targets)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2777">imgui.h:2777</see>
|
|
/// <br/><c>bool Preview</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool Preview => ref Unsafe.AsRef<bool>(&_ptr->Preview);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when AcceptDragDropPayload() was called and mouse button is released over the target item.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2778">imgui.h:2778</see>
|
|
/// <br/><c>bool Delivery</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool Delivery => ref Unsafe.AsRef<bool>(&_ptr->Delivery);
|
|
}
|
|
}
|