//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for a table .ini settings
///
///
/// C++:
/// imgui_internal.h:185
///
struct ImGuiTableSettings
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 20)]
public partial struct ImGuiTableSettings
{
///
///
/// Set to 0 to invalidate/delete the setting
///
///
/// C++:
/// imgui_internal.h:3301
///
ImGuiID ID
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using
/// its own flags..)
///
///
/// C++:
/// imgui_internal.h:3302
///
ImGuiTableFlags SaveFlags
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
[FieldOffset(4)]
public ImGuiTableFlags SaveFlags;
///
///
/// Reference scale to be able to rescale columns on font/dpi changes.
///
///
/// C++:
/// imgui_internal.h:3303
///
float RefScale
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
[FieldOffset(8)]
public float RefScale;
///
///
/// C++:
/// imgui_internal.h:3304
///
ImGuiTableColumnIdx ColumnsCount
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
[FieldOffset(12)]
public short ColumnsCount;
///
///
/// Maximum number of columns this settings instance can store, we can recycle a settings instance with
/// lower number of columns but not higher
///
///
/// C++:
/// imgui_internal.h:3305
///
ImGuiTableColumnIdx ColumnsCountMax
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
[FieldOffset(14)]
public short ColumnsCountMax;
///
///
/// Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
///
///
/// C++:
/// imgui_internal.h:3306
///
bool WantApply
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
[FieldOffset(16)]
public Bool8 WantApply;
}
///
///
/// Storage for a table .ini settings
///
///
/// C++:
/// imgui_internal.h:185
///
struct ImGuiTableSettings
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiTableSettingsPtr(ImGuiTableSettings* ptr) : INullable
{
private ImGuiTableSettings* _ptr = ptr;
public ImGuiTableSettings* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTableSettingsPtr(ImGuiTableSettings* ptr) => new(ptr);
public static implicit operator ImGuiTableSettings*(ImGuiTableSettingsPtr wrapper) => wrapper.Ptr;
///
///
/// Set to 0 to invalidate/delete the setting
///
///
/// C++:
/// imgui_internal.h:3301
///
ImGuiID ID
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using
/// its own flags..)
///
///
/// C++:
/// imgui_internal.h:3302
///
ImGuiTableFlags SaveFlags
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
public ref ImGuiTableFlags SaveFlags => ref Unsafe.AsRef(&_ptr->SaveFlags);
///
///
/// Reference scale to be able to rescale columns on font/dpi changes.
///
///
/// C++:
/// imgui_internal.h:3303
///
float RefScale
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
public ref float RefScale => ref Unsafe.AsRef(&_ptr->RefScale);
///
///
/// C++:
/// imgui_internal.h:3304
///
ImGuiTableColumnIdx ColumnsCount
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
public ref short ColumnsCount => ref Unsafe.AsRef(&_ptr->ColumnsCount);
///
///
/// Maximum number of columns this settings instance can store, we can recycle a settings instance with
/// lower number of columns but not higher
///
///
/// C++:
/// imgui_internal.h:3305
///
ImGuiTableColumnIdx ColumnsCountMax
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
public ref short ColumnsCountMax => ref Unsafe.AsRef(&_ptr->ColumnsCountMax);
///
///
/// Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
///
///
/// C++:
/// imgui_internal.h:3306
///
bool WantApply
///
///
///
///
/// This is designed to be stored in a single ImChunkStream (1 header followed by N
/// ImGuiTableColumnSettings, etc.)
///
///
public ref bool WantApply => ref Unsafe.AsRef(&_ptr->WantApply);
}
}