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

143 lines
6.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#L1522">imgui_internal.h:1522</see>
/// <br/><c>struct ImGuiInputEventMouseWheel { float WheelX, WheelY; ImGuiMouseSource MouseSource; }</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 = 12)]
public partial struct ImGuiInputEventMouseWheel
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>float WheelX</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 float WheelX;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>float WheelX, WheelY</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(4)]
public float WheelY;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>ImGuiMouseSource MouseSource</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(8)]
public ImGuiMouseSource MouseSource;
}
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>struct ImGuiInputEventMouseWheel { float WheelX, WheelY; ImGuiMouseSource MouseSource; }</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 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;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>float WheelX</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 float WheelX => ref Unsafe.AsRef<float>(&_ptr->WheelX);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>float WheelX, WheelY</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 float WheelY => ref Unsafe.AsRef<float>(&_ptr->WheelY);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1522">imgui_internal.h:1522</see>
/// <br/><c>ImGuiMouseSource MouseSource</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 ImGuiMouseSource MouseSource => ref Unsafe.AsRef<ImGuiMouseSource>(&_ptr->MouseSource);
}
}