//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:1526
///
struct ImGuiInputEventText { unsigned int Char; }
///
///
///
///
/// 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'
///
///
[StructLayout(LayoutKind.Explicit, Size = 4)]
public partial struct ImGuiInputEventText
{
///
///
/// C++:
/// imgui_internal.h:1526
///
unsigned int Char
///
///
///
///
/// 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'
///
///
[FieldOffset(0)]
public uint Char;
}
///
///
/// C++:
/// imgui_internal.h:1526
///
struct ImGuiInputEventText { unsigned int Char; }
///
///
///
///
/// 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'
///
///
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;
///
///
/// C++:
/// imgui_internal.h:1526
///
unsigned int Char
///
///
///
///
/// 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'
///
///
public ref uint Char => ref Unsafe.AsRef(&_ptr->Char);
}
}