mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
494 lines
22 KiB
C#
494 lines
22 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi.Internal
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during
|
|
/// this session)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L193">imgui_internal.h:193</see>
|
|
/// <br/><c>struct ImGuiWindowSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 36)]
|
|
public partial struct ImGuiWindowSettings
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2145">imgui_internal.h:2145</see>
|
|
/// <br/><c>ImGuiID ID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImGuiID ID;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2146">imgui_internal.h:2146</see>
|
|
/// <br/><c>ImVec2ih Pos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public short2 Pos;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2147">imgui_internal.h:2147</see>
|
|
/// <br/><c>ImVec2ih Size</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public short2 Size;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2148">imgui_internal.h:2148</see>
|
|
/// <br/><c>ImVec2ih ViewportPos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public short2 ViewportPos;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2149">imgui_internal.h:2149</see>
|
|
/// <br/><c>ImGuiID ViewportId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public ImGuiID ViewportId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0
|
|
/// if none.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2150">imgui_internal.h:2150</see>
|
|
/// <br/><c>ImGuiID DockId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(20)]
|
|
public ImGuiID DockId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID of window class if specified
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2151">imgui_internal.h:2151</see>
|
|
/// <br/><c>ImGuiID ClassId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public ImGuiID ClassId;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2152">imgui_internal.h:2152</see>
|
|
/// <br/><c>short DockOrder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(28)]
|
|
public short DockOrder;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2153">imgui_internal.h:2153</see>
|
|
/// <br/><c>bool Collapsed</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(30)]
|
|
public Bool8 Collapsed;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2154">imgui_internal.h:2154</see>
|
|
/// <br/><c>bool IsChild</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(31)]
|
|
public Bool8 IsChild;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2155">imgui_internal.h:2155</see>
|
|
/// <br/><c>bool WantApply</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public Bool8 WantApply;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set to invalidate/delete the settings entry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2156">imgui_internal.h:2156</see>
|
|
/// <br/><c>bool WantDelete</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(33)]
|
|
public Bool8 WantDelete;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during
|
|
/// this session)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L193">imgui_internal.h:193</see>
|
|
/// <br/><c>struct ImGuiWindowSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2145">imgui_internal.h:2145</see>
|
|
/// <br/><c>ImGuiID ID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiID ID => ref Unsafe.AsRef<ImGuiID>(&_ptr->ID);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// NB: Settings position are stored RELATIVE to the viewport! Whereas runtime ones are absolute positions.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2146">imgui_internal.h:2146</see>
|
|
/// <br/><c>ImVec2ih Pos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref short2 Pos => ref Unsafe.AsRef<short2>(&_ptr->Pos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2147">imgui_internal.h:2147</see>
|
|
/// <br/><c>ImVec2ih Size</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref short2 Size => ref Unsafe.AsRef<short2>(&_ptr->Size);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2148">imgui_internal.h:2148</see>
|
|
/// <br/><c>ImVec2ih ViewportPos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref short2 ViewportPos => ref Unsafe.AsRef<short2>(&_ptr->ViewportPos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2149">imgui_internal.h:2149</see>
|
|
/// <br/><c>ImGuiID ViewportId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiID ViewportId => ref Unsafe.AsRef<ImGuiID>(&_ptr->ViewportId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID of last known DockNode (even if the DockNode is invisible because it has only 1 active window), or 0
|
|
/// if none.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2150">imgui_internal.h:2150</see>
|
|
/// <br/><c>ImGuiID DockId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiID DockId => ref Unsafe.AsRef<ImGuiID>(&_ptr->DockId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID of window class if specified
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2151">imgui_internal.h:2151</see>
|
|
/// <br/><c>ImGuiID ClassId</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiID ClassId => ref Unsafe.AsRef<ImGuiID>(&_ptr->ClassId);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2152">imgui_internal.h:2152</see>
|
|
/// <br/><c>short DockOrder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref short DockOrder => ref Unsafe.AsRef<short>(&_ptr->DockOrder);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2153">imgui_internal.h:2153</see>
|
|
/// <br/><c>bool Collapsed</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool Collapsed => ref Unsafe.AsRef<bool>(&_ptr->Collapsed);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2154">imgui_internal.h:2154</see>
|
|
/// <br/><c>bool IsChild</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool IsChild => ref Unsafe.AsRef<bool>(&_ptr->IsChild);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2155">imgui_internal.h:2155</see>
|
|
/// <br/><c>bool WantApply</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool WantApply => ref Unsafe.AsRef<bool>(&_ptr->WantApply);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set to invalidate/delete the settings entry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2156">imgui_internal.h:2156</see>
|
|
/// <br/><c>bool WantDelete</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool WantDelete => ref Unsafe.AsRef<bool>(&_ptr->WantDelete);
|
|
}
|
|
}
|