//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:1525
///
struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }
///
///
///
///
/// 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 = 12)]
public partial struct ImGuiInputEventKey
{
///
///
/// C++:
/// imgui_internal.h:1525
///
ImGuiKey Key
///
///
///
///
/// 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 ImGuiKey Key;
///
///
/// C++:
/// imgui_internal.h:1525
///
bool Down
///
///
///
///
/// 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(4)]
public Bool8 Down;
///
///
/// C++:
/// imgui_internal.h:1525
///
float AnalogValue
///
///
///
///
/// 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(8)]
public float AnalogValue;
}
///
///
/// C++:
/// imgui_internal.h:1525
///
struct ImGuiInputEventKey { ImGuiKey Key; bool Down; float AnalogValue; }
///
///
///
///
/// 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 ImGuiInputEventKeyPtr(ImGuiInputEventKey* ptr) : INullable
{
private ImGuiInputEventKey* _ptr = ptr;
public ImGuiInputEventKey* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiInputEventKeyPtr(ImGuiInputEventKey* ptr) => new(ptr);
public static implicit operator ImGuiInputEventKey*(ImGuiInputEventKeyPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1525
///
ImGuiKey Key
///
///
///
///
/// 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 ImGuiKey Key => ref Unsafe.AsRef(&_ptr->Key);
///
///
/// C++:
/// imgui_internal.h:1525
///
bool Down
///
///
///
///
/// 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 bool Down => ref Unsafe.AsRef(&_ptr->Down);
///
///
/// C++:
/// imgui_internal.h:1525
///
float AnalogValue
///
///
///
///
/// 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 float AnalogValue => ref Unsafe.AsRef(&_ptr->AnalogValue);
}
}