brutal/Brutal.ImGui/Generated-Internal/Structs/ImGuiLocEntry.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

92 lines
3 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>
/// A localization entry.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L164">imgui_internal.h:164</see>
/// <br/><c>struct ImGuiLocEntry</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// ImGui
/// </para>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 16)]
public partial struct ImGuiLocEntry
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2202">imgui_internal.h:2202</see>
/// <br/><c>ImGuiLocKey Key</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public ImGuiLocKey Key;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2203">imgui_internal.h:2203</see>
/// <br/><c>const char* Text</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public Ptr<byte> Text;
}
/// <summary>
/// <para>
/// A localization entry.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L164">imgui_internal.h:164</see>
/// <br/><c>struct ImGuiLocEntry</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// ImGui
/// </para>
/// </remarks>
public unsafe partial struct ImGuiLocEntryPtr(ImGuiLocEntry* ptr) : INullable
{
private ImGuiLocEntry* _ptr = ptr;
public ImGuiLocEntry* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiLocEntryPtr(ImGuiLocEntry* ptr) => new(ptr);
public static implicit operator ImGuiLocEntry*(ImGuiLocEntryPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2202">imgui_internal.h:2202</see>
/// <br/><c>ImGuiLocKey Key</c>
/// </para>
/// </summary>
public ref ImGuiLocKey Key => ref Unsafe.AsRef<ImGuiLocKey>(&_ptr->Key);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L2203">imgui_internal.h:2203</see>
/// <br/><c>const char* Text</c>
/// </para>
/// </summary>
public ref Ptr<byte> Text => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->Text);
}
}