//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Docking system node (hold a list of Windows OR two child dock nodes)
///
///
/// C++:
/// imgui_internal.h:157
///
struct ImGuiDockNode
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 208)]
public partial struct ImGuiDockNode
{
///
///
/// C++:
/// imgui_internal.h:1990
///
ImGuiID ID
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// (Write) Flags shared by all nodes of a same dockspace hierarchy (inherited from the root node)
///
///
/// C++:
/// imgui_internal.h:1991
///
ImGuiDockNodeFlags SharedFlags
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(4)]
public ImGuiDockNodeFlags SharedFlags;
///
///
/// (Write) Flags specific to this node
///
///
/// C++:
/// imgui_internal.h:1992
///
ImGuiDockNodeFlags LocalFlags
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(8)]
public ImGuiDockNodeFlags LocalFlags;
///
///
/// (Write) Flags specific to this node, applied from windows
///
///
/// C++:
/// imgui_internal.h:1993
///
ImGuiDockNodeFlags LocalFlagsInWindows
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(12)]
public ImGuiDockNodeFlags LocalFlagsInWindows;
///
///
/// (Read) Effective flags (== SharedFlags | LocalFlagsInNode | LocalFlagsInWindows)
///
///
/// C++:
/// imgui_internal.h:1994
///
ImGuiDockNodeFlags MergedFlags
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(16)]
public ImGuiDockNodeFlags MergedFlags;
///
///
/// C++:
/// imgui_internal.h:1995
///
ImGuiDockNodeState State
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(20)]
public ImGuiDockNodeState State;
///
///
/// C++:
/// imgui_internal.h:1996
///
ImGuiDockNode* ParentNode
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(24)]
public ImGuiDockNodePtr ParentNode;
///
///
/// [Split node only] Child nodes (left/right or top/bottom). Consider switching to an array.
///
///
/// C++:
/// imgui_internal.h:1997
///
ImGuiDockNode* ChildNodes[2]
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(32)]
public ImGuiDockNodePtr_2 ChildNodes;
///
///
/// Note: unordered list! Iterate TabBar->Tabs for user-order.
///
///
/// C++:
/// imgui_internal.h:1998
///
ImVector<ImGuiWindow*> Windows
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(48)]
public ImVector Windows;
///
///
/// C++:
/// imgui_internal.h:1999
///
ImGuiTabBar* TabBar
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(64)]
public ImGuiTabBarPtr TabBar;
///
///
/// Current position
///
///
/// C++:
/// imgui_internal.h:2000
///
ImVec2 Pos
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(72)]
public float2 Pos;
///
///
/// Current size
///
///
/// C++:
/// imgui_internal.h:2001
///
ImVec2 Size
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(80)]
public float2 Size;
///
///
/// [Split node only] Last explicitly written-to size (overridden when using a splitter affecting the node),
/// used to calculate Size.
///
///
/// C++:
/// imgui_internal.h:2002
///
ImVec2 SizeRef
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(88)]
public float2 SizeRef;
///
///
/// [Split node only] Split axis (X or Y)
///
///
/// C++:
/// imgui_internal.h:2003
///
ImGuiAxis SplitAxis
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(96)]
public ImGuiAxis SplitAxis;
///
///
/// [Root node only]
///
///
/// C++:
/// imgui_internal.h:2004
///
ImGuiWindowClass WindowClass
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(100)]
public ImGuiWindowClass WindowClass;
///
///
/// C++:
/// imgui_internal.h:2005
///
ImU32 LastBgColor
///
///
///
///
/// sizeof() 156~192
///
///
[FieldOffset(132)]
public uint LastBgColor;
///
///
/// C++:
/// imgui_internal.h:2007
///
ImGuiWindow* HostWindow
///
///
[FieldOffset(136)]
public ImGuiWindowPtr HostWindow;
///
///
/// Generally point to window which is ID is == SelectedTabID, but when CTRL+Tabbing this can be a different
/// window.
///
///
/// C++:
/// imgui_internal.h:2008
///
ImGuiWindow* VisibleWindow
///
///
[FieldOffset(144)]
public ImGuiWindowPtr VisibleWindow;
///
///
/// [Root node only] Pointer to central node.
///
///
/// C++:
/// imgui_internal.h:2009
///
ImGuiDockNode* CentralNode
///
///
[FieldOffset(152)]
public ImGuiDockNodePtr CentralNode;
///
///
/// [Root node only] Set when there is a single visible node within the hierarchy.
///
///
/// C++:
/// imgui_internal.h:2010
///
ImGuiDockNode* OnlyNodeWithWindows
///
///
[FieldOffset(160)]
public ImGuiDockNodePtr OnlyNodeWithWindows;
///
///
/// [Root node only]
///
///
/// C++:
/// imgui_internal.h:2011
///
int CountNodeWithWindows
///
///
[FieldOffset(168)]
public int CountNodeWithWindows;
///
///
/// Last frame number the node was updated or kept alive explicitly with DockSpace() +
/// ImGuiDockNodeFlags_KeepAliveOnly
///
///
/// C++:
/// imgui_internal.h:2012
///
int LastFrameAlive
///
///
[FieldOffset(172)]
public int LastFrameAlive;
///
///
/// Last frame number the node was updated.
///
///
/// C++:
/// imgui_internal.h:2013
///
int LastFrameActive
///
///
[FieldOffset(176)]
public int LastFrameActive;
///
///
/// Last frame number the node was focused.
///
///
/// C++:
/// imgui_internal.h:2014
///
int LastFrameFocused
///
///
[FieldOffset(180)]
public int LastFrameFocused;
///
///
/// [Root node only] Which of our child docking node (any ancestor in the hierarchy) was last focused.
///
///
/// C++:
/// imgui_internal.h:2015
///
ImGuiID LastFocusedNodeId
///
///
[FieldOffset(184)]
public ImGuiID LastFocusedNodeId;
///
///
/// [Leaf node only] Which of our tab/window is selected.
///
///
/// C++:
/// imgui_internal.h:2016
///
ImGuiID SelectedTabId
///
///
[FieldOffset(188)]
public ImGuiID SelectedTabId;
///
///
/// [Leaf node only] Set when closing a specific tab/window.
///
///
/// C++:
/// imgui_internal.h:2017
///
ImGuiID WantCloseTabId
///
///
[FieldOffset(192)]
public ImGuiID WantCloseTabId;
///
///
/// Reference viewport ID from visible window when HostWindow == NULL.
///
///
/// C++:
/// imgui_internal.h:2018
///
ImGuiID RefViewportId
///
///
[FieldOffset(196)]
public ImGuiID RefViewportId;
///
///
/// C++:
/// imgui_internal.h:2019
///
ImGuiDataAuthority AuthorityForPos :3
///
///
[FieldOffset(200)]
public ImGuiDataAuthority AuthorityForPos;
///
///
/// C++:
/// imgui_internal.h:2020
///
ImGuiDataAuthority AuthorityForSize :3
///
///
[FieldOffset(200)]
public ImGuiDataAuthority AuthorityForSize;
///
///
/// C++:
/// imgui_internal.h:2021
///
ImGuiDataAuthority AuthorityForViewport :3
///
///
[FieldOffset(200)]
public ImGuiDataAuthority AuthorityForViewport;
///
///
/// Set to false when the node is hidden (usually disabled as it has no active window)
///
///
/// C++:
/// imgui_internal.h:2022
///
bool IsVisible :1
///
///
[FieldOffset(204)]
public Bool8 IsVisible;
///
///
/// C++:
/// imgui_internal.h:2023
///
bool IsFocused :1
///
///
[FieldOffset(204)]
public Bool8 IsFocused;
///
///
/// C++:
/// imgui_internal.h:2024
///
bool IsBgDrawnThisFrame :1
///
///
[FieldOffset(204)]
public Bool8 IsBgDrawnThisFrame;
///
///
/// Provide space for a close button (if any of the docked window has one). Note that button may be hidden
/// on window without one.
///
///
/// C++:
/// imgui_internal.h:2025
///
bool HasCloseButton :1
///
///
[FieldOffset(204)]
public Bool8 HasCloseButton;
///
///
/// C++:
/// imgui_internal.h:2026
///
bool HasWindowMenuButton :1
///
///
[FieldOffset(204)]
public Bool8 HasWindowMenuButton;
///
///
/// C++:
/// imgui_internal.h:2027
///
bool HasCentralNodeChild :1
///
///
[FieldOffset(204)]
public Bool8 HasCentralNodeChild;
///
///
/// Set when closing all tabs at once.
///
///
/// C++:
/// imgui_internal.h:2028
///
bool WantCloseAll :1
///
///
[FieldOffset(204)]
public Bool8 WantCloseAll;
///
///
/// C++:
/// imgui_internal.h:2029
///
bool WantLockSizeOnce :1
///
///
[FieldOffset(204)]
public Bool8 WantLockSizeOnce;
///
///
/// After a node extraction we need to transition toward moving the newly created host window
///
///
/// C++:
/// imgui_internal.h:2030
///
bool WantMouseMove :1
///
///
[FieldOffset(205)]
public Bool8 WantMouseMove;
///
///
/// C++:
/// imgui_internal.h:2031
///
bool WantHiddenTabBarUpdate :1
///
///
[FieldOffset(205)]
public Bool8 WantHiddenTabBarUpdate;
///
///
/// C++:
/// imgui_internal.h:2032
///
bool WantHiddenTabBarToggle :1
///
///
[FieldOffset(205)]
public Bool8 WantHiddenTabBarToggle;
}
///
///
/// Docking system node (hold a list of Windows OR two child dock nodes)
///
///
/// C++:
/// imgui_internal.h:157
///
struct ImGuiDockNode
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiDockNodePtr(ImGuiDockNode* ptr) : INullable
{
private ImGuiDockNode* _ptr = ptr;
public ImGuiDockNode* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiDockNodePtr(ImGuiDockNode* ptr) => new(ptr);
public static implicit operator ImGuiDockNode*(ImGuiDockNodePtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1990
///
ImGuiID ID
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// (Write) Flags shared by all nodes of a same dockspace hierarchy (inherited from the root node)
///
///
/// C++:
/// imgui_internal.h:1991
///
ImGuiDockNodeFlags SharedFlags
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodeFlags SharedFlags => ref Unsafe.AsRef(&_ptr->SharedFlags);
///
///
/// (Write) Flags specific to this node
///
///
/// C++:
/// imgui_internal.h:1992
///
ImGuiDockNodeFlags LocalFlags
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodeFlags LocalFlags => ref Unsafe.AsRef(&_ptr->LocalFlags);
///
///
/// (Write) Flags specific to this node, applied from windows
///
///
/// C++:
/// imgui_internal.h:1993
///
ImGuiDockNodeFlags LocalFlagsInWindows
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodeFlags LocalFlagsInWindows =>
ref Unsafe.AsRef(&_ptr->LocalFlagsInWindows);
///
///
/// (Read) Effective flags (== SharedFlags | LocalFlagsInNode | LocalFlagsInWindows)
///
///
/// C++:
/// imgui_internal.h:1994
///
ImGuiDockNodeFlags MergedFlags
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodeFlags MergedFlags => ref Unsafe.AsRef(&_ptr->MergedFlags);
///
///
/// C++:
/// imgui_internal.h:1995
///
ImGuiDockNodeState State
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodeState State => ref Unsafe.AsRef(&_ptr->State);
///
///
/// C++:
/// imgui_internal.h:1996
///
ImGuiDockNode* ParentNode
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodePtr ParentNode => ref Unsafe.AsRef(&_ptr->ParentNode);
///
///
/// [Split node only] Child nodes (left/right or top/bottom). Consider switching to an array.
///
///
/// C++:
/// imgui_internal.h:1997
///
ImGuiDockNode* ChildNodes[2]
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiDockNodePtr_2 ChildNodes => ref Unsafe.AsRef(&_ptr->ChildNodes);
///
///
/// Note: unordered list! Iterate TabBar->Tabs for user-order.
///
///
/// C++:
/// imgui_internal.h:1998
///
ImVector<ImGuiWindow*> Windows
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImVector Windows => ref Unsafe.AsRef>(&_ptr->Windows);
///
///
/// C++:
/// imgui_internal.h:1999
///
ImGuiTabBar* TabBar
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiTabBarPtr TabBar => ref Unsafe.AsRef(&_ptr->TabBar);
///
///
/// Current position
///
///
/// C++:
/// imgui_internal.h:2000
///
ImVec2 Pos
///
///
///
///
/// sizeof() 156~192
///
///
public ref float2 Pos => ref Unsafe.AsRef(&_ptr->Pos);
///
///
/// Current size
///
///
/// C++:
/// imgui_internal.h:2001
///
ImVec2 Size
///
///
///
///
/// sizeof() 156~192
///
///
public ref float2 Size => ref Unsafe.AsRef(&_ptr->Size);
///
///
/// [Split node only] Last explicitly written-to size (overridden when using a splitter affecting the node),
/// used to calculate Size.
///
///
/// C++:
/// imgui_internal.h:2002
///
ImVec2 SizeRef
///
///
///
///
/// sizeof() 156~192
///
///
public ref float2 SizeRef => ref Unsafe.AsRef(&_ptr->SizeRef);
///
///
/// [Split node only] Split axis (X or Y)
///
///
/// C++:
/// imgui_internal.h:2003
///
ImGuiAxis SplitAxis
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiAxis SplitAxis => ref Unsafe.AsRef(&_ptr->SplitAxis);
///
///
/// [Root node only]
///
///
/// C++:
/// imgui_internal.h:2004
///
ImGuiWindowClass WindowClass
///
///
///
///
/// sizeof() 156~192
///
///
public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&_ptr->WindowClass);
///
///
/// C++:
/// imgui_internal.h:2005
///
ImU32 LastBgColor
///
///
///
///
/// sizeof() 156~192
///
///
public ref uint LastBgColor => ref Unsafe.AsRef(&_ptr->LastBgColor);
///
///
/// C++:
/// imgui_internal.h:2007
///
ImGuiWindow* HostWindow
///
///
public ref ImGuiWindowPtr HostWindow => ref Unsafe.AsRef(&_ptr->HostWindow);
///
///
/// Generally point to window which is ID is == SelectedTabID, but when CTRL+Tabbing this can be a different
/// window.
///
///
/// C++:
/// imgui_internal.h:2008
///
ImGuiWindow* VisibleWindow
///
///
public ref ImGuiWindowPtr VisibleWindow => ref Unsafe.AsRef(&_ptr->VisibleWindow);
///
///
/// [Root node only] Pointer to central node.
///
///
/// C++:
/// imgui_internal.h:2009
///
ImGuiDockNode* CentralNode
///
///
public ref ImGuiDockNodePtr CentralNode => ref Unsafe.AsRef(&_ptr->CentralNode);
///
///
/// [Root node only] Set when there is a single visible node within the hierarchy.
///
///
/// C++:
/// imgui_internal.h:2010
///
ImGuiDockNode* OnlyNodeWithWindows
///
///
public ref ImGuiDockNodePtr OnlyNodeWithWindows =>
ref Unsafe.AsRef(&_ptr->OnlyNodeWithWindows);
///
///
/// [Root node only]
///
///
/// C++:
/// imgui_internal.h:2011
///
int CountNodeWithWindows
///
///
public ref int CountNodeWithWindows => ref Unsafe.AsRef(&_ptr->CountNodeWithWindows);
///
///
/// Last frame number the node was updated or kept alive explicitly with DockSpace() +
/// ImGuiDockNodeFlags_KeepAliveOnly
///
///
/// C++:
/// imgui_internal.h:2012
///
int LastFrameAlive
///
///
public ref int LastFrameAlive => ref Unsafe.AsRef(&_ptr->LastFrameAlive);
///
///
/// Last frame number the node was updated.
///
///
/// C++:
/// imgui_internal.h:2013
///
int LastFrameActive
///
///
public ref int LastFrameActive => ref Unsafe.AsRef(&_ptr->LastFrameActive);
///
///
/// Last frame number the node was focused.
///
///
/// C++:
/// imgui_internal.h:2014
///
int LastFrameFocused
///
///
public ref int LastFrameFocused => ref Unsafe.AsRef(&_ptr->LastFrameFocused);
///
///
/// [Root node only] Which of our child docking node (any ancestor in the hierarchy) was last focused.
///
///
/// C++:
/// imgui_internal.h:2015
///
ImGuiID LastFocusedNodeId
///
///
public ref ImGuiID LastFocusedNodeId => ref Unsafe.AsRef(&_ptr->LastFocusedNodeId);
///
///
/// [Leaf node only] Which of our tab/window is selected.
///
///
/// C++:
/// imgui_internal.h:2016
///
ImGuiID SelectedTabId
///
///
public ref ImGuiID SelectedTabId => ref Unsafe.AsRef(&_ptr->SelectedTabId);
///
///
/// [Leaf node only] Set when closing a specific tab/window.
///
///
/// C++:
/// imgui_internal.h:2017
///
ImGuiID WantCloseTabId
///
///
public ref ImGuiID WantCloseTabId => ref Unsafe.AsRef(&_ptr->WantCloseTabId);
///
///
/// Reference viewport ID from visible window when HostWindow == NULL.
///
///
/// C++:
/// imgui_internal.h:2018
///
ImGuiID RefViewportId
///
///
public ref ImGuiID RefViewportId => ref Unsafe.AsRef(&_ptr->RefViewportId);
///
///
/// C++:
/// imgui_internal.h:2019
///
ImGuiDataAuthority AuthorityForPos :3
///
///
public ref ImGuiDataAuthority AuthorityForPos => ref Unsafe.AsRef(&_ptr->AuthorityForPos);
///
///
/// C++:
/// imgui_internal.h:2020
///
ImGuiDataAuthority AuthorityForSize :3
///
///
public ref ImGuiDataAuthority AuthorityForSize => ref Unsafe.AsRef(&_ptr->AuthorityForSize);
///
///
/// C++:
/// imgui_internal.h:2021
///
ImGuiDataAuthority AuthorityForViewport :3
///
///
public ref ImGuiDataAuthority AuthorityForViewport =>
ref Unsafe.AsRef(&_ptr->AuthorityForViewport);
///
///
/// Set to false when the node is hidden (usually disabled as it has no active window)
///
///
/// C++:
/// imgui_internal.h:2022
///
bool IsVisible :1
///
///
public ref bool IsVisible => ref Unsafe.AsRef(&_ptr->IsVisible);
///
///
/// C++:
/// imgui_internal.h:2023
///
bool IsFocused :1
///
///
public ref bool IsFocused => ref Unsafe.AsRef(&_ptr->IsFocused);
///
///
/// C++:
/// imgui_internal.h:2024
///
bool IsBgDrawnThisFrame :1
///
///
public ref bool IsBgDrawnThisFrame => ref Unsafe.AsRef(&_ptr->IsBgDrawnThisFrame);
///
///
/// Provide space for a close button (if any of the docked window has one). Note that button may be hidden
/// on window without one.
///
///
/// C++:
/// imgui_internal.h:2025
///
bool HasCloseButton :1
///
///
public ref bool HasCloseButton => ref Unsafe.AsRef(&_ptr->HasCloseButton);
///
///
/// C++:
/// imgui_internal.h:2026
///
bool HasWindowMenuButton :1
///
///
public ref bool HasWindowMenuButton => ref Unsafe.AsRef(&_ptr->HasWindowMenuButton);
///
///
/// C++:
/// imgui_internal.h:2027
///
bool HasCentralNodeChild :1
///
///
public ref bool HasCentralNodeChild => ref Unsafe.AsRef(&_ptr->HasCentralNodeChild);
///
///
/// Set when closing all tabs at once.
///
///
/// C++:
/// imgui_internal.h:2028
///
bool WantCloseAll :1
///
///
public ref bool WantCloseAll => ref Unsafe.AsRef(&_ptr->WantCloseAll);
///
///
/// C++:
/// imgui_internal.h:2029
///
bool WantLockSizeOnce :1
///
///
public ref bool WantLockSizeOnce => ref Unsafe.AsRef(&_ptr->WantLockSizeOnce);
///
///
/// After a node extraction we need to transition toward moving the newly created host window
///
///
/// C++:
/// imgui_internal.h:2030
///
bool WantMouseMove :1
///
///
public ref bool WantMouseMove => ref Unsafe.AsRef(&_ptr->WantMouseMove);
///
///
/// C++:
/// imgui_internal.h:2031
///
bool WantHiddenTabBarUpdate :1
///
///
public ref bool WantHiddenTabBarUpdate => ref Unsafe.AsRef(&_ptr->WantHiddenTabBarUpdate);
///
///
/// C++:
/// imgui_internal.h:2032
///
bool WantHiddenTabBarToggle :1
///
///
public ref bool WantHiddenTabBarToggle => ref Unsafe.AsRef(&_ptr->WantHiddenTabBarToggle);
}
}