//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// C++:
/// imgui_internal.h:1583
///
struct ImGuiKeyOwnerData
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
[StructLayout(LayoutKind.Explicit, Size = 12)]
public partial struct ImGuiKeyOwnerData
{
///
///
/// C++:
/// imgui_internal.h:1585
///
ImGuiID OwnerCurr
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
[FieldOffset(0)]
public ImGuiID OwnerCurr;
///
///
/// C++:
/// imgui_internal.h:1586
///
ImGuiID OwnerNext
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
[FieldOffset(4)]
public ImGuiID OwnerNext;
///
///
/// Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame.
///
///
/// C++:
/// imgui_internal.h:1587
///
bool LockThisFrame
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
[FieldOffset(8)]
public Bool8 LockThisFrame;
///
///
/// Reading this key requires explicit owner id (until key is released). Set by
/// ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well.
///
///
/// C++:
/// imgui_internal.h:1588
///
bool LockUntilRelease
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
[FieldOffset(9)]
public Bool8 LockUntilRelease;
}
///
///
/// C++:
/// imgui_internal.h:1583
///
struct ImGuiKeyOwnerData
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
public unsafe partial struct ImGuiKeyOwnerDataPtr(ImGuiKeyOwnerData* ptr) : INullable
{
private ImGuiKeyOwnerData* _ptr = ptr;
public ImGuiKeyOwnerData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiKeyOwnerDataPtr(ImGuiKeyOwnerData* ptr) => new(ptr);
public static implicit operator ImGuiKeyOwnerData*(ImGuiKeyOwnerDataPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1585
///
ImGuiID OwnerCurr
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
public ref ImGuiID OwnerCurr => ref Unsafe.AsRef(&_ptr->OwnerCurr);
///
///
/// C++:
/// imgui_internal.h:1586
///
ImGuiID OwnerNext
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
public ref ImGuiID OwnerNext => ref Unsafe.AsRef(&_ptr->OwnerNext);
///
///
/// Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame.
///
///
/// C++:
/// imgui_internal.h:1587
///
bool LockThisFrame
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
public ref bool LockThisFrame => ref Unsafe.AsRef(&_ptr->LockThisFrame);
///
///
/// Reading this key requires explicit owner id (until key is released). Set by
/// ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well.
///
///
/// C++:
/// imgui_internal.h:1588
///
bool LockUntilRelease
///
///
///
///
/// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
/// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
///
///
public ref bool LockUntilRelease => ref Unsafe.AsRef(&_ptr->LockUntilRelease);
}
}