//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:1521
///
struct ImGuiInputEventMousePos { float PosX, PosY; ImGuiMouseSource MouseSource; }
///
///
///
///
/// 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 ImGuiInputEventMousePos
{
///
///
/// C++:
/// imgui_internal.h:1521
///
float PosX
///
///
///
///
/// 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 float PosX;
///
///
/// C++:
/// imgui_internal.h:1521
///
float PosX, PosY
///
///
///
///
/// 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 float PosY;
///
///
/// C++:
/// imgui_internal.h:1521
///
ImGuiMouseSource MouseSource
///
///
///
///
/// 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 ImGuiMouseSource MouseSource;
}
///
///
/// C++:
/// imgui_internal.h:1521
///
struct ImGuiInputEventMousePos { float PosX, PosY; ImGuiMouseSource MouseSource; }
///
///
///
///
/// 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 ImGuiInputEventMousePosPtr(ImGuiInputEventMousePos* ptr) : INullable
{
private ImGuiInputEventMousePos* _ptr = ptr;
public ImGuiInputEventMousePos* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiInputEventMousePosPtr(ImGuiInputEventMousePos* ptr) => new(ptr);
public static implicit operator ImGuiInputEventMousePos*(ImGuiInputEventMousePosPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1521
///
float PosX
///
///
///
///
/// 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 PosX => ref Unsafe.AsRef(&_ptr->PosX);
///
///
/// C++:
/// imgui_internal.h:1521
///
float PosX, PosY
///
///
///
///
/// 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 PosY => ref Unsafe.AsRef(&_ptr->PosY);
///
///
/// C++:
/// imgui_internal.h:1521
///
ImGuiMouseSource MouseSource
///
///
///
///
/// 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 ImGuiMouseSource MouseSource => ref Unsafe.AsRef(&_ptr->MouseSource);
}
}