// ------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// ------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
namespace Dalamud.Bindings.ImGui
{
///
/// To be documented.
///
[StructLayout(LayoutKind.Sequential)]
public partial struct ImGuiWindow
{
///
/// To be documented.
///
public unsafe byte* Name;
///
/// To be documented.
///
public uint ID;
///
/// To be documented.
///
public ImGuiWindowFlags Flags;
///
/// To be documented.
///
public ImGuiWindowFlags FlagsPreviousFrame;
///
/// To be documented.
///
public ImGuiWindowClass WindowClass;
///
/// To be documented.
///
public unsafe ImGuiViewportP* Viewport;
///
/// To be documented.
///
public uint ViewportId;
///
/// To be documented.
///
public Vector2 ViewportPos;
///
/// To be documented.
///
public int ViewportAllowPlatformMonitorExtend;
///
/// To be documented.
///
public Vector2 Pos;
///
/// To be documented.
///
public Vector2 Size;
///
/// To be documented.
///
public Vector2 SizeFull;
///
/// To be documented.
///
public Vector2 ContentSize;
///
/// To be documented.
///
public Vector2 ContentSizeIdeal;
///
/// To be documented.
///
public Vector2 ContentSizeExplicit;
///
/// To be documented.
///
public Vector2 WindowPadding;
///
/// To be documented.
///
public float WindowRounding;
///
/// To be documented.
///
public float WindowBorderSize;
///
/// To be documented.
///
public int NameBufLen;
///
/// To be documented.
///
public uint MoveId;
///
/// To be documented.
///
public uint TabId;
///
/// To be documented.
///
public uint ChildId;
///
/// To be documented.
///
public Vector2 Scroll;
///
/// To be documented.
///
public Vector2 ScrollMax;
///
/// To be documented.
///
public Vector2 ScrollTarget;
///
/// To be documented.
///
public Vector2 ScrollTargetCenterRatio;
///
/// To be documented.
///
public Vector2 ScrollTargetEdgeSnapDist;
///
/// To be documented.
///
public Vector2 ScrollbarSizes;
///
/// To be documented.
///
public byte ScrollbarX;
///
/// To be documented.
///
public byte ScrollbarY;
///
/// To be documented.
///
public byte ViewportOwned;
///
/// To be documented.
///
public byte Active;
///
/// To be documented.
///
public byte WasActive;
///
/// To be documented.
///
public byte WriteAccessed;
///
/// To be documented.
///
public byte Collapsed;
///
/// To be documented.
///
public byte WantCollapseToggle;
///
/// To be documented.
///
public byte SkipItems;
///
/// To be documented.
///
public byte Appearing;
///
/// To be documented.
///
public byte Hidden;
///
/// To be documented.
///
public byte IsFallbackWindow;
///
/// To be documented.
///
public byte IsExplicitChild;
///
/// To be documented.
///
public byte HasCloseButton;
///
/// To be documented.
///
public byte ResizeBorderHeld;
///
/// To be documented.
///
public short BeginCount;
///
/// To be documented.
///
public short BeginOrderWithinParent;
///
/// To be documented.
///
public short BeginOrderWithinContext;
///
/// To be documented.
///
public short FocusOrder;
///
/// To be documented.
///
public uint PopupId;
///
/// To be documented.
///
public sbyte AutoFitFramesX;
///
/// To be documented.
///
public sbyte AutoFitFramesY;
///
/// To be documented.
///
public sbyte AutoFitChildAxises;
///
/// To be documented.
///
public byte AutoFitOnlyGrows;
///
/// To be documented.
///
public ImGuiDir AutoPosLastDirection;
///
/// To be documented.
///
public sbyte HiddenFramesCanSkipItems;
///
/// To be documented.
///
public sbyte HiddenFramesCannotSkipItems;
///
/// To be documented.
///
public sbyte HiddenFramesForRenderOnly;
///
/// To be documented.
///
public sbyte DisableInputsFrames;
public ImGuiCond RawBits0;
///
/// To be documented.
///
public Vector2 SetWindowPosVal;
///
/// To be documented.
///
public Vector2 SetWindowPosPivot;
///
/// To be documented.
///
public ImVector IDStack;
///
/// To be documented.
///
public ImGuiWindowTempData DC;
///
/// To be documented.
///
public ImRect OuterRectClipped;
///
/// To be documented.
///
public ImRect InnerRect;
///
/// To be documented.
///
public ImRect InnerClipRect;
///
/// To be documented.
///
public ImRect WorkRect;
///
/// To be documented.
///
public ImRect ParentWorkRect;
///
/// To be documented.
///
public ImRect ClipRect;
///
/// To be documented.
///
public ImRect ContentRegionRect;
///
/// To be documented.
///
public ImVec2Ih HitTestHoleSize;
///
/// To be documented.
///
public ImVec2Ih HitTestHoleOffset;
///
/// To be documented.
///
public int LastFrameActive;
///
/// To be documented.
///
public int LastFrameJustFocused;
///
/// To be documented.
///
public float LastTimeActive;
///
/// To be documented.
///
public float ItemWidthDefault;
///
/// To be documented.
///
public ImGuiStorage StateStorage;
///
/// To be documented.
///
public ImVector ColumnsStorage;
///
/// To be documented.
///
public float FontWindowScale;
///
/// To be documented.
///
public float FontDpiScale;
///
/// To be documented.
///
public int SettingsOffset;
///
/// To be documented.
///
public unsafe ImDrawList* DrawList;
///
/// To be documented.
///
public ImDrawList DrawListInst;
///
/// To be documented.
///
public unsafe ImGuiWindow* ParentWindow;
///
/// To be documented.
///
public unsafe ImGuiWindow* ParentWindowInBeginStack;
///
/// To be documented.
///
public unsafe ImGuiWindow* RootWindow;
///
/// To be documented.
///
public unsafe ImGuiWindow* RootWindowPopupTree;
///
/// To be documented.
///
public unsafe ImGuiWindow* RootWindowDockTree;
///
/// To be documented.
///
public unsafe ImGuiWindow* RootWindowForTitleBarHighlight;
///
/// To be documented.
///
public unsafe ImGuiWindow* RootWindowForNav;
///
/// To be documented.
///
public unsafe ImGuiWindow* NavLastChildNavWindow;
///
/// To be documented.
///
public uint NavLastIds_0;
public uint NavLastIds_1;
///
/// To be documented.
///
public ImRect NavRectRel_0;
public ImRect NavRectRel_1;
///
/// To be documented.
///
public int MemoryDrawListIdxCapacity;
///
/// To be documented.
///
public int MemoryDrawListVtxCapacity;
///
/// To be documented.
///
public byte MemoryCompacted;
public bool RawBits1;
///
/// To be documented.
///
public short DockOrder;
///
/// To be documented.
///
public ImGuiWindowDockStyle DockStyle;
///
/// To be documented.
///
public unsafe ImGuiDockNode* DockNode;
///
/// To be documented.
///
public unsafe ImGuiDockNode* DockNodeAsHost;
///
/// To be documented.
///
public uint DockId;
///
/// To be documented.
///
public ImGuiItemStatusFlags DockTabItemStatusFlags;
///
/// To be documented.
///
public ImRect DockTabItemRect;
///
/// To be documented.
///
public byte InheritNoInputs;
///
/// To be documented.
///
public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, uint* navLastIds = default, ImRect* navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default)
{
Name = name;
ID = id;
Flags = flags;
FlagsPreviousFrame = flagsPreviousFrame;
WindowClass = windowClass;
Viewport = viewport;
ViewportId = viewportId;
ViewportPos = viewportPos;
ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend;
Pos = pos;
Size = size;
SizeFull = sizeFull;
ContentSize = contentSize;
ContentSizeIdeal = contentSizeIdeal;
ContentSizeExplicit = contentSizeExplicit;
WindowPadding = windowPadding;
WindowRounding = windowRounding;
WindowBorderSize = windowBorderSize;
NameBufLen = nameBufLen;
MoveId = moveId;
TabId = tabId;
ChildId = childId;
Scroll = scroll;
ScrollMax = scrollMax;
ScrollTarget = scrollTarget;
ScrollTargetCenterRatio = scrollTargetCenterRatio;
ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist;
ScrollbarSizes = scrollbarSizes;
ScrollbarX = scrollbarX ? (byte)1 : (byte)0;
ScrollbarY = scrollbarY ? (byte)1 : (byte)0;
ViewportOwned = viewportOwned ? (byte)1 : (byte)0;
Active = active ? (byte)1 : (byte)0;
WasActive = wasActive ? (byte)1 : (byte)0;
WriteAccessed = writeAccessed ? (byte)1 : (byte)0;
Collapsed = collapsed ? (byte)1 : (byte)0;
WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0;
SkipItems = skipItems ? (byte)1 : (byte)0;
Appearing = appearing ? (byte)1 : (byte)0;
Hidden = hidden ? (byte)1 : (byte)0;
IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0;
IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0;
HasCloseButton = hasCloseButton ? (byte)1 : (byte)0;
ResizeBorderHeld = resizeBorderHeld;
BeginCount = beginCount;
BeginOrderWithinParent = beginOrderWithinParent;
BeginOrderWithinContext = beginOrderWithinContext;
FocusOrder = focusOrder;
PopupId = popupId;
AutoFitFramesX = autoFitFramesX;
AutoFitFramesY = autoFitFramesY;
AutoFitChildAxises = autoFitChildAxises;
AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0;
AutoPosLastDirection = autoPosLastDirection;
HiddenFramesCanSkipItems = hiddenFramesCanSkipItems;
HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems;
HiddenFramesForRenderOnly = hiddenFramesForRenderOnly;
DisableInputsFrames = disableInputsFrames;
SetWindowPosAllowFlags = setWindowPosAllowFlags;
SetWindowSizeAllowFlags = setWindowSizeAllowFlags;
SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags;
SetWindowDockAllowFlags = setWindowDockAllowFlags;
SetWindowPosVal = setWindowPosVal;
SetWindowPosPivot = setWindowPosPivot;
IDStack = idStack;
DC = dc;
OuterRectClipped = outerRectClipped;
InnerRect = innerRect;
InnerClipRect = innerClipRect;
WorkRect = workRect;
ParentWorkRect = parentWorkRect;
ClipRect = clipRect;
ContentRegionRect = contentRegionRect;
HitTestHoleSize = hitTestHoleSize;
HitTestHoleOffset = hitTestHoleOffset;
LastFrameActive = lastFrameActive;
LastFrameJustFocused = lastFrameJustFocused;
LastTimeActive = lastTimeActive;
ItemWidthDefault = itemWidthDefault;
StateStorage = stateStorage;
ColumnsStorage = columnsStorage;
FontWindowScale = fontWindowScale;
FontDpiScale = fontDpiScale;
SettingsOffset = settingsOffset;
DrawList = drawList;
DrawListInst = drawListInst;
ParentWindow = parentWindow;
ParentWindowInBeginStack = parentWindowInBeginStack;
RootWindow = rootWindow;
RootWindowPopupTree = rootWindowPopupTree;
RootWindowDockTree = rootWindowDockTree;
RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight;
RootWindowForNav = rootWindowForNav;
NavLastChildNavWindow = navLastChildNavWindow;
if (navLastIds != default(uint*))
{
NavLastIds_0 = navLastIds[0];
NavLastIds_1 = navLastIds[1];
}
if (navRectRel != default(ImRect*))
{
NavRectRel_0 = navRectRel[0];
NavRectRel_1 = navRectRel[1];
}
MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity;
MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity;
MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0;
DockIsActive = dockIsActive;
DockNodeIsVisible = dockNodeIsVisible;
DockTabIsVisible = dockTabIsVisible;
DockTabWantClose = dockTabWantClose;
DockOrder = dockOrder;
DockStyle = dockStyle;
DockNode = dockNode;
DockNodeAsHost = dockNodeAsHost;
DockId = dockId;
DockTabItemStatusFlags = dockTabItemStatusFlags;
DockTabItemRect = dockTabItemRect;
InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0;
}
///
/// To be documented.
///
public unsafe ImGuiWindow(byte* name = default, uint id = default, ImGuiWindowFlags flags = default, ImGuiWindowFlags flagsPreviousFrame = default, ImGuiWindowClass windowClass = default, ImGuiViewportP* viewport = default, uint viewportId = default, Vector2 viewportPos = default, int viewportAllowPlatformMonitorExtend = default, Vector2 pos = default, Vector2 size = default, Vector2 sizeFull = default, Vector2 contentSize = default, Vector2 contentSizeIdeal = default, Vector2 contentSizeExplicit = default, Vector2 windowPadding = default, float windowRounding = default, float windowBorderSize = default, int nameBufLen = default, uint moveId = default, uint tabId = default, uint childId = default, Vector2 scroll = default, Vector2 scrollMax = default, Vector2 scrollTarget = default, Vector2 scrollTargetCenterRatio = default, Vector2 scrollTargetEdgeSnapDist = default, Vector2 scrollbarSizes = default, bool scrollbarX = default, bool scrollbarY = default, bool viewportOwned = default, bool active = default, bool wasActive = default, bool writeAccessed = default, bool collapsed = default, bool wantCollapseToggle = default, bool skipItems = default, bool appearing = default, bool hidden = default, bool isFallbackWindow = default, bool isExplicitChild = default, bool hasCloseButton = default, byte resizeBorderHeld = default, short beginCount = default, short beginOrderWithinParent = default, short beginOrderWithinContext = default, short focusOrder = default, uint popupId = default, sbyte autoFitFramesX = default, sbyte autoFitFramesY = default, sbyte autoFitChildAxises = default, bool autoFitOnlyGrows = default, ImGuiDir autoPosLastDirection = default, sbyte hiddenFramesCanSkipItems = default, sbyte hiddenFramesCannotSkipItems = default, sbyte hiddenFramesForRenderOnly = default, sbyte disableInputsFrames = default, ImGuiCond setWindowPosAllowFlags = default, ImGuiCond setWindowSizeAllowFlags = default, ImGuiCond setWindowCollapsedAllowFlags = default, ImGuiCond setWindowDockAllowFlags = default, Vector2 setWindowPosVal = default, Vector2 setWindowPosPivot = default, ImVector idStack = default, ImGuiWindowTempData dc = default, ImRect outerRectClipped = default, ImRect innerRect = default, ImRect innerClipRect = default, ImRect workRect = default, ImRect parentWorkRect = default, ImRect clipRect = default, ImRect contentRegionRect = default, ImVec2Ih hitTestHoleSize = default, ImVec2Ih hitTestHoleOffset = default, int lastFrameActive = default, int lastFrameJustFocused = default, float lastTimeActive = default, float itemWidthDefault = default, ImGuiStorage stateStorage = default, ImVector columnsStorage = default, float fontWindowScale = default, float fontDpiScale = default, int settingsOffset = default, ImDrawListPtr drawList = default, ImDrawList drawListInst = default, ImGuiWindow* parentWindow = default, ImGuiWindow* parentWindowInBeginStack = default, ImGuiWindow* rootWindow = default, ImGuiWindow* rootWindowPopupTree = default, ImGuiWindow* rootWindowDockTree = default, ImGuiWindow* rootWindowForTitleBarHighlight = default, ImGuiWindow* rootWindowForNav = default, ImGuiWindow* navLastChildNavWindow = default, Span navLastIds = default, Span navRectRel = default, int memoryDrawListIdxCapacity = default, int memoryDrawListVtxCapacity = default, bool memoryCompacted = default, bool dockIsActive = default, bool dockNodeIsVisible = default, bool dockTabIsVisible = default, bool dockTabWantClose = default, short dockOrder = default, ImGuiWindowDockStyle dockStyle = default, ImGuiDockNode* dockNode = default, ImGuiDockNode* dockNodeAsHost = default, uint dockId = default, ImGuiItemStatusFlags dockTabItemStatusFlags = default, ImRect dockTabItemRect = default, bool inheritNoInputs = default)
{
Name = name;
ID = id;
Flags = flags;
FlagsPreviousFrame = flagsPreviousFrame;
WindowClass = windowClass;
Viewport = viewport;
ViewportId = viewportId;
ViewportPos = viewportPos;
ViewportAllowPlatformMonitorExtend = viewportAllowPlatformMonitorExtend;
Pos = pos;
Size = size;
SizeFull = sizeFull;
ContentSize = contentSize;
ContentSizeIdeal = contentSizeIdeal;
ContentSizeExplicit = contentSizeExplicit;
WindowPadding = windowPadding;
WindowRounding = windowRounding;
WindowBorderSize = windowBorderSize;
NameBufLen = nameBufLen;
MoveId = moveId;
TabId = tabId;
ChildId = childId;
Scroll = scroll;
ScrollMax = scrollMax;
ScrollTarget = scrollTarget;
ScrollTargetCenterRatio = scrollTargetCenterRatio;
ScrollTargetEdgeSnapDist = scrollTargetEdgeSnapDist;
ScrollbarSizes = scrollbarSizes;
ScrollbarX = scrollbarX ? (byte)1 : (byte)0;
ScrollbarY = scrollbarY ? (byte)1 : (byte)0;
ViewportOwned = viewportOwned ? (byte)1 : (byte)0;
Active = active ? (byte)1 : (byte)0;
WasActive = wasActive ? (byte)1 : (byte)0;
WriteAccessed = writeAccessed ? (byte)1 : (byte)0;
Collapsed = collapsed ? (byte)1 : (byte)0;
WantCollapseToggle = wantCollapseToggle ? (byte)1 : (byte)0;
SkipItems = skipItems ? (byte)1 : (byte)0;
Appearing = appearing ? (byte)1 : (byte)0;
Hidden = hidden ? (byte)1 : (byte)0;
IsFallbackWindow = isFallbackWindow ? (byte)1 : (byte)0;
IsExplicitChild = isExplicitChild ? (byte)1 : (byte)0;
HasCloseButton = hasCloseButton ? (byte)1 : (byte)0;
ResizeBorderHeld = resizeBorderHeld;
BeginCount = beginCount;
BeginOrderWithinParent = beginOrderWithinParent;
BeginOrderWithinContext = beginOrderWithinContext;
FocusOrder = focusOrder;
PopupId = popupId;
AutoFitFramesX = autoFitFramesX;
AutoFitFramesY = autoFitFramesY;
AutoFitChildAxises = autoFitChildAxises;
AutoFitOnlyGrows = autoFitOnlyGrows ? (byte)1 : (byte)0;
AutoPosLastDirection = autoPosLastDirection;
HiddenFramesCanSkipItems = hiddenFramesCanSkipItems;
HiddenFramesCannotSkipItems = hiddenFramesCannotSkipItems;
HiddenFramesForRenderOnly = hiddenFramesForRenderOnly;
DisableInputsFrames = disableInputsFrames;
SetWindowPosAllowFlags = setWindowPosAllowFlags;
SetWindowSizeAllowFlags = setWindowSizeAllowFlags;
SetWindowCollapsedAllowFlags = setWindowCollapsedAllowFlags;
SetWindowDockAllowFlags = setWindowDockAllowFlags;
SetWindowPosVal = setWindowPosVal;
SetWindowPosPivot = setWindowPosPivot;
IDStack = idStack;
DC = dc;
OuterRectClipped = outerRectClipped;
InnerRect = innerRect;
InnerClipRect = innerClipRect;
WorkRect = workRect;
ParentWorkRect = parentWorkRect;
ClipRect = clipRect;
ContentRegionRect = contentRegionRect;
HitTestHoleSize = hitTestHoleSize;
HitTestHoleOffset = hitTestHoleOffset;
LastFrameActive = lastFrameActive;
LastFrameJustFocused = lastFrameJustFocused;
LastTimeActive = lastTimeActive;
ItemWidthDefault = itemWidthDefault;
StateStorage = stateStorage;
ColumnsStorage = columnsStorage;
FontWindowScale = fontWindowScale;
FontDpiScale = fontDpiScale;
SettingsOffset = settingsOffset;
DrawList = drawList;
DrawListInst = drawListInst;
ParentWindow = parentWindow;
ParentWindowInBeginStack = parentWindowInBeginStack;
RootWindow = rootWindow;
RootWindowPopupTree = rootWindowPopupTree;
RootWindowDockTree = rootWindowDockTree;
RootWindowForTitleBarHighlight = rootWindowForTitleBarHighlight;
RootWindowForNav = rootWindowForNav;
NavLastChildNavWindow = navLastChildNavWindow;
if (navLastIds != default(Span))
{
NavLastIds_0 = navLastIds[0];
NavLastIds_1 = navLastIds[1];
}
if (navRectRel != default(Span))
{
NavRectRel_0 = navRectRel[0];
NavRectRel_1 = navRectRel[1];
}
MemoryDrawListIdxCapacity = memoryDrawListIdxCapacity;
MemoryDrawListVtxCapacity = memoryDrawListVtxCapacity;
MemoryCompacted = memoryCompacted ? (byte)1 : (byte)0;
DockIsActive = dockIsActive;
DockNodeIsVisible = dockNodeIsVisible;
DockTabIsVisible = dockTabIsVisible;
DockTabWantClose = dockTabWantClose;
DockOrder = dockOrder;
DockStyle = dockStyle;
DockNode = dockNode;
DockNodeAsHost = dockNodeAsHost;
DockId = dockId;
DockTabItemStatusFlags = dockTabItemStatusFlags;
DockTabItemRect = dockTabItemRect;
InheritNoInputs = inheritNoInputs ? (byte)1 : (byte)0;
}
public ImGuiCond SetWindowPosAllowFlags { get => Bitfield.Get(RawBits0, 0, 8); set => Bitfield.Set(ref RawBits0, value, 0, 8); }
public ImGuiCond SetWindowSizeAllowFlags { get => Bitfield.Get(RawBits0, 8, 8); set => Bitfield.Set(ref RawBits0, value, 8, 8); }
public ImGuiCond SetWindowCollapsedAllowFlags { get => Bitfield.Get(RawBits0, 16, 8); set => Bitfield.Set(ref RawBits0, value, 16, 8); }
public ImGuiCond SetWindowDockAllowFlags { get => Bitfield.Get(RawBits0, 24, 8); set => Bitfield.Set(ref RawBits0, value, 24, 8); }
public bool DockIsActive { get => Bitfield.Get(RawBits1, 0, 1); set => Bitfield.Set(ref RawBits1, value, 0, 1); }
public bool DockNodeIsVisible { get => Bitfield.Get(RawBits1, 1, 1); set => Bitfield.Set(ref RawBits1, value, 1, 1); }
public bool DockTabIsVisible { get => Bitfield.Get(RawBits1, 2, 1); set => Bitfield.Set(ref RawBits1, value, 2, 1); }
public bool DockTabWantClose { get => Bitfield.Get(RawBits1, 3, 1); set => Bitfield.Set(ref RawBits1, value, 3, 1); }
///
/// To be documented.
///
public unsafe Span NavRectRel
{
get
{
fixed (ImRect* p = &this.NavRectRel_0)
{
return new Span(p, 2);
}
}
}
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiWindowPtr : IEquatable
{
public ImGuiWindowPtr(ImGuiWindow* handle) { Handle = handle; }
public ImGuiWindow* Handle;
public bool IsNull => Handle == null;
public static ImGuiWindowPtr Null => new ImGuiWindowPtr(null);
public ImGuiWindow this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiWindowPtr(ImGuiWindow* handle) => new ImGuiWindowPtr(handle);
public static implicit operator ImGuiWindow*(ImGuiWindowPtr handle) => handle.Handle;
public static bool operator ==(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiWindowPtr left, ImGuiWindowPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle == right;
public static bool operator !=(ImGuiWindowPtr left, ImGuiWindow* right) => left.Handle != right;
public bool Equals(ImGuiWindowPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiWindowPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiWindowPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
///
/// To be documented.
///
public byte* Name { get => Handle->Name; set => Handle->Name = value; }
///
/// To be documented.
///
public ref uint ID => ref Unsafe.AsRef(&Handle->ID);
///
/// To be documented.
///
public ref ImGuiWindowFlags Flags => ref Unsafe.AsRef(&Handle->Flags);
///
/// To be documented.
///
public ref ImGuiWindowFlags FlagsPreviousFrame => ref Unsafe.AsRef(&Handle->FlagsPreviousFrame);
///
/// To be documented.
///
public ref ImGuiWindowClass WindowClass => ref Unsafe.AsRef(&Handle->WindowClass);
///
/// To be documented.
///
public ref ImGuiViewportPPtr Viewport => ref Unsafe.AsRef(&Handle->Viewport);
///
/// To be documented.
///
public ref uint ViewportId => ref Unsafe.AsRef(&Handle->ViewportId);
///
/// To be documented.
///
public ref Vector2 ViewportPos => ref Unsafe.AsRef(&Handle->ViewportPos);
///
/// To be documented.
///
public ref int ViewportAllowPlatformMonitorExtend => ref Unsafe.AsRef(&Handle->ViewportAllowPlatformMonitorExtend);
///
/// To be documented.
///
public ref Vector2 Pos => ref Unsafe.AsRef(&Handle->Pos);
///
/// To be documented.
///
public ref Vector2 Size => ref Unsafe.AsRef(&Handle->Size);
///
/// To be documented.
///
public ref Vector2 SizeFull => ref Unsafe.AsRef(&Handle->SizeFull);
///
/// To be documented.
///
public ref Vector2 ContentSize => ref Unsafe.AsRef(&Handle->ContentSize);
///
/// To be documented.
///
public ref Vector2 ContentSizeIdeal => ref Unsafe.AsRef(&Handle->ContentSizeIdeal);
///
/// To be documented.
///
public ref Vector2 ContentSizeExplicit => ref Unsafe.AsRef(&Handle->ContentSizeExplicit);
///
/// To be documented.
///
public ref Vector2 WindowPadding => ref Unsafe.AsRef(&Handle->WindowPadding);
///
/// To be documented.
///
public ref float WindowRounding => ref Unsafe.AsRef(&Handle->WindowRounding);
///
/// To be documented.
///
public ref float WindowBorderSize => ref Unsafe.AsRef(&Handle->WindowBorderSize);
///
/// To be documented.
///
public ref int NameBufLen => ref Unsafe.AsRef(&Handle->NameBufLen);
///
/// To be documented.
///
public ref uint MoveId => ref Unsafe.AsRef(&Handle->MoveId);
///
/// To be documented.
///
public ref uint TabId => ref Unsafe.AsRef(&Handle->TabId);
///
/// To be documented.
///
public ref uint ChildId => ref Unsafe.AsRef(&Handle->ChildId);
///
/// To be documented.
///
public ref Vector2 Scroll => ref Unsafe.AsRef(&Handle->Scroll);
///
/// To be documented.
///
public ref Vector2 ScrollMax => ref Unsafe.AsRef(&Handle->ScrollMax);
///
/// To be documented.
///
public ref Vector2 ScrollTarget => ref Unsafe.AsRef(&Handle->ScrollTarget);
///
/// To be documented.
///
public ref Vector2 ScrollTargetCenterRatio => ref Unsafe.AsRef(&Handle->ScrollTargetCenterRatio);
///
/// To be documented.
///
public ref Vector2 ScrollTargetEdgeSnapDist => ref Unsafe.AsRef(&Handle->ScrollTargetEdgeSnapDist);
///
/// To be documented.
///
public ref Vector2 ScrollbarSizes => ref Unsafe.AsRef(&Handle->ScrollbarSizes);
///
/// To be documented.
///
public ref bool ScrollbarX => ref Unsafe.AsRef(&Handle->ScrollbarX);
///
/// To be documented.
///
public ref bool ScrollbarY => ref Unsafe.AsRef(&Handle->ScrollbarY);
///
/// To be documented.
///
public ref bool ViewportOwned => ref Unsafe.AsRef(&Handle->ViewportOwned);
///
/// To be documented.
///
public ref bool Active => ref Unsafe.AsRef(&Handle->Active);
///
/// To be documented.
///
public ref bool WasActive => ref Unsafe.AsRef(&Handle->WasActive);
///
/// To be documented.
///
public ref bool WriteAccessed => ref Unsafe.AsRef(&Handle->WriteAccessed);
///
/// To be documented.
///
public ref bool Collapsed => ref Unsafe.AsRef(&Handle->Collapsed);
///
/// To be documented.
///
public ref bool WantCollapseToggle => ref Unsafe.AsRef(&Handle->WantCollapseToggle);
///
/// To be documented.
///
public ref bool SkipItems => ref Unsafe.AsRef(&Handle->SkipItems);
///
/// To be documented.
///
public ref bool Appearing => ref Unsafe.AsRef(&Handle->Appearing);
///
/// To be documented.
///
public ref bool Hidden => ref Unsafe.AsRef(&Handle->Hidden);
///
/// To be documented.
///
public ref bool IsFallbackWindow => ref Unsafe.AsRef(&Handle->IsFallbackWindow);
///
/// To be documented.
///
public ref bool IsExplicitChild => ref Unsafe.AsRef(&Handle->IsExplicitChild);
///
/// To be documented.
///
public ref bool HasCloseButton => ref Unsafe.AsRef(&Handle->HasCloseButton);
///
/// To be documented.
///
public ref byte ResizeBorderHeld => ref Unsafe.AsRef(&Handle->ResizeBorderHeld);
///
/// To be documented.
///
public ref short BeginCount => ref Unsafe.AsRef(&Handle->BeginCount);
///
/// To be documented.
///
public ref short BeginOrderWithinParent => ref Unsafe.AsRef(&Handle->BeginOrderWithinParent);
///
/// To be documented.
///
public ref short BeginOrderWithinContext => ref Unsafe.AsRef(&Handle->BeginOrderWithinContext);
///
/// To be documented.
///
public ref short FocusOrder => ref Unsafe.AsRef(&Handle->FocusOrder);
///
/// To be documented.
///
public ref uint PopupId => ref Unsafe.AsRef(&Handle->PopupId);
///
/// To be documented.
///
public ref sbyte AutoFitFramesX => ref Unsafe.AsRef(&Handle->AutoFitFramesX);
///
/// To be documented.
///
public ref sbyte AutoFitFramesY => ref Unsafe.AsRef(&Handle->AutoFitFramesY);
///
/// To be documented.
///
public ref sbyte AutoFitChildAxises => ref Unsafe.AsRef(&Handle->AutoFitChildAxises);
///
/// To be documented.
///
public ref bool AutoFitOnlyGrows => ref Unsafe.AsRef(&Handle->AutoFitOnlyGrows);
///
/// To be documented.
///
public ref ImGuiDir AutoPosLastDirection => ref Unsafe.AsRef(&Handle->AutoPosLastDirection);
///
/// To be documented.
///
public ref sbyte HiddenFramesCanSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCanSkipItems);
///
/// To be documented.
///
public ref sbyte HiddenFramesCannotSkipItems => ref Unsafe.AsRef(&Handle->HiddenFramesCannotSkipItems);
///
/// To be documented.
///
public ref sbyte HiddenFramesForRenderOnly => ref Unsafe.AsRef(&Handle->HiddenFramesForRenderOnly);
///
/// To be documented.
///
public ref sbyte DisableInputsFrames => ref Unsafe.AsRef(&Handle->DisableInputsFrames);
///
/// To be documented.
///
public ImGuiCond SetWindowPosAllowFlags { get => Handle->SetWindowPosAllowFlags; set => Handle->SetWindowPosAllowFlags = value; }
///
/// To be documented.
///
public ImGuiCond SetWindowSizeAllowFlags { get => Handle->SetWindowSizeAllowFlags; set => Handle->SetWindowSizeAllowFlags = value; }
///
/// To be documented.
///
public ImGuiCond SetWindowCollapsedAllowFlags { get => Handle->SetWindowCollapsedAllowFlags; set => Handle->SetWindowCollapsedAllowFlags = value; }
///
/// To be documented.
///
public ImGuiCond SetWindowDockAllowFlags { get => Handle->SetWindowDockAllowFlags; set => Handle->SetWindowDockAllowFlags = value; }
///
/// To be documented.
///
public ref Vector2 SetWindowPosVal => ref Unsafe.AsRef(&Handle->SetWindowPosVal);
///
/// To be documented.
///
public ref Vector2 SetWindowPosPivot => ref Unsafe.AsRef(&Handle->SetWindowPosPivot);
///
/// To be documented.
///
public ref ImVector IDStack => ref Unsafe.AsRef>(&Handle->IDStack);
///
/// To be documented.
///
public ref ImGuiWindowTempData DC => ref Unsafe.AsRef(&Handle->DC);
///
/// To be documented.
///
public ref ImRect OuterRectClipped => ref Unsafe.AsRef(&Handle->OuterRectClipped);
///
/// To be documented.
///
public ref ImRect InnerRect => ref Unsafe.AsRef(&Handle->InnerRect);
///
/// To be documented.
///
public ref ImRect InnerClipRect => ref Unsafe.AsRef(&Handle->InnerClipRect);
///
/// To be documented.
///
public ref ImRect WorkRect => ref Unsafe.AsRef(&Handle->WorkRect);
///
/// To be documented.
///
public ref ImRect ParentWorkRect => ref Unsafe.AsRef(&Handle->ParentWorkRect);
///
/// To be documented.
///
public ref ImRect ClipRect => ref Unsafe.AsRef(&Handle->ClipRect);
///
/// To be documented.
///
public ref ImRect ContentRegionRect => ref Unsafe.AsRef(&Handle->ContentRegionRect);
///
/// To be documented.
///
public ref ImVec2Ih HitTestHoleSize => ref Unsafe.AsRef(&Handle->HitTestHoleSize);
///
/// To be documented.
///
public ref ImVec2Ih HitTestHoleOffset => ref Unsafe.AsRef(&Handle->HitTestHoleOffset);
///
/// To be documented.
///
public ref int LastFrameActive => ref Unsafe.AsRef(&Handle->LastFrameActive);
///
/// To be documented.
///
public ref int LastFrameJustFocused => ref Unsafe.AsRef(&Handle->LastFrameJustFocused);
///
/// To be documented.
///
public ref float LastTimeActive => ref Unsafe.AsRef(&Handle->LastTimeActive);
///
/// To be documented.
///
public ref float ItemWidthDefault => ref Unsafe.AsRef(&Handle->ItemWidthDefault);
///
/// To be documented.
///
public ref ImGuiStorage StateStorage => ref Unsafe.AsRef(&Handle->StateStorage);
///
/// To be documented.
///
public ref ImVector ColumnsStorage => ref Unsafe.AsRef>(&Handle->ColumnsStorage);
///
/// To be documented.
///
public ref float FontWindowScale => ref Unsafe.AsRef(&Handle->FontWindowScale);
///
/// To be documented.
///
public ref float FontDpiScale => ref Unsafe.AsRef(&Handle->FontDpiScale);
///
/// To be documented.
///
public ref int SettingsOffset => ref Unsafe.AsRef(&Handle->SettingsOffset);
///
/// To be documented.
///
public ref ImDrawListPtr DrawList => ref Unsafe.AsRef(&Handle->DrawList);
///
/// To be documented.
///
public ref ImDrawList DrawListInst => ref Unsafe.AsRef(&Handle->DrawListInst);
///
/// To be documented.
///
public ref ImGuiWindowPtr ParentWindow => ref Unsafe.AsRef(&Handle->ParentWindow);
///
/// To be documented.
///
public ref ImGuiWindowPtr ParentWindowInBeginStack => ref Unsafe.AsRef(&Handle->ParentWindowInBeginStack);
///
/// To be documented.
///
public ref ImGuiWindowPtr RootWindow => ref Unsafe.AsRef(&Handle->RootWindow);
///
/// To be documented.
///
public ref ImGuiWindowPtr RootWindowPopupTree => ref Unsafe.AsRef(&Handle->RootWindowPopupTree);
///
/// To be documented.
///
public ref ImGuiWindowPtr RootWindowDockTree => ref Unsafe.AsRef(&Handle->RootWindowDockTree);
///
/// To be documented.
///
public ref ImGuiWindowPtr RootWindowForTitleBarHighlight => ref Unsafe.AsRef(&Handle->RootWindowForTitleBarHighlight);
///
/// To be documented.
///
public ref ImGuiWindowPtr RootWindowForNav => ref Unsafe.AsRef(&Handle->RootWindowForNav);
///
/// To be documented.
///
public ref ImGuiWindowPtr NavLastChildNavWindow => ref Unsafe.AsRef(&Handle->NavLastChildNavWindow);
///
/// To be documented.
///
public unsafe Span NavLastIds
{
get
{
return new Span(&Handle->NavLastIds_0, 2);
}
}
///
/// To be documented.
///
public unsafe Span NavRectRel
{
get
{
return new Span(&Handle->NavRectRel_0, 2);
}
}
///
/// To be documented.
///
public ref int MemoryDrawListIdxCapacity => ref Unsafe.AsRef(&Handle->MemoryDrawListIdxCapacity);
///
/// To be documented.
///
public ref int MemoryDrawListVtxCapacity => ref Unsafe.AsRef(&Handle->MemoryDrawListVtxCapacity);
///
/// To be documented.
///
public ref bool MemoryCompacted => ref Unsafe.AsRef(&Handle->MemoryCompacted);
///
/// To be documented.
///
public bool DockIsActive { get => Handle->DockIsActive; set => Handle->DockIsActive = value; }
///
/// To be documented.
///
public bool DockNodeIsVisible { get => Handle->DockNodeIsVisible; set => Handle->DockNodeIsVisible = value; }
///
/// To be documented.
///
public bool DockTabIsVisible { get => Handle->DockTabIsVisible; set => Handle->DockTabIsVisible = value; }
///
/// To be documented.
///
public bool DockTabWantClose { get => Handle->DockTabWantClose; set => Handle->DockTabWantClose = value; }
///
/// To be documented.
///
public ref short DockOrder => ref Unsafe.AsRef(&Handle->DockOrder);
///
/// To be documented.
///
public ref ImGuiWindowDockStyle DockStyle => ref Unsafe.AsRef(&Handle->DockStyle);
///
/// To be documented.
///
public ref ImGuiDockNodePtr DockNode => ref Unsafe.AsRef(&Handle->DockNode);
///
/// To be documented.
///
public ref ImGuiDockNodePtr DockNodeAsHost => ref Unsafe.AsRef(&Handle->DockNodeAsHost);
///
/// To be documented.
///
public ref uint DockId => ref Unsafe.AsRef(&Handle->DockId);
///
/// To be documented.
///
public ref ImGuiItemStatusFlags DockTabItemStatusFlags => ref Unsafe.AsRef(&Handle->DockTabItemStatusFlags);
///
/// To be documented.
///
public ref ImRect DockTabItemRect => ref Unsafe.AsRef(&Handle->DockTabItemRect);
///
/// To be documented.
///
public ref bool InheritNoInputs => ref Unsafe.AsRef(&Handle->InheritNoInputs);
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiWindowPtrPtr : IEquatable
{
public ImGuiWindowPtrPtr(ImGuiWindow** handle) { Handle = handle; }
public ImGuiWindow** Handle;
public bool IsNull => Handle == null;
public static ImGuiWindowPtrPtr Null => new ImGuiWindowPtrPtr(null);
public ImGuiWindow* this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiWindowPtrPtr(ImGuiWindow** handle) => new ImGuiWindowPtrPtr(handle);
public static implicit operator ImGuiWindow**(ImGuiWindowPtrPtr handle) => handle.Handle;
public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindowPtrPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle == right;
public static bool operator !=(ImGuiWindowPtrPtr left, ImGuiWindow** right) => left.Handle != right;
public bool Equals(ImGuiWindowPtrPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiWindowPtrPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiWindowPtrPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
}
}