//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Docking system context
///
///
/// C++:
/// imgui_internal.h:155
///
struct ImGuiDockContext
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 56)]
public partial struct ImGuiDockContext
{
///
///
/// Map ID -> ImGuiDockNode*: Active nodes
///
///
/// C++:
/// imgui_internal.h:2076
///
ImGuiStorage Nodes
///
///
[FieldOffset(0)]
public ImGuiStorage Nodes;
///
///
/// C++:
/// imgui_internal.h:2077
///
ImVector<ImGuiDockRequest> Requests
///
///
[FieldOffset(16)]
public ImVector Requests;
///
///
/// C++:
/// imgui_internal.h:2078
///
ImVector<ImGuiDockNodeSettings> NodesSettings
///
///
[FieldOffset(32)]
public ImVector NodesSettings;
///
///
/// C++:
/// imgui_internal.h:2079
///
bool WantFullRebuild
///
///
[FieldOffset(48)]
public Bool8 WantFullRebuild;
}
///
///
/// Docking system context
///
///
/// C++:
/// imgui_internal.h:155
///
struct ImGuiDockContext
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiDockContextPtr(ImGuiDockContext* ptr) : INullable
{
private ImGuiDockContext* _ptr = ptr;
public ImGuiDockContext* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiDockContextPtr(ImGuiDockContext* ptr) => new(ptr);
public static implicit operator ImGuiDockContext*(ImGuiDockContextPtr wrapper) => wrapper.Ptr;
///
///
/// Map ID -> ImGuiDockNode*: Active nodes
///
///
/// C++:
/// imgui_internal.h:2076
///
ImGuiStorage Nodes
///
///
public ref ImGuiStorage Nodes => ref Unsafe.AsRef(&_ptr->Nodes);
///
///
/// C++:
/// imgui_internal.h:2077
///
ImVector<ImGuiDockRequest> Requests
///
///
public ref ImVector Requests => ref Unsafe.AsRef>(&_ptr->Requests);
///
///
/// C++:
/// imgui_internal.h:2078
///
ImVector<ImGuiDockNodeSettings> NodesSettings
///
///
public ref ImVector NodesSettings =>
ref Unsafe.AsRef>(&_ptr->NodesSettings);
///
///
/// C++:
/// imgui_internal.h:2079
///
bool WantFullRebuild
///
///
public ref bool WantFullRebuild => ref Unsafe.AsRef(&_ptr->WantFullRebuild);
}
}