//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning
/// popups and tooltips to avoid them straddling monitors
///
///
/// C++:
/// imgui.h:205
///
struct ImGuiPlatformMonitor
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 48)]
public partial struct ImGuiPlatformMonitor
{
///
///
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
///
///
/// C++:
/// imgui.h:4210
///
ImVec2 MainPos
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
[FieldOffset(0)]
public float2 MainPos;
///
///
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
///
///
/// C++:
/// imgui.h:4210
///
ImVec2 MainPos, MainSize
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
[FieldOffset(8)]
public float2 MainSize;
///
///
/// Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside
/// this region. If you don't have this info, please copy the value for MainPos/MainSize.
///
///
/// C++:
/// imgui.h:4211
///
ImVec2 WorkPos
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
[FieldOffset(16)]
public float2 WorkPos;
///
///
/// Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside
/// this region. If you don't have this info, please copy the value for MainPos/MainSize.
///
///
/// C++:
/// imgui.h:4211
///
ImVec2 WorkPos, WorkSize
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
[FieldOffset(24)]
public float2 WorkSize;
///
///
/// 1.0f = 96 DPI
///
///
/// C++:
/// imgui.h:4212
///
float DpiScale
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
[FieldOffset(32)]
public float DpiScale;
///
///
/// Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*)
///
///
/// C++:
/// imgui.h:4213
///
void* PlatformHandle
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
[FieldOffset(40)]
public nint PlatformHandle;
}
///
///
/// Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning
/// popups and tooltips to avoid them straddling monitors
///
///
/// C++:
/// imgui.h:205
///
struct ImGuiPlatformMonitor
///
///
///
///
/// Forward declarations: ImGui layer
///
///
public unsafe partial struct ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* ptr) : INullable
{
private ImGuiPlatformMonitor* _ptr = ptr;
public ImGuiPlatformMonitor* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* ptr) => new(ptr);
public static implicit operator ImGuiPlatformMonitor*(ImGuiPlatformMonitorPtr wrapper) => wrapper.Ptr;
///
///
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
///
///
/// C++:
/// imgui.h:4210
///
ImVec2 MainPos
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
public ref float2 MainPos => ref Unsafe.AsRef(&_ptr->MainPos);
///
///
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
///
///
/// C++:
/// imgui.h:4210
///
ImVec2 MainPos, MainSize
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
public ref float2 MainSize => ref Unsafe.AsRef(&_ptr->MainSize);
///
///
/// Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside
/// this region. If you don't have this info, please copy the value for MainPos/MainSize.
///
///
/// C++:
/// imgui.h:4211
///
ImVec2 WorkPos
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
public ref float2 WorkPos => ref Unsafe.AsRef(&_ptr->WorkPos);
///
///
/// Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside
/// this region. If you don't have this info, please copy the value for MainPos/MainSize.
///
///
/// C++:
/// imgui.h:4211
///
ImVec2 WorkPos, WorkSize
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
public ref float2 WorkSize => ref Unsafe.AsRef(&_ptr->WorkSize);
///
///
/// 1.0f = 96 DPI
///
///
/// C++:
/// imgui.h:4212
///
float DpiScale
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
public ref float DpiScale => ref Unsafe.AsRef(&_ptr->DpiScale);
///
///
/// Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*)
///
///
/// C++:
/// imgui.h:4213
///
void* PlatformHandle
///
///
///
///
/// (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI.
/// We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors.
///
///
public ref nint PlatformHandle => ref Unsafe.AsRef(&_ptr->PlatformHandle);
}
}