//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Result of a keyboard/gamepad directional navigation move query result
///
///
/// C++:
/// imgui_internal.h:168
///
struct ImGuiNavItemData
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 56)]
public partial struct ImGuiNavItemData
{
///
///
/// Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window)
///
///
/// C++:
/// imgui_internal.h:1741
///
ImGuiWindow* Window
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(0)]
public ImGuiWindowPtr Window;
///
///
/// Init,Move // Best candidate item ID
///
///
/// C++:
/// imgui_internal.h:1742
///
ImGuiID ID
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(8)]
public ImGuiID ID;
///
///
/// Init,Move // Best candidate focus scope ID
///
///
/// C++:
/// imgui_internal.h:1743
///
ImGuiID FocusScopeId
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(12)]
public ImGuiID FocusScopeId;
///
///
/// Init,Move // Best candidate bounding box in window relative space
///
///
/// C++:
/// imgui_internal.h:1744
///
ImRect RectRel
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(16)]
public floatRect RectRel;
///
///
/// ????,Move // Best candidate item flags
///
///
/// C++:
/// imgui_internal.h:1745
///
ImGuiItemFlags ItemFlags
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(32)]
public ImGuiItemFlags ItemFlags;
///
///
/// Move // Best candidate box distance to current NavId
///
///
/// C++:
/// imgui_internal.h:1746
///
float DistBox
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(36)]
public float DistBox;
///
///
/// Move // Best candidate center distance to current NavId
///
///
/// C++:
/// imgui_internal.h:1747
///
float DistCenter
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(40)]
public float DistCenter;
///
///
/// Move // Best candidate axial distance to current NavId
///
///
/// C++:
/// imgui_internal.h:1748
///
float DistAxial
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(44)]
public float DistAxial;
///
///
/// I+Mov // Best candidate SetNextItemSelectionUserData() value. Valid if (ItemFlags &
/// ImGuiItemFlags_HasSelectionUserData)
///
///
/// C++:
/// imgui_internal.h:1749
///
ImGuiSelectionUserData SelectionUserData
///
///
///
///
/// Storage for navigation query/results
///
///
[FieldOffset(48)]
public ulong SelectionUserData;
}
///
///
/// Result of a keyboard/gamepad directional navigation move query result
///
///
/// C++:
/// imgui_internal.h:168
///
struct ImGuiNavItemData
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiNavItemDataPtr(ImGuiNavItemData* ptr) : INullable
{
private ImGuiNavItemData* _ptr = ptr;
public ImGuiNavItemData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiNavItemDataPtr(ImGuiNavItemData* ptr) => new(ptr);
public static implicit operator ImGuiNavItemData*(ImGuiNavItemDataPtr wrapper) => wrapper.Ptr;
///
///
/// Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window)
///
///
/// C++:
/// imgui_internal.h:1741
///
ImGuiWindow* Window
///
///
///
///
/// Storage for navigation query/results
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// Init,Move // Best candidate item ID
///
///
/// C++:
/// imgui_internal.h:1742
///
ImGuiID ID
///
///
///
///
/// Storage for navigation query/results
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// Init,Move // Best candidate focus scope ID
///
///
/// C++:
/// imgui_internal.h:1743
///
ImGuiID FocusScopeId
///
///
///
///
/// Storage for navigation query/results
///
///
public ref ImGuiID FocusScopeId => ref Unsafe.AsRef(&_ptr->FocusScopeId);
///
///
/// Init,Move // Best candidate bounding box in window relative space
///
///
/// C++:
/// imgui_internal.h:1744
///
ImRect RectRel
///
///
///
///
/// Storage for navigation query/results
///
///
public ref floatRect RectRel => ref Unsafe.AsRef(&_ptr->RectRel);
///
///
/// ????,Move // Best candidate item flags
///
///
/// C++:
/// imgui_internal.h:1745
///
ImGuiItemFlags ItemFlags
///
///
///
///
/// Storage for navigation query/results
///
///
public ref ImGuiItemFlags ItemFlags => ref Unsafe.AsRef(&_ptr->ItemFlags);
///
///
/// Move // Best candidate box distance to current NavId
///
///
/// C++:
/// imgui_internal.h:1746
///
float DistBox
///
///
///
///
/// Storage for navigation query/results
///
///
public ref float DistBox => ref Unsafe.AsRef(&_ptr->DistBox);
///
///
/// Move // Best candidate center distance to current NavId
///
///
/// C++:
/// imgui_internal.h:1747
///
float DistCenter
///
///
///
///
/// Storage for navigation query/results
///
///
public ref float DistCenter => ref Unsafe.AsRef(&_ptr->DistCenter);
///
///
/// Move // Best candidate axial distance to current NavId
///
///
/// C++:
/// imgui_internal.h:1748
///
float DistAxial
///
///
///
///
/// Storage for navigation query/results
///
///
public ref float DistAxial => ref Unsafe.AsRef(&_ptr->DistAxial);
///
///
/// I+Mov // Best candidate SetNextItemSelectionUserData() value. Valid if (ItemFlags &
/// ImGuiItemFlags_HasSelectionUserData)
///
///
/// C++:
/// imgui_internal.h:1749
///
ImGuiSelectionUserData SelectionUserData
///
///
///
///
/// Storage for navigation query/results
///
///
public ref ulong SelectionUserData => ref Unsafe.AsRef(&_ptr->SelectionUserData);
}
}