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