mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
282
Brutal.ImGui/Generated/Structs/ImGuiPlatformMonitor.gen.cs
Normal file
282
Brutal.ImGui/Generated/Structs/ImGuiPlatformMonitor.gen.cs
Normal file
|
|
@ -0,0 +1,282 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning
|
||||
/// popups and tooltips to avoid them straddling monitors
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L205">imgui.h:205</see>
|
||||
/// <br/><c>struct ImGuiPlatformMonitor</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
||||
public partial struct ImGuiPlatformMonitor
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4210">imgui.h:4210</see>
|
||||
/// <br/><c>ImVec2 MainPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public float2 MainPos;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4210">imgui.h:4210</see>
|
||||
/// <br/><c>ImVec2 MainPos, MainSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public float2 MainSize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4211">imgui.h:4211</see>
|
||||
/// <br/><c>ImVec2 WorkPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public float2 WorkPos;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4211">imgui.h:4211</see>
|
||||
/// <br/><c>ImVec2 WorkPos, WorkSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public float2 WorkSize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1.0f = 96 DPI
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4212">imgui.h:4212</see>
|
||||
/// <br/><c>float DpiScale</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public float DpiScale;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4213">imgui.h:4213</see>
|
||||
/// <br/><c>void* PlatformHandle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public nint PlatformHandle;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning
|
||||
/// popups and tooltips to avoid them straddling monitors
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L205">imgui.h:205</see>
|
||||
/// <br/><c>struct ImGuiPlatformMonitor</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4210">imgui.h:4210</see>
|
||||
/// <br/><c>ImVec2 MainPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float2 MainPos => ref Unsafe.AsRef<float2>(&_ptr->MainPos);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4210">imgui.h:4210</see>
|
||||
/// <br/><c>ImVec2 MainPos, MainSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float2 MainSize => ref Unsafe.AsRef<float2>(&_ptr->MainSize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4211">imgui.h:4211</see>
|
||||
/// <br/><c>ImVec2 WorkPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float2 WorkPos => ref Unsafe.AsRef<float2>(&_ptr->WorkPos);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 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.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4211">imgui.h:4211</see>
|
||||
/// <br/><c>ImVec2 WorkPos, WorkSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float2 WorkSize => ref Unsafe.AsRef<float2>(&_ptr->WorkSize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1.0f = 96 DPI
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4212">imgui.h:4212</see>
|
||||
/// <br/><c>float DpiScale</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float DpiScale => ref Unsafe.AsRef<float>(&_ptr->DpiScale);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4213">imgui.h:4213</see>
|
||||
/// <br/><c>void* PlatformHandle</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// (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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint PlatformHandle => ref Unsafe.AsRef<nint>(&_ptr->PlatformHandle);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue