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

81 lines
3.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>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1526">imgui_internal.h:1526</see>
/// <br/><c>struct ImGuiInputEventText { unsigned int Char; }</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?
/// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 4)]
public partial struct ImGuiInputEventText
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1526">imgui_internal.h:1526</see>
/// <br/><c>unsigned int Char</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?
/// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'
/// </code>
/// </remarks>
[FieldOffset(0)]
public uint Char;
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1526">imgui_internal.h:1526</see>
/// <br/><c>struct ImGuiInputEventText { unsigned int Char; }</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?
/// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'
/// </code>
/// </remarks>
public unsafe partial struct ImGuiInputEventTextPtr(ImGuiInputEventText* ptr) : INullable
{
private ImGuiInputEventText* _ptr = ptr;
public ImGuiInputEventText* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiInputEventTextPtr(ImGuiInputEventText* ptr) => new(ptr);
public static implicit operator ImGuiInputEventText*(ImGuiInputEventTextPtr wrapper) => wrapper.Ptr;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1526">imgui_internal.h:1526</see>
/// <br/><c>unsigned int Char</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?
/// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'
/// </code>
/// </remarks>
public ref uint Char => ref Unsafe.AsRef<uint>(&_ptr->Char);
}
}