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