// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; namespace Brutal.ImGuiApi.Internal { /// /// /// Storage for one type registered in the .ini file /// /// /// C++: /// imgui_internal.h:175 ///
struct ImGuiSettingsHandler ///
///
/// /// /// ImGui /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] public partial struct ImGuiSettingsHandler { /// /// /// Short description stored in .ini file. Disallowed characters: '[' ']' /// /// /// C++: /// imgui_internal.h:2164 ///
const char* TypeName ///
///
[FieldOffset(0)] public Ptr TypeName; /// /// /// == ImHashStr(TypeName) /// /// /// C++: /// imgui_internal.h:2165 ///
ImGuiID TypeHash ///
///
[FieldOffset(8)] public ImGuiID TypeHash; /// /// /// Clear all settings data /// /// /// C++: /// imgui_internal.h:2166 ///
void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler) ///
///
[FieldOffset(16)] public nint ClearAllFn; /// /// /// Read: Called before reading (in registration order) /// /// /// C++: /// imgui_internal.h:2167 ///
void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler) ///
///
[FieldOffset(24)] public nint ReadInitFn; /// /// /// Read: Called when entering into a new ini entry e.g. "[Window][Name]" /// /// /// C++: /// imgui_internal.h:2168 ///
void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name) ///
///
[FieldOffset(32)] public nint ReadOpenFn; /// /// /// Read: Called for every line of text within an ini entry /// /// /// C++: /// imgui_internal.h:2169 ///
/// void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line) ///
///
[FieldOffset(40)] public nint ReadLineFn; /// /// /// Read: Called after reading (in registration order) /// /// /// C++: /// imgui_internal.h:2170 ///
void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler) ///
///
[FieldOffset(48)] public nint ApplyAllFn; /// /// /// Write: Output every entries into 'out_buf' /// /// /// C++: /// imgui_internal.h:2171 ///
/// void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf) ///
///
[FieldOffset(56)] public nint WriteAllFn; /// /// /// C++: /// imgui_internal.h:2172 ///
void* UserData ///
///
[FieldOffset(64)] public nint UserData; } /// /// /// Storage for one type registered in the .ini file /// /// /// C++: /// imgui_internal.h:175 ///
struct ImGuiSettingsHandler ///
///
/// /// /// ImGui /// /// public unsafe partial struct ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* ptr) : INullable { private ImGuiSettingsHandler* _ptr = ptr; public ImGuiSettingsHandler* Ptr => _ptr; public bool IsNull() => _ptr is null; public static implicit operator ImGuiSettingsHandlerPtr(ImGuiSettingsHandler* ptr) => new(ptr); public static implicit operator ImGuiSettingsHandler*(ImGuiSettingsHandlerPtr wrapper) => wrapper.Ptr; /// /// /// Short description stored in .ini file. Disallowed characters: '[' ']' /// /// /// C++: /// imgui_internal.h:2164 ///
const char* TypeName ///
///
public ref Ptr TypeName => ref Unsafe.AsRef>(&_ptr->TypeName); /// /// /// == ImHashStr(TypeName) /// /// /// C++: /// imgui_internal.h:2165 ///
ImGuiID TypeHash ///
///
public ref ImGuiID TypeHash => ref Unsafe.AsRef(&_ptr->TypeHash); /// /// /// Clear all settings data /// /// /// C++: /// imgui_internal.h:2166 ///
void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler) ///
///
public ref nint ClearAllFn => ref Unsafe.AsRef(&_ptr->ClearAllFn); /// /// /// Read: Called before reading (in registration order) /// /// /// C++: /// imgui_internal.h:2167 ///
void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler) ///
///
public ref nint ReadInitFn => ref Unsafe.AsRef(&_ptr->ReadInitFn); /// /// /// Read: Called when entering into a new ini entry e.g. "[Window][Name]" /// /// /// C++: /// imgui_internal.h:2168 ///
void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name) ///
///
public ref nint ReadOpenFn => ref Unsafe.AsRef(&_ptr->ReadOpenFn); /// /// /// Read: Called for every line of text within an ini entry /// /// /// C++: /// imgui_internal.h:2169 ///
/// void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line) ///
///
public ref nint ReadLineFn => ref Unsafe.AsRef(&_ptr->ReadLineFn); /// /// /// Read: Called after reading (in registration order) /// /// /// C++: /// imgui_internal.h:2170 ///
void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler) ///
///
public ref nint ApplyAllFn => ref Unsafe.AsRef(&_ptr->ApplyAllFn); /// /// /// Write: Output every entries into 'out_buf' /// /// /// C++: /// imgui_internal.h:2171 ///
/// void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf) ///
///
public ref nint WriteAllFn => ref Unsafe.AsRef(&_ptr->WriteAllFn); /// /// /// C++: /// imgui_internal.h:2172 ///
void* UserData ///
///
public ref nint UserData => ref Unsafe.AsRef(&_ptr->UserData); } }