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

503 lines
26 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>
/// Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and
/// parent/child info)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L218">imgui.h:218</see>
/// <br/><c>struct ImGuiWindowClass</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
public partial struct ImGuiWindowClass
{
/// <summary>
/// <para>
/// User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each
/// others.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2752">imgui.h:2752</see>
/// <br/><c>ImGuiID ClassId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(0)]
public ImGuiID ClassId;
/// <summary>
/// <para>
/// Hint for the platform backend. -1: use default. 0: request platform backend to not parent the platform.
/// != 0: request platform backend to create a parent&lt;&gt;child relationship between the platform
/// windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2753">imgui.h:2753</see>
/// <br/><c>ImGuiID ParentViewportId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(4)]
public ImGuiID ParentViewportId;
/// <summary>
/// <para>
/// ID of parent window for shortcut focus route evaluation, e.g. Shortcut() call from Parent Window will
/// succeed when this window is focused.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2754">imgui.h:2754</see>
/// <br/><c>ImGuiID FocusRouteParentWindowId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(8)]
public ImGuiID FocusRouteParentWindowId;
/// <summary>
/// <para>
/// Viewport flags to set when a window of this class owns a viewport. This allows you to enforce OS
/// decoration or task bar icon, override the defaults on a per-window basis.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2755">imgui.h:2755</see>
/// <br/><c>ImGuiViewportFlags ViewportFlagsOverrideSet</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(12)]
public ImGuiViewportFlags ViewportFlagsOverrideSet;
/// <summary>
/// <para>
/// Viewport flags to clear when a window of this class owns a viewport. This allows you to enforce OS
/// decoration or task bar icon, override the defaults on a per-window basis.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2756">imgui.h:2756</see>
/// <br/><c>ImGuiViewportFlags ViewportFlagsOverrideClear</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(16)]
public ImGuiViewportFlags ViewportFlagsOverrideClear;
/// <summary>
/// <para>
/// [EXPERIMENTAL] TabItem flags to set when a window of this class gets submitted into a dock node tab bar.
/// May use with ImGuiTabItemFlags_Leading or ImGuiTabItemFlags_Trailing.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2757">imgui.h:2757</see>
/// <br/><c>ImGuiTabItemFlags TabItemFlagsOverrideSet</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(20)]
public ImGuiTabItemFlags TabItemFlagsOverrideSet;
/// <summary>
/// <para>
/// [EXPERIMENTAL] Dock node flags to set when a window of this class is hosted by a dock node (it doesn't
/// have to be selected!)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2758">imgui.h:2758</see>
/// <br/><c>ImGuiDockNodeFlags DockNodeFlagsOverrideSet</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(24)]
public ImGuiDockNodeFlags DockNodeFlagsOverrideSet;
/// <summary>
/// <para>
/// Set to true to enforce single floating windows of this class always having their own docking node
/// (equivalent of setting the global io.ConfigDockingAlwaysTabBar)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2759">imgui.h:2759</see>
/// <br/><c>bool DockingAlwaysTabBar</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(28)]
public Bool8 DockingAlwaysTabBar;
/// <summary>
/// <para>
/// Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK:
/// Move to DockNodeFlags override?
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2760">imgui.h:2760</see>
/// <br/><c>bool DockingAllowUnclassed</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
[FieldOffset(29)]
public Bool8 DockingAllowUnclassed;
}
/// <summary>
/// <para>
/// Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and
/// parent/child info)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L218">imgui.h:218</see>
/// <br/><c>struct ImGuiWindowClass</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Forward declarations: ImGui layer
/// </para>
/// </remarks>
public unsafe partial struct ImGuiWindowClassPtr(ImGuiWindowClass* ptr) : INullable
{
private ImGuiWindowClass* _ptr = ptr;
public ImGuiWindowClass* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiWindowClassPtr(ImGuiWindowClass* ptr) => new(ptr);
public static implicit operator ImGuiWindowClass*(ImGuiWindowClassPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each
/// others.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2752">imgui.h:2752</see>
/// <br/><c>ImGuiID ClassId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiID ClassId => ref Unsafe.AsRef<ImGuiID>(&_ptr->ClassId);
/// <summary>
/// <para>
/// Hint for the platform backend. -1: use default. 0: request platform backend to not parent the platform.
/// != 0: request platform backend to create a parent&lt;&gt;child relationship between the platform
/// windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2753">imgui.h:2753</see>
/// <br/><c>ImGuiID ParentViewportId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiID ParentViewportId => ref Unsafe.AsRef<ImGuiID>(&_ptr->ParentViewportId);
/// <summary>
/// <para>
/// ID of parent window for shortcut focus route evaluation, e.g. Shortcut() call from Parent Window will
/// succeed when this window is focused.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2754">imgui.h:2754</see>
/// <br/><c>ImGuiID FocusRouteParentWindowId</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiID FocusRouteParentWindowId => ref Unsafe.AsRef<ImGuiID>(&_ptr->FocusRouteParentWindowId);
/// <summary>
/// <para>
/// Viewport flags to set when a window of this class owns a viewport. This allows you to enforce OS
/// decoration or task bar icon, override the defaults on a per-window basis.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2755">imgui.h:2755</see>
/// <br/><c>ImGuiViewportFlags ViewportFlagsOverrideSet</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiViewportFlags ViewportFlagsOverrideSet =>
ref Unsafe.AsRef<ImGuiViewportFlags>(&_ptr->ViewportFlagsOverrideSet);
/// <summary>
/// <para>
/// Viewport flags to clear when a window of this class owns a viewport. This allows you to enforce OS
/// decoration or task bar icon, override the defaults on a per-window basis.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2756">imgui.h:2756</see>
/// <br/><c>ImGuiViewportFlags ViewportFlagsOverrideClear</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiViewportFlags ViewportFlagsOverrideClear =>
ref Unsafe.AsRef<ImGuiViewportFlags>(&_ptr->ViewportFlagsOverrideClear);
/// <summary>
/// <para>
/// [EXPERIMENTAL] TabItem flags to set when a window of this class gets submitted into a dock node tab bar.
/// May use with ImGuiTabItemFlags_Leading or ImGuiTabItemFlags_Trailing.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2757">imgui.h:2757</see>
/// <br/><c>ImGuiTabItemFlags TabItemFlagsOverrideSet</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiTabItemFlags TabItemFlagsOverrideSet =>
ref Unsafe.AsRef<ImGuiTabItemFlags>(&_ptr->TabItemFlagsOverrideSet);
/// <summary>
/// <para>
/// [EXPERIMENTAL] Dock node flags to set when a window of this class is hosted by a dock node (it doesn't
/// have to be selected!)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2758">imgui.h:2758</see>
/// <br/><c>ImGuiDockNodeFlags DockNodeFlagsOverrideSet</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet =>
ref Unsafe.AsRef<ImGuiDockNodeFlags>(&_ptr->DockNodeFlagsOverrideSet);
/// <summary>
/// <para>
/// Set to true to enforce single floating windows of this class always having their own docking node
/// (equivalent of setting the global io.ConfigDockingAlwaysTabBar)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2759">imgui.h:2759</see>
/// <br/><c>bool DockingAlwaysTabBar</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&_ptr->DockingAlwaysTabBar);
/// <summary>
/// <para>
/// Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK:
/// Move to DockNodeFlags override?
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2760">imgui.h:2760</see>
/// <br/><c>bool DockingAllowUnclassed</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions.
/// Important: the content of this class is still highly WIP and likely to change and be refactored
/// before we stabilize Docking features. Please be mindful if using this.
/// Provide hints:
/// - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.)
/// - To the platform backend for OS level parent/child relationships of viewport.
/// - To the docking system for various options and filtering.
/// </code>
/// </remarks>
public ref bool DockingAllowUnclassed => ref Unsafe.AsRef<bool>(&_ptr->DockingAllowUnclassed);
}
}