mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
82 lines
3.5 KiB
C#
82 lines
3.5 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#L1524">imgui_internal.h:1524</see>
|
|
/// <br/><c>struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; }</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 = 4)]
|
|
public partial struct ImGuiInputEventMouseViewport
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1524">imgui_internal.h:1524</see>
|
|
/// <br/><c>ImGuiID HoveredViewportID</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 ImGuiID HoveredViewportID;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1524">imgui_internal.h:1524</see>
|
|
/// <br/><c>struct ImGuiInputEventMouseViewport { ImGuiID HoveredViewportID; }</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 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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1524">imgui_internal.h:1524</see>
|
|
/// <br/><c>ImGuiID HoveredViewportID</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 ImGuiID HoveredViewportID => ref Unsafe.AsRef<ImGuiID>(&_ptr->HoveredViewportID);
|
|
}
|
|
}
|