mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
277 lines
11 KiB
C#
277 lines
11 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 one type registered in the .ini file
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L175">imgui_internal.h:175</see>
|
|
/// <br/><c>struct ImGuiSettingsHandler</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 72)]
|
|
public partial struct ImGuiSettingsHandler
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Short description stored in .ini file. Disallowed characters: '[' ']'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2164">imgui_internal.h:2164</see>
|
|
/// <br/><c>const char* TypeName</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public Ptr<byte> TypeName;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// == ImHashStr(TypeName)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2165">imgui_internal.h:2165</see>
|
|
/// <br/><c>ImGuiID TypeHash</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(8)]
|
|
public ImGuiID TypeHash;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Clear all settings data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2166">imgui_internal.h:2166</see>
|
|
/// <br/><c>void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public nint ClearAllFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called before reading (in registration order)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2167">imgui_internal.h:2167</see>
|
|
/// <br/><c>void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(24)]
|
|
public nint ReadInitFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called when entering into a new ini entry e.g. "[Window][Name]"
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2168">imgui_internal.h:2168</see>
|
|
/// <br/><c>void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(32)]
|
|
public nint ReadOpenFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called for every line of text within an ini entry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2169">imgui_internal.h:2169</see>
|
|
/// <br/>
|
|
/// <c>void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(40)]
|
|
public nint ReadLineFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called after reading (in registration order)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2170">imgui_internal.h:2170</see>
|
|
/// <br/><c>void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(48)]
|
|
public nint ApplyAllFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write: Output every entries into 'out_buf'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2171">imgui_internal.h:2171</see>
|
|
/// <br/>
|
|
/// <c>void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(56)]
|
|
public nint WriteAllFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2172">imgui_internal.h:2172</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(64)]
|
|
public nint UserData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Storage for one type registered in the .ini file
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L175">imgui_internal.h:175</see>
|
|
/// <br/><c>struct ImGuiSettingsHandler</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// ImGui
|
|
/// </para>
|
|
/// </remarks>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Short description stored in .ini file. Disallowed characters: '[' ']'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2164">imgui_internal.h:2164</see>
|
|
/// <br/><c>const char* TypeName</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref Ptr<byte> TypeName => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->TypeName);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// == ImHashStr(TypeName)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2165">imgui_internal.h:2165</see>
|
|
/// <br/><c>ImGuiID TypeHash</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref ImGuiID TypeHash => ref Unsafe.AsRef<ImGuiID>(&_ptr->TypeHash);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Clear all settings data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2166">imgui_internal.h:2166</see>
|
|
/// <br/><c>void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint ClearAllFn => ref Unsafe.AsRef<nint>(&_ptr->ClearAllFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called before reading (in registration order)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2167">imgui_internal.h:2167</see>
|
|
/// <br/><c>void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint ReadInitFn => ref Unsafe.AsRef<nint>(&_ptr->ReadInitFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called when entering into a new ini entry e.g. "[Window][Name]"
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2168">imgui_internal.h:2168</see>
|
|
/// <br/><c>void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint ReadOpenFn => ref Unsafe.AsRef<nint>(&_ptr->ReadOpenFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called for every line of text within an ini entry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2169">imgui_internal.h:2169</see>
|
|
/// <br/>
|
|
/// <c>void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint ReadLineFn => ref Unsafe.AsRef<nint>(&_ptr->ReadLineFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Read: Called after reading (in registration order)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2170">imgui_internal.h:2170</see>
|
|
/// <br/><c>void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint ApplyAllFn => ref Unsafe.AsRef<nint>(&_ptr->ApplyAllFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Write: Output every entries into 'out_buf'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2171">imgui_internal.h:2171</see>
|
|
/// <br/>
|
|
/// <c>void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint WriteAllFn => ref Unsafe.AsRef<nint>(&_ptr->WriteAllFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2172">imgui_internal.h:2172</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ref nint UserData => ref Unsafe.AsRef<nint>(&_ptr->UserData);
|
|
}
|
|
}
|