brutal/Brutal.ImGui/Generated/Structs/ImGuiViewport.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

894 lines
47 KiB
C#

// <auto-generated/>
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
/// <summary>
/// <para>
/// A Platform Window (always 1 unless multi-viewport are enabled. One per platform window to output to). In the
/// future may represent Platform Monitor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L217">imgui.h:217</see>
/// <br/><c>struct ImGuiViewport</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 104)]
public partial struct ImGuiViewport
{
/// <summary>
/// <para>
/// Unique identifier for the viewport
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4019">imgui.h:4019</see>
/// <br/><c>ImGuiID ID</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(0)]
public ImGuiID ID;
/// <summary>
/// <para>
/// See ImGuiViewportFlags_
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4020">imgui.h:4020</see>
/// <br/><c>ImGuiViewportFlags Flags</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(4)]
public ImGuiViewportFlags Flags;
/// <summary>
/// <para>
/// Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native
/// coordinates)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4021">imgui.h:4021</see>
/// <br/><c>ImVec2 Pos</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(8)]
public float2 Pos;
/// <summary>
/// <para>
/// Main Area: Size of the viewport.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4022">imgui.h:4022</see>
/// <br/><c>ImVec2 Size</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(16)]
public float2 Size;
/// <summary>
/// <para>
/// Density of the viewport for Retina display (always 1,1 on Windows, may be 2,2 etc on macOS/iOS). This
/// will affect font rasterizer density.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4023">imgui.h:4023</see>
/// <br/><c>ImVec2 FramebufferScale</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(24)]
public float2 FramebufferScale;
/// <summary>
/// <para>
/// Work Area: Position of the viewport minus task bars, menus bars, status bars (&gt;= Pos)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4024">imgui.h:4024</see>
/// <br/><c>ImVec2 WorkPos</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(32)]
public float2 WorkPos;
/// <summary>
/// <para>
/// Work Area: Size of the viewport minus task bars, menu bars, status bars (&lt;= Size)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4025">imgui.h:4025</see>
/// <br/><c>ImVec2 WorkSize</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(40)]
public float2 WorkSize;
/// <summary>
/// <para>
/// 1.0f = 96 DPI = No extra scale.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4026">imgui.h:4026</see>
/// <br/><c>float DpiScale</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(48)]
public float DpiScale;
/// <summary>
/// <para>
/// (Advanced) 0: no parent. Instruct the platform backend to setup a parent/child relationship between
/// platform windows.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4027">imgui.h:4027</see>
/// <br/><c>ImGuiID ParentViewportId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(52)]
public ImGuiID ParentViewportId;
/// <summary>
/// <para>
/// The ImDrawData corresponding to this viewport. Valid after Render() and until the next call to
/// NewFrame().
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4028">imgui.h:4028</see>
/// <br/><c>ImDrawData* DrawData</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
[FieldOffset(56)]
public ImDrawDataPtr DrawData;
/// <summary>
/// <para>
/// void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set
/// by your Renderer_CreateWindow function.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4035">imgui.h:4035</see>
/// <br/><c>void* RendererUserData</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(64)]
public nint RendererUserData;
/// <summary>
/// <para>
/// void* to hold custom data structure for the OS / platform (e.g. windowing info, render context).
/// generally set by your Platform_CreateWindow function.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4036">imgui.h:4036</see>
/// <br/><c>void* PlatformUserData</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(72)]
public nint PlatformUserData;
/// <summary>
/// <para>
/// void* to hold higher-level, platform window handle (e.g. HWND for Win32 backend, Uint32 WindowID for
/// SDL, GLFWWindow* for GLFW), for FindViewportByPlatformHandle().
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4037">imgui.h:4037</see>
/// <br/><c>void* PlatformHandle</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(80)]
public nint PlatformHandle;
/// <summary>
/// <para>
/// void* to hold lower-level, platform-native window handle (always HWND on Win32 platform, unused for
/// other platforms).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4038">imgui.h:4038</see>
/// <br/><c>void* PlatformHandleRaw</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(88)]
public nint PlatformHandleRaw;
/// <summary>
/// <para>
/// Platform window has been created (Platform_CreateWindow() has been called). This is false during the
/// first frame where a viewport is being created.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4039">imgui.h:4039</see>
/// <br/><c>bool PlatformWindowCreated</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(96)]
public Bool8 PlatformWindowCreated;
/// <summary>
/// <para>
/// Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative
/// position will be OS window position)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4040">imgui.h:4040</see>
/// <br/><c>bool PlatformRequestMove</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(97)]
public Bool8 PlatformRequestMove;
/// <summary>
/// <para>
/// Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative
/// size will be OS window size)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4041">imgui.h:4041</see>
/// <br/><c>bool PlatformRequestResize</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(98)]
public Bool8 PlatformRequestResize;
/// <summary>
/// <para>
/// Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing
/// ALT-F4)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4042">imgui.h:4042</see>
/// <br/><c>bool PlatformRequestClose</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
[FieldOffset(99)]
public Bool8 PlatformRequestClose;
}
/// <summary>
/// <para>
/// A Platform Window (always 1 unless multi-viewport are enabled. One per platform window to output to). In the
/// future may represent Platform Monitor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L217">imgui.h:217</see>
/// <br/><c>struct ImGuiViewport</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
public unsafe partial struct ImGuiViewportPtr(ImGuiViewport* ptr) : INullable
{
private ImGuiViewport* _ptr = ptr;
public ImGuiViewport* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiViewportPtr(ImGuiViewport* ptr) => new(ptr);
public static implicit operator ImGuiViewport*(ImGuiViewportPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// Unique identifier for the viewport
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4019">imgui.h:4019</see>
/// <br/><c>ImGuiID ID</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref ImGuiID ID => ref Unsafe.AsRef<ImGuiID>(&_ptr->ID);
/// <summary>
/// <para>
/// See ImGuiViewportFlags_
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4020">imgui.h:4020</see>
/// <br/><c>ImGuiViewportFlags Flags</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref ImGuiViewportFlags Flags => ref Unsafe.AsRef<ImGuiViewportFlags>(&_ptr->Flags);
/// <summary>
/// <para>
/// Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native
/// coordinates)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4021">imgui.h:4021</see>
/// <br/><c>ImVec2 Pos</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref float2 Pos => ref Unsafe.AsRef<float2>(&_ptr->Pos);
/// <summary>
/// <para>
/// Main Area: Size of the viewport.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4022">imgui.h:4022</see>
/// <br/><c>ImVec2 Size</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref float2 Size => ref Unsafe.AsRef<float2>(&_ptr->Size);
/// <summary>
/// <para>
/// Density of the viewport for Retina display (always 1,1 on Windows, may be 2,2 etc on macOS/iOS). This
/// will affect font rasterizer density.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4023">imgui.h:4023</see>
/// <br/><c>ImVec2 FramebufferScale</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref float2 FramebufferScale => ref Unsafe.AsRef<float2>(&_ptr->FramebufferScale);
/// <summary>
/// <para>
/// Work Area: Position of the viewport minus task bars, menus bars, status bars (&gt;= Pos)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4024">imgui.h:4024</see>
/// <br/><c>ImVec2 WorkPos</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref float2 WorkPos => ref Unsafe.AsRef<float2>(&_ptr->WorkPos);
/// <summary>
/// <para>
/// Work Area: Size of the viewport minus task bars, menu bars, status bars (&lt;= Size)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4025">imgui.h:4025</see>
/// <br/><c>ImVec2 WorkSize</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref float2 WorkSize => ref Unsafe.AsRef<float2>(&_ptr->WorkSize);
/// <summary>
/// <para>
/// 1.0f = 96 DPI = No extra scale.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4026">imgui.h:4026</see>
/// <br/><c>float DpiScale</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref float DpiScale => ref Unsafe.AsRef<float>(&_ptr->DpiScale);
/// <summary>
/// <para>
/// (Advanced) 0: no parent. Instruct the platform backend to setup a parent/child relationship between
/// platform windows.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4027">imgui.h:4027</see>
/// <br/><c>ImGuiID ParentViewportId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref ImGuiID ParentViewportId => ref Unsafe.AsRef<ImGuiID>(&_ptr->ParentViewportId);
/// <summary>
/// <para>
/// The ImDrawData corresponding to this viewport. Valid after Render() and until the next call to
/// NewFrame().
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4028">imgui.h:4028</see>
/// <br/><c>ImDrawData* DrawData</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// - Currently represents the Platform Window created by the application which is hosting our Dear ImGui windows.
/// - With multi-viewport enabled, we extend this concept to have multiple active viewports.
/// - In the future we will extend this concept further to also represent Platform Monitor and support a "no main platform window" operation mode.
/// - About Main Area vs Work Area:
/// - Main Area = entire viewport.
/// - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor).
/// - Windows are generally trying to stay within the Work Area of their host viewport.
/// </code>
/// </remarks>
public ref ImDrawDataPtr DrawData => ref Unsafe.AsRef<ImDrawDataPtr>(&_ptr->DrawData);
/// <summary>
/// <para>
/// void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set
/// by your Renderer_CreateWindow function.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4035">imgui.h:4035</see>
/// <br/><c>void* RendererUserData</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref nint RendererUserData => ref Unsafe.AsRef<nint>(&_ptr->RendererUserData);
/// <summary>
/// <para>
/// void* to hold custom data structure for the OS / platform (e.g. windowing info, render context).
/// generally set by your Platform_CreateWindow function.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4036">imgui.h:4036</see>
/// <br/><c>void* PlatformUserData</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref nint PlatformUserData => ref Unsafe.AsRef<nint>(&_ptr->PlatformUserData);
/// <summary>
/// <para>
/// void* to hold higher-level, platform window handle (e.g. HWND for Win32 backend, Uint32 WindowID for
/// SDL, GLFWWindow* for GLFW), for FindViewportByPlatformHandle().
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4037">imgui.h:4037</see>
/// <br/><c>void* PlatformHandle</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref nint PlatformHandle => ref Unsafe.AsRef<nint>(&_ptr->PlatformHandle);
/// <summary>
/// <para>
/// void* to hold lower-level, platform-native window handle (always HWND on Win32 platform, unused for
/// other platforms).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4038">imgui.h:4038</see>
/// <br/><c>void* PlatformHandleRaw</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref nint PlatformHandleRaw => ref Unsafe.AsRef<nint>(&_ptr->PlatformHandleRaw);
/// <summary>
/// <para>
/// Platform window has been created (Platform_CreateWindow() has been called). This is false during the
/// first frame where a viewport is being created.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4039">imgui.h:4039</see>
/// <br/><c>bool PlatformWindowCreated</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref bool PlatformWindowCreated => ref Unsafe.AsRef<bool>(&_ptr->PlatformWindowCreated);
/// <summary>
/// <para>
/// Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative
/// position will be OS window position)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4040">imgui.h:4040</see>
/// <br/><c>bool PlatformRequestMove</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref bool PlatformRequestMove => ref Unsafe.AsRef<bool>(&_ptr->PlatformRequestMove);
/// <summary>
/// <para>
/// Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative
/// size will be OS window size)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4041">imgui.h:4041</see>
/// <br/><c>bool PlatformRequestResize</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref bool PlatformRequestResize => ref Unsafe.AsRef<bool>(&_ptr->PlatformRequestResize);
/// <summary>
/// <para>
/// Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing
/// ALT-F4)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4042">imgui.h:4042</see>
/// <br/><c>bool PlatformRequestClose</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Platform/Backend Dependent Data
/// Our design separate the Renderer and Platform backends to facilitate combining default backends with each others.
/// When our create your own backend for a custom engine, it is possible that both Renderer and Platform will be handled
/// by the same system and you may not need to use all the UserData/Handle fields.
/// The library never uses those fields, they are merely storage to facilitate backend implementation.
/// </code>
/// </remarks>
public ref bool PlatformRequestClose => ref Unsafe.AsRef<bool>(&_ptr->PlatformRequestClose);
}
}