//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for current popup stack
///
///
/// C++:
/// imgui_internal.h:174
///
struct ImGuiPopupData
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 56)]
public partial struct ImGuiPopupData
{
///
///
/// Set on OpenPopup()
///
///
/// C++:
/// imgui_internal.h:1456
///
ImGuiID PopupId
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(0)]
public ImGuiID PopupId;
///
///
/// Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup()
///
///
/// C++:
/// imgui_internal.h:1457
///
ImGuiWindow* Window
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(8)]
public ImGuiWindowPtr Window;
///
///
/// Set on OpenPopup(), a NavWindow that will be restored on popup close
///
///
/// C++:
/// imgui_internal.h:1458
///
ImGuiWindow* RestoreNavWindow
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(16)]
public ImGuiWindowPtr RestoreNavWindow;
///
///
/// Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which
/// is not part of an enum, but serves well-enough as "not any of layers" value
///
///
/// C++:
/// imgui_internal.h:1459
///
int ParentNavLayer
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(24)]
public int ParentNavLayer;
///
///
/// Set on OpenPopup()
///
///
/// C++:
/// imgui_internal.h:1460
///
int OpenFrameCount
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(28)]
public int OpenFrameCount;
///
///
/// Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu
/// bar vs loose menu items)
///
///
/// C++:
/// imgui_internal.h:1461
///
ImGuiID OpenParentId
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(32)]
public ImGuiID OpenParentId;
///
///
/// Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse)
///
///
/// C++:
/// imgui_internal.h:1462
///
ImVec2 OpenPopupPos
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(36)]
public float2 OpenPopupPos;
///
///
/// Set on OpenPopup(), copy of mouse position at the time of opening popup
///
///
/// C++:
/// imgui_internal.h:1463
///
ImVec2 OpenMousePos
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
[FieldOffset(44)]
public float2 OpenMousePos;
}
///
///
/// Storage for current popup stack
///
///
/// C++:
/// imgui_internal.h:174
///
struct ImGuiPopupData
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiPopupDataPtr(ImGuiPopupData* ptr) : INullable
{
private ImGuiPopupData* _ptr = ptr;
public ImGuiPopupData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiPopupDataPtr(ImGuiPopupData* ptr) => new(ptr);
public static implicit operator ImGuiPopupData*(ImGuiPopupDataPtr wrapper) => wrapper.Ptr;
///
///
/// Set on OpenPopup()
///
///
/// C++:
/// imgui_internal.h:1456
///
ImGuiID PopupId
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref ImGuiID PopupId => ref Unsafe.AsRef(&_ptr->PopupId);
///
///
/// Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup()
///
///
/// C++:
/// imgui_internal.h:1457
///
ImGuiWindow* Window
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// Set on OpenPopup(), a NavWindow that will be restored on popup close
///
///
/// C++:
/// imgui_internal.h:1458
///
ImGuiWindow* RestoreNavWindow
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref ImGuiWindowPtr RestoreNavWindow => ref Unsafe.AsRef(&_ptr->RestoreNavWindow);
///
///
/// Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which
/// is not part of an enum, but serves well-enough as "not any of layers" value
///
///
/// C++:
/// imgui_internal.h:1459
///
int ParentNavLayer
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref int ParentNavLayer => ref Unsafe.AsRef(&_ptr->ParentNavLayer);
///
///
/// Set on OpenPopup()
///
///
/// C++:
/// imgui_internal.h:1460
///
int OpenFrameCount
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref int OpenFrameCount => ref Unsafe.AsRef(&_ptr->OpenFrameCount);
///
///
/// Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu
/// bar vs loose menu items)
///
///
/// C++:
/// imgui_internal.h:1461
///
ImGuiID OpenParentId
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref ImGuiID OpenParentId => ref Unsafe.AsRef(&_ptr->OpenParentId);
///
///
/// Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse)
///
///
/// C++:
/// imgui_internal.h:1462
///
ImVec2 OpenPopupPos
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref float2 OpenPopupPos => ref Unsafe.AsRef(&_ptr->OpenPopupPos);
///
///
/// Set on OpenPopup(), copy of mouse position at the time of opening popup
///
///
/// C++:
/// imgui_internal.h:1463
///
ImVec2 OpenMousePos
///
///
///
///
/// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
///
///
public ref float2 OpenMousePos => ref Unsafe.AsRef(&_ptr->OpenMousePos);
}
}