mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
144 lines
6.3 KiB
C#
144 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#L1523">imgui_internal.h:1523</see>
|
|
/// <br/><c>struct ImGuiInputEventMouseButton { int Button; bool Down; 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 ImGuiInputEventMouseButton
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1523">imgui_internal.h:1523</see>
|
|
/// <br/><c>int Button</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 int Button;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1523">imgui_internal.h:1523</see>
|
|
/// <br/><c>bool Down</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 Bool8 Down;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1523">imgui_internal.h:1523</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#L1523">imgui_internal.h:1523</see>
|
|
/// <br/><c>struct ImGuiInputEventMouseButton { int Button; bool Down; 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 ImGuiInputEventMouseButtonPtr(ImGuiInputEventMouseButton* ptr) : INullable
|
|
{
|
|
private ImGuiInputEventMouseButton* _ptr = ptr;
|
|
public ImGuiInputEventMouseButton* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiInputEventMouseButtonPtr(ImGuiInputEventMouseButton* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiInputEventMouseButton*(ImGuiInputEventMouseButtonPtr wrapper) =>
|
|
wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1523">imgui_internal.h:1523</see>
|
|
/// <br/><c>int Button</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 int Button => ref Unsafe.AsRef<int>(&_ptr->Button);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1523">imgui_internal.h:1523</see>
|
|
/// <br/><c>bool Down</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 bool Down => ref Unsafe.AsRef<bool>(&_ptr->Down);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L1523">imgui_internal.h:1523</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);
|
|
}
|
|
}
|