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