//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during
/// this session)
///
///
/// C++:
/// imgui_internal.h:193
///
struct ImGuiWindowSettings
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 36)]
public partial struct ImGuiWindowSettings
{
///
///
/// C++:
/// imgui_internal.h:2145
///
ImGuiID ID
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions.
///
///
/// C++:
/// imgui_internal.h:2146
///
ImVec2ih Pos
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(4)]
public short2 Pos;
///
///
/// C++:
/// imgui_internal.h:2147
///
ImVec2ih Size
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(8)]
public short2 Size;
///
///
/// C++:
/// imgui_internal.h:2148
///
ImVec2ih ViewportPos
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(12)]
public short2 ViewportPos;
///
///
/// C++:
/// imgui_internal.h:2149
///
ImGuiID ViewportId
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(16)]
public ImGuiID ViewportId;
///
///
/// ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0
/// if none.
///
///
/// C++:
/// imgui_internal.h:2150
///
ImGuiID DockId
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(20)]
public ImGuiID DockId;
///
///
/// ID of window class if specified
///
///
/// C++:
/// imgui_internal.h:2151
///
ImGuiID ClassId
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(24)]
public ImGuiID ClassId;
///
///
/// Order of the last time the window was visible within its DockNode. This is used to reorder windows that
/// are reappearing on the same frame. Same value between windows that were active and windows that were
/// none are possible.
///
///
/// C++:
/// imgui_internal.h:2152
///
short DockOrder
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(28)]
public short DockOrder;
///
///
/// C++:
/// imgui_internal.h:2153
///
bool Collapsed
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(30)]
public Bool8 Collapsed;
///
///
/// C++:
/// imgui_internal.h:2154
///
bool IsChild
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(31)]
public Bool8 IsChild;
///
///
/// Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
///
///
/// C++:
/// imgui_internal.h:2155
///
bool WantApply
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(32)]
public Bool8 WantApply;
///
///
/// Set to invalidate/delete the settings entry
///
///
/// C++:
/// imgui_internal.h:2156
///
bool WantDelete
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
[FieldOffset(33)]
public Bool8 WantDelete;
}
///
///
/// Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during
/// this session)
///
///
/// C++:
/// imgui_internal.h:193
///
struct ImGuiWindowSettings
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiWindowSettingsPtr(ImGuiWindowSettings* ptr) : INullable
{
private ImGuiWindowSettings* _ptr = ptr;
public ImGuiWindowSettings* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiWindowSettingsPtr(ImGuiWindowSettings* ptr) => new(ptr);
public static implicit operator ImGuiWindowSettings*(ImGuiWindowSettingsPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:2145
///
ImGuiID ID
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions.
///
///
/// C++:
/// imgui_internal.h:2146
///
ImVec2ih Pos
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref short2 Pos => ref Unsafe.AsRef(&_ptr->Pos);
///
///
/// C++:
/// imgui_internal.h:2147
///
ImVec2ih Size
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref short2 Size => ref Unsafe.AsRef(&_ptr->Size);
///
///
/// C++:
/// imgui_internal.h:2148
///
ImVec2ih ViewportPos
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref short2 ViewportPos => ref Unsafe.AsRef(&_ptr->ViewportPos);
///
///
/// C++:
/// imgui_internal.h:2149
///
ImGuiID ViewportId
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref ImGuiID ViewportId => ref Unsafe.AsRef(&_ptr->ViewportId);
///
///
/// ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0
/// if none.
///
///
/// C++:
/// imgui_internal.h:2150
///
ImGuiID DockId
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref ImGuiID DockId => ref Unsafe.AsRef(&_ptr->DockId);
///
///
/// ID of window class if specified
///
///
/// C++:
/// imgui_internal.h:2151
///
ImGuiID ClassId
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref ImGuiID ClassId => ref Unsafe.AsRef(&_ptr->ClassId);
///
///
/// Order of the last time the window was visible within its DockNode. This is used to reorder windows that
/// are reappearing on the same frame. Same value between windows that were active and windows that were
/// none are possible.
///
///
/// C++:
/// imgui_internal.h:2152
///
short DockOrder
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref short DockOrder => ref Unsafe.AsRef(&_ptr->DockOrder);
///
///
/// C++:
/// imgui_internal.h:2153
///
bool Collapsed
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref bool Collapsed => ref Unsafe.AsRef(&_ptr->Collapsed);
///
///
/// C++:
/// imgui_internal.h:2154
///
bool IsChild
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref bool IsChild => ref Unsafe.AsRef(&_ptr->IsChild);
///
///
/// Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
///
///
/// C++:
/// imgui_internal.h:2155
///
bool WantApply
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref bool WantApply => ref Unsafe.AsRef(&_ptr->WantApply);
///
///
/// Set to invalidate/delete the settings entry
///
///
/// C++:
/// imgui_internal.h:2156
///
bool WantDelete
///
///
///
///
/// Windows data saved in imgui.ini file
/// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
/// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
///
///
public ref bool WantDelete => ref Unsafe.AsRef(&_ptr->WantDelete);
}
}