mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
312
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiPayload.gen.cs
Normal file
312
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiPayload.gen.cs
Normal file
|
|
@ -0,0 +1,312 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue