//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:1529
///
struct ImGuiInputEvent
///
///
[StructLayout(LayoutKind.Explicit, Size = 28)]
public partial struct ImGuiInputEvent
{
///
///
/// C++:
/// imgui_internal.h:1531
///
ImGuiInputEventType Type
///
///
[FieldOffset(0)]
public ImGuiInputEventType Type;
///
///
/// C++:
/// imgui_internal.h:1532
///
ImGuiInputSource Source
///
///
[FieldOffset(4)]
public ImGuiInputSource Source;
///
///
/// Unique, sequential increasing integer to identify an event (if you need to correlate them to other
/// data).
///
///
/// C++:
/// imgui_internal.h:1533
///
ImU32 EventId
///
///
[FieldOffset(8)]
public uint EventId;
///
///
/// if Type == ImGuiInputEventType_MousePos
///
///
/// C++:
/// imgui_internal.h:1536
///
ImGuiInputEventMousePos MousePos
///
///
[FieldOffset(12)]
public ImGuiInputEventMousePos MousePos;
///
///
/// if Type == ImGuiInputEventType_MouseWheel
///
///
/// C++:
/// imgui_internal.h:1537
///
ImGuiInputEventMouseWheel MouseWheel
///
///
[FieldOffset(12)]
public ImGuiInputEventMouseWheel MouseWheel;
///
///
/// if Type == ImGuiInputEventType_MouseButton
///
///
/// C++:
/// imgui_internal.h:1538
///
ImGuiInputEventMouseButton MouseButton
///
///
[FieldOffset(12)]
public ImGuiInputEventMouseButton MouseButton;
///
///
/// if Type == ImGuiInputEventType_MouseViewport
///
///
/// C++:
/// imgui_internal.h:1539
///
ImGuiInputEventMouseViewport MouseViewport
///
///
[FieldOffset(12)]
public ImGuiInputEventMouseViewport MouseViewport;
///
///
/// if Type == ImGuiInputEventType_Key
///
///
/// C++:
/// imgui_internal.h:1540
///
ImGuiInputEventKey Key
///
///
[FieldOffset(12)]
public ImGuiInputEventKey Key;
///
///
/// if Type == ImGuiInputEventType_Text
///
///
/// C++:
/// imgui_internal.h:1541
///
ImGuiInputEventText Text
///
///
[FieldOffset(12)]
public ImGuiInputEventText Text;
///
///
/// if Type == ImGuiInputEventType_Focus
///
///
/// C++:
/// imgui_internal.h:1542
///
ImGuiInputEventAppFocused AppFocused
///
///
[FieldOffset(12)]
public ImGuiInputEventAppFocused AppFocused;
///
///
/// C++:
/// imgui_internal.h:1544
///
bool AddedByTestEngine
///
///
[FieldOffset(24)]
public Bool8 AddedByTestEngine;
}
///
///
/// C++:
/// imgui_internal.h:1529
///
struct ImGuiInputEvent
///
///
public unsafe partial struct ImGuiInputEventPtr(ImGuiInputEvent* ptr) : INullable
{
private ImGuiInputEvent* _ptr = ptr;
public ImGuiInputEvent* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiInputEventPtr(ImGuiInputEvent* ptr) => new(ptr);
public static implicit operator ImGuiInputEvent*(ImGuiInputEventPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1531
///
ImGuiInputEventType Type
///
///
public ref ImGuiInputEventType Type => ref Unsafe.AsRef(&_ptr->Type);
///
///
/// C++:
/// imgui_internal.h:1532
///
ImGuiInputSource Source
///
///
public ref ImGuiInputSource Source => ref Unsafe.AsRef(&_ptr->Source);
///
///
/// Unique, sequential increasing integer to identify an event (if you need to correlate them to other
/// data).
///
///
/// C++:
/// imgui_internal.h:1533
///
ImU32 EventId
///
///
public ref uint EventId => ref Unsafe.AsRef(&_ptr->EventId);
///
///
/// if Type == ImGuiInputEventType_MousePos
///
///
/// C++:
/// imgui_internal.h:1536
///
ImGuiInputEventMousePos MousePos
///
///
public ref ImGuiInputEventMousePos MousePos => ref Unsafe.AsRef(&_ptr->MousePos);
///
///
/// if Type == ImGuiInputEventType_MouseWheel
///
///
/// C++:
/// imgui_internal.h:1537
///
ImGuiInputEventMouseWheel MouseWheel
///
///
public ref ImGuiInputEventMouseWheel MouseWheel =>
ref Unsafe.AsRef(&_ptr->MouseWheel);
///
///
/// if Type == ImGuiInputEventType_MouseButton
///
///
/// C++:
/// imgui_internal.h:1538
///
ImGuiInputEventMouseButton MouseButton
///
///
public ref ImGuiInputEventMouseButton MouseButton =>
ref Unsafe.AsRef(&_ptr->MouseButton);
///
///
/// if Type == ImGuiInputEventType_MouseViewport
///
///
/// C++:
/// imgui_internal.h:1539
///
ImGuiInputEventMouseViewport MouseViewport
///
///
public ref ImGuiInputEventMouseViewport MouseViewport =>
ref Unsafe.AsRef(&_ptr->MouseViewport);
///
///
/// if Type == ImGuiInputEventType_Key
///
///
/// C++:
/// imgui_internal.h:1540
///
ImGuiInputEventKey Key
///
///
public ref ImGuiInputEventKey Key => ref Unsafe.AsRef(&_ptr->Key);
///
///
/// if Type == ImGuiInputEventType_Text
///
///
/// C++:
/// imgui_internal.h:1541
///
ImGuiInputEventText Text
///
///
public ref ImGuiInputEventText Text => ref Unsafe.AsRef(&_ptr->Text);
///
///
/// if Type == ImGuiInputEventType_Focus
///
///
/// C++:
/// imgui_internal.h:1542
///
ImGuiInputEventAppFocused AppFocused
///
///
public ref ImGuiInputEventAppFocused AppFocused =>
ref Unsafe.AsRef(&_ptr->AppFocused);
///
///
/// C++:
/// imgui_internal.h:1544
///
bool AddedByTestEngine
///
///
public ref bool AddedByTestEngine => ref Unsafe.AsRef(&_ptr->AddedByTestEngine);
}
}