//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and
/// parent/child info)
///
///
/// C++:
/// imgui.h:218
///
struct ImGuiWindowClass
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 32)]
public partial struct ImGuiWindowClass
{
///
///
/// User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each
/// others.
///
///
/// C++:
/// imgui.h:2752
///
ImGuiID ClassId
///
///
///
///
/// [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.
///
///
[FieldOffset(0)]
public ImGuiID ClassId;
///
///
/// 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<>child relationship between the platform
/// windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not.
///
///
/// C++:
/// imgui.h:2753
///
ImGuiID ParentViewportId
///
///
///
///
/// [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.
///
///
[FieldOffset(4)]
public ImGuiID ParentViewportId;
///
///
/// ID of parent window for shortcut focus route evaluation, e.g. Shortcut() call from Parent Window will
/// succeed when this window is focused.
///
///
/// C++:
/// imgui.h:2754
///
ImGuiID FocusRouteParentWindowId
///
///
///
///
/// [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.
///
///
[FieldOffset(8)]
public ImGuiID FocusRouteParentWindowId;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2755
///
ImGuiViewportFlags ViewportFlagsOverrideSet
///
///
///
///
/// [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.
///
///
[FieldOffset(12)]
public ImGuiViewportFlags ViewportFlagsOverrideSet;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2756
///
ImGuiViewportFlags ViewportFlagsOverrideClear
///
///
///
///
/// [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.
///
///
[FieldOffset(16)]
public ImGuiViewportFlags ViewportFlagsOverrideClear;
///
///
/// [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.
///
///
/// C++:
/// imgui.h:2757
///
ImGuiTabItemFlags TabItemFlagsOverrideSet
///
///
///
///
/// [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.
///
///
[FieldOffset(20)]
public ImGuiTabItemFlags TabItemFlagsOverrideSet;
///
///
/// [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!)
///
///
/// C++:
/// imgui.h:2758
///
ImGuiDockNodeFlags DockNodeFlagsOverrideSet
///
///
///
///
/// [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.
///
///
[FieldOffset(24)]
public ImGuiDockNodeFlags DockNodeFlagsOverrideSet;
///
///
/// Set to true to enforce single floating windows of this class always having their own docking node
/// (equivalent of setting the global io.ConfigDockingAlwaysTabBar)
///
///
/// C++:
/// imgui.h:2759
///
bool DockingAlwaysTabBar
///
///
///
///
/// [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.
///
///
[FieldOffset(28)]
public Bool8 DockingAlwaysTabBar;
///
///
/// Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK:
/// Move to DockNodeFlags override?
///
///
/// C++:
/// imgui.h:2760
///
bool DockingAllowUnclassed
///
///
///
///
/// [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.
///
///
[FieldOffset(29)]
public Bool8 DockingAllowUnclassed;
}
///
///
/// Window class (rare/advanced uses: provide hints to the platform backend via altered viewport flags and
/// parent/child info)
///
///
/// C++:
/// imgui.h:218
///
struct ImGuiWindowClass
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each
/// others.
///
///
/// C++:
/// imgui.h:2752
///
ImGuiID ClassId
///
///
///
///
/// [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.
///
///
public ref ImGuiID ClassId => ref Unsafe.AsRef(&_ptr->ClassId);
///
///
/// 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<>child relationship between the platform
/// windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not.
///
///
/// C++:
/// imgui.h:2753
///
ImGuiID ParentViewportId
///
///
///
///
/// [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.
///
///
public ref ImGuiID ParentViewportId => ref Unsafe.AsRef(&_ptr->ParentViewportId);
///
///
/// ID of parent window for shortcut focus route evaluation, e.g. Shortcut() call from Parent Window will
/// succeed when this window is focused.
///
///
/// C++:
/// imgui.h:2754
///
ImGuiID FocusRouteParentWindowId
///
///
///
///
/// [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.
///
///
public ref ImGuiID FocusRouteParentWindowId => ref Unsafe.AsRef(&_ptr->FocusRouteParentWindowId);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2755
///
ImGuiViewportFlags ViewportFlagsOverrideSet
///
///
///
///
/// [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.
///
///
public ref ImGuiViewportFlags ViewportFlagsOverrideSet =>
ref Unsafe.AsRef(&_ptr->ViewportFlagsOverrideSet);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2756
///
ImGuiViewportFlags ViewportFlagsOverrideClear
///
///
///
///
/// [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.
///
///
public ref ImGuiViewportFlags ViewportFlagsOverrideClear =>
ref Unsafe.AsRef(&_ptr->ViewportFlagsOverrideClear);
///
///
/// [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.
///
///
/// C++:
/// imgui.h:2757
///
ImGuiTabItemFlags TabItemFlagsOverrideSet
///
///
///
///
/// [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.
///
///
public ref ImGuiTabItemFlags TabItemFlagsOverrideSet =>
ref Unsafe.AsRef(&_ptr->TabItemFlagsOverrideSet);
///
///
/// [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!)
///
///
/// C++:
/// imgui.h:2758
///
ImGuiDockNodeFlags DockNodeFlagsOverrideSet
///
///
///
///
/// [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.
///
///
public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet =>
ref Unsafe.AsRef(&_ptr->DockNodeFlagsOverrideSet);
///
///
/// Set to true to enforce single floating windows of this class always having their own docking node
/// (equivalent of setting the global io.ConfigDockingAlwaysTabBar)
///
///
/// C++:
/// imgui.h:2759
///
bool DockingAlwaysTabBar
///
///
///
///
/// [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.
///
///
public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef(&_ptr->DockingAlwaysTabBar);
///
///
/// Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK:
/// Move to DockNodeFlags override?
///
///
/// C++:
/// imgui.h:2760
///
bool DockingAllowUnclassed
///
///
///
///
/// [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.
///
///
public ref bool DockingAllowUnclassed => ref Unsafe.AsRef(&_ptr->DockingAllowUnclassed);
}
}