//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:2091
///
struct ImGuiViewportP : public ImGuiViewport
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[StructLayout(LayoutKind.Explicit, Size = 344)]
public partial struct ImGuiViewportP
{
///
///
/// Set when the viewport is owned by a window (and ImGuiViewportFlags_CanHostOtherWindows is NOT set)
///
///
/// C++:
/// imgui_internal.h:2093
///
ImGuiWindow* Window
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(104)]
public ImGuiWindowPtr Window;
///
///
/// C++:
/// imgui_internal.h:2094
///
int Idx
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(112)]
public int Idx;
///
///
/// Last frame number this viewport was activated by a window
///
///
/// C++:
/// imgui_internal.h:2095
///
int LastFrameActive
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(116)]
public int LastFrameActive;
///
///
/// Last stamp number from when a window hosted by this viewport was focused (by comparing this value
/// between two viewport we have an implicit viewport z-order we use as fallback)
///
///
/// C++:
/// imgui_internal.h:2096
///
int LastFocusedStampCount
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(120)]
public int LastFocusedStampCount;
///
///
/// C++:
/// imgui_internal.h:2097
///
ImGuiID LastNameHash
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(124)]
public ImGuiID LastNameHash;
///
///
/// C++:
/// imgui_internal.h:2098
///
ImVec2 LastPos
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(128)]
public float2 LastPos;
///
///
/// C++:
/// imgui_internal.h:2099
///
ImVec2 LastSize
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(136)]
public float2 LastSize;
///
///
/// Window opacity (when dragging dockable windows/viewports we make them transparent)
///
///
/// C++:
/// imgui_internal.h:2100
///
float Alpha
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(144)]
public float Alpha;
///
///
/// C++:
/// imgui_internal.h:2101
///
float LastAlpha
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(148)]
public float LastAlpha;
///
///
/// Instead of maintaining a LastFocusedWindow (which may harder to correctly maintain), we merely store
/// weither NavWindow != NULL last time the viewport was focused.
///
///
/// C++:
/// imgui_internal.h:2102
///
bool LastFocusedHadNavWindow
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(152)]
public Bool8 LastFocusedHadNavWindow;
///
///
/// C++:
/// imgui_internal.h:2103
///
short PlatformMonitor
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(154)]
public short PlatformMonitor;
///
///
/// Last frame number the background (0) and foreground (1) draw lists were used
///
///
/// C++:
/// imgui_internal.h:2104
///
int BgFgDrawListsLastFrame[2]
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(156)]
public int2 BgFgDrawListsLastFrame;
///
///
/// Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor
/// when io.MouseDrawCursor is set and to draw most debug overlays.
///
///
/// C++:
/// imgui_internal.h:2105
///
ImDrawList* BgFgDrawLists[2]
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(168)]
public ImDrawListPtr_2 BgFgDrawLists;
///
///
/// C++:
/// imgui_internal.h:2106
///
ImDrawData DrawDataP
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(184)]
public ImDrawData DrawDataP;
///
///
/// Temporary data while building final ImDrawData
///
///
/// C++:
/// imgui_internal.h:2107
///
ImDrawDataBuilder DrawDataBuilder
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(256)]
public ImDrawDataBuilder DrawDataBuilder;
///
///
/// C++:
/// imgui_internal.h:2108
///
ImVec2 LastPlatformPos
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(288)]
public float2 LastPlatformPos;
///
///
/// C++:
/// imgui_internal.h:2109
///
ImVec2 LastPlatformSize
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(296)]
public float2 LastPlatformSize;
///
///
/// C++:
/// imgui_internal.h:2110
///
ImVec2 LastRendererSize
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
[FieldOffset(304)]
public float2 LastRendererSize;
///
///
/// Work Area inset locked for the frame. GetWorkRect() always fits within GetMainRect().
///
///
/// C++:
/// imgui_internal.h:2116
///
ImVec2 WorkInsetMin
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
[FieldOffset(312)]
public float2 WorkInsetMin;
///
///
/// "
///
///
/// C++:
/// imgui_internal.h:2117
///
ImVec2 WorkInsetMax
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
[FieldOffset(320)]
public float2 WorkInsetMax;
///
///
/// Work Area inset accumulator for current frame, to become next frame's WorkInset
///
///
/// C++:
/// imgui_internal.h:2118
///
ImVec2 BuildWorkInsetMin
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
[FieldOffset(328)]
public float2 BuildWorkInsetMin;
///
///
/// "
///
///
/// C++:
/// imgui_internal.h:2119
///
ImVec2 BuildWorkInsetMax
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
[FieldOffset(336)]
public float2 BuildWorkInsetMax;
}
///
///
/// C++:
/// imgui_internal.h:2091
///
struct ImGuiViewportP : public ImGuiViewport
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public unsafe partial struct ImGuiViewportPPtr(ImGuiViewportP* ptr) : INullable
{
private ImGuiViewportP* _ptr = ptr;
public ImGuiViewportP* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiViewportPPtr(ImGuiViewportP* ptr) => new(ptr);
public static implicit operator ImGuiViewportP*(ImGuiViewportPPtr wrapper) => wrapper.Ptr;
///
///
/// Set when the viewport is owned by a window (and ImGuiViewportFlags_CanHostOtherWindows is NOT set)
///
///
/// C++:
/// imgui_internal.h:2093
///
ImGuiWindow* Window
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// C++:
/// imgui_internal.h:2094
///
int Idx
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref int Idx => ref Unsafe.AsRef(&_ptr->Idx);
///
///
/// Last frame number this viewport was activated by a window
///
///
/// C++:
/// imgui_internal.h:2095
///
int LastFrameActive
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref int LastFrameActive => ref Unsafe.AsRef(&_ptr->LastFrameActive);
///
///
/// Last stamp number from when a window hosted by this viewport was focused (by comparing this value
/// between two viewport we have an implicit viewport z-order we use as fallback)
///
///
/// C++:
/// imgui_internal.h:2096
///
int LastFocusedStampCount
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref int LastFocusedStampCount => ref Unsafe.AsRef(&_ptr->LastFocusedStampCount);
///
///
/// C++:
/// imgui_internal.h:2097
///
ImGuiID LastNameHash
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref ImGuiID LastNameHash => ref Unsafe.AsRef(&_ptr->LastNameHash);
///
///
/// C++:
/// imgui_internal.h:2098
///
ImVec2 LastPos
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float2 LastPos => ref Unsafe.AsRef(&_ptr->LastPos);
///
///
/// C++:
/// imgui_internal.h:2099
///
ImVec2 LastSize
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float2 LastSize => ref Unsafe.AsRef(&_ptr->LastSize);
///
///
/// Window opacity (when dragging dockable windows/viewports we make them transparent)
///
///
/// C++:
/// imgui_internal.h:2100
///
float Alpha
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float Alpha => ref Unsafe.AsRef(&_ptr->Alpha);
///
///
/// C++:
/// imgui_internal.h:2101
///
float LastAlpha
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float LastAlpha => ref Unsafe.AsRef(&_ptr->LastAlpha);
///
///
/// Instead of maintaining a LastFocusedWindow (which may harder to correctly maintain), we merely store
/// weither NavWindow != NULL last time the viewport was focused.
///
///
/// C++:
/// imgui_internal.h:2102
///
bool LastFocusedHadNavWindow
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref bool LastFocusedHadNavWindow => ref Unsafe.AsRef(&_ptr->LastFocusedHadNavWindow);
///
///
/// C++:
/// imgui_internal.h:2103
///
short PlatformMonitor
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref short PlatformMonitor => ref Unsafe.AsRef(&_ptr->PlatformMonitor);
///
///
/// Last frame number the background (0) and foreground (1) draw lists were used
///
///
/// C++:
/// imgui_internal.h:2104
///
int BgFgDrawListsLastFrame[2]
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref int2 BgFgDrawListsLastFrame => ref Unsafe.AsRef(&_ptr->BgFgDrawListsLastFrame);
///
///
/// Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor
/// when io.MouseDrawCursor is set and to draw most debug overlays.
///
///
/// C++:
/// imgui_internal.h:2105
///
ImDrawList* BgFgDrawLists[2]
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref ImDrawListPtr_2 BgFgDrawLists => ref Unsafe.AsRef(&_ptr->BgFgDrawLists);
///
///
/// C++:
/// imgui_internal.h:2106
///
ImDrawData DrawDataP
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref ImDrawData DrawDataP => ref Unsafe.AsRef(&_ptr->DrawDataP);
///
///
/// Temporary data while building final ImDrawData
///
///
/// C++:
/// imgui_internal.h:2107
///
ImDrawDataBuilder DrawDataBuilder
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref ImDrawDataBuilder DrawDataBuilder => ref Unsafe.AsRef(&_ptr->DrawDataBuilder);
///
///
/// C++:
/// imgui_internal.h:2108
///
ImVec2 LastPlatformPos
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float2 LastPlatformPos => ref Unsafe.AsRef(&_ptr->LastPlatformPos);
///
///
/// C++:
/// imgui_internal.h:2109
///
ImVec2 LastPlatformSize
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float2 LastPlatformSize => ref Unsafe.AsRef(&_ptr->LastPlatformSize);
///
///
/// C++:
/// imgui_internal.h:2110
///
ImVec2 LastRendererSize
///
///
///
///
/// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
/// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
///
///
public ref float2 LastRendererSize => ref Unsafe.AsRef(&_ptr->LastRendererSize);
///
///
/// Work Area inset locked for the frame. GetWorkRect() always fits within GetMainRect().
///
///
/// C++:
/// imgui_internal.h:2116
///
ImVec2 WorkInsetMin
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
public ref float2 WorkInsetMin => ref Unsafe.AsRef(&_ptr->WorkInsetMin);
///
///
/// "
///
///
/// C++:
/// imgui_internal.h:2117
///
ImVec2 WorkInsetMax
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
public ref float2 WorkInsetMax => ref Unsafe.AsRef(&_ptr->WorkInsetMax);
///
///
/// Work Area inset accumulator for current frame, to become next frame's WorkInset
///
///
/// C++:
/// imgui_internal.h:2118
///
ImVec2 BuildWorkInsetMin
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
public ref float2 BuildWorkInsetMin => ref Unsafe.AsRef(&_ptr->BuildWorkInsetMin);
///
///
/// "
///
///
/// C++:
/// imgui_internal.h:2119
///
ImVec2 BuildWorkInsetMax
///
///
///
///
/// Per-viewport work area
/// - Insets are >= 0.0f values, distance from viewport corners to work area.
/// - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
/// - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
///
///
public ref float2 BuildWorkInsetMax => ref Unsafe.AsRef(&_ptr->BuildWorkInsetMax);
}
}