//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for SetNextItem** functions
///
///
/// C++:
/// imgui_internal.h:171
///
struct ImGuiNextItemData
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 56)]
public partial struct ImGuiNextItemData
{
///
///
/// Called HasFlags instead of Flags to avoid mistaking this
///
///
/// C++:
/// imgui_internal.h:1340
///
ImGuiNextItemDataFlags HasFlags
///
///
[FieldOffset(0)]
public ImGuiNextItemDataFlags HasFlags;
///
///
/// Currently only tested/used for ImGuiItemFlags_AllowOverlap and ImGuiItemFlags_HasSelectionUserData.
///
///
/// C++:
/// imgui_internal.h:1341
///
ImGuiItemFlags ItemFlags
///
///
[FieldOffset(4)]
public ImGuiItemFlags ItemFlags;
///
///
/// Set by SetNextItemSelectionUserData()
///
///
/// C++:
/// imgui_internal.h:1344
///
ImGuiID FocusScopeId
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(8)]
public ImGuiID FocusScopeId;
///
///
/// Set by SetNextItemSelectionUserData() (note that NULL/0 is a valid value, we use -1 ==
/// ImGuiSelectionUserData_Invalid to mark invalid values)
///
///
/// C++:
/// imgui_internal.h:1345
///
ImGuiSelectionUserData SelectionUserData
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(16)]
public ulong SelectionUserData;
///
///
/// Set by SetNextItemWidth()
///
///
/// C++:
/// imgui_internal.h:1346
///
float Width
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(24)]
public float Width;
///
///
/// Set by SetNextItemShortcut()
///
///
/// C++:
/// imgui_internal.h:1347
///
ImGuiKeyChord Shortcut
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(28)]
public ImGuiKeyChord Shortcut;
///
///
/// Set by SetNextItemShortcut()
///
///
/// C++:
/// imgui_internal.h:1348
///
ImGuiInputFlags ShortcutFlags
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(32)]
public ImGuiInputFlags ShortcutFlags;
///
///
/// Set by SetNextItemOpen()
///
///
/// C++:
/// imgui_internal.h:1349
///
bool OpenVal
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(36)]
public Bool8 OpenVal;
///
///
/// Set by SetNextItemOpen()
///
///
/// C++:
/// imgui_internal.h:1350
///
ImU8 OpenCond
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(37)]
public byte OpenCond;
///
///
/// Not exposed yet, for ImGuiInputTextFlags_ParseEmptyAsRefVal
///
///
/// C++:
/// imgui_internal.h:1351
///
ImGuiDataTypeStorage RefVal
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(38)]
public ImGuiDataTypeStorage RefVal;
///
///
/// Set by SetNextItemStorageID()
///
///
/// C++:
/// imgui_internal.h:1352
///
ImGuiID StorageId
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
[FieldOffset(48)]
public ImGuiID StorageId;
}
///
///
/// Storage for SetNextItem** functions
///
///
/// C++:
/// imgui_internal.h:171
///
struct ImGuiNextItemData
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiNextItemDataPtr(ImGuiNextItemData* ptr) : INullable
{
private ImGuiNextItemData* _ptr = ptr;
public ImGuiNextItemData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiNextItemDataPtr(ImGuiNextItemData* ptr) => new(ptr);
public static implicit operator ImGuiNextItemData*(ImGuiNextItemDataPtr wrapper) => wrapper.Ptr;
///
///
/// Called HasFlags instead of Flags to avoid mistaking this
///
///
/// C++:
/// imgui_internal.h:1340
///
ImGuiNextItemDataFlags HasFlags
///
///
public ref ImGuiNextItemDataFlags HasFlags => ref Unsafe.AsRef(&_ptr->HasFlags);
///
///
/// Currently only tested/used for ImGuiItemFlags_AllowOverlap and ImGuiItemFlags_HasSelectionUserData.
///
///
/// C++:
/// imgui_internal.h:1341
///
ImGuiItemFlags ItemFlags
///
///
public ref ImGuiItemFlags ItemFlags => ref Unsafe.AsRef(&_ptr->ItemFlags);
///
///
/// Set by SetNextItemSelectionUserData()
///
///
/// C++:
/// imgui_internal.h:1344
///
ImGuiID FocusScopeId
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref ImGuiID FocusScopeId => ref Unsafe.AsRef(&_ptr->FocusScopeId);
///
///
/// Set by SetNextItemSelectionUserData() (note that NULL/0 is a valid value, we use -1 ==
/// ImGuiSelectionUserData_Invalid to mark invalid values)
///
///
/// C++:
/// imgui_internal.h:1345
///
ImGuiSelectionUserData SelectionUserData
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref ulong SelectionUserData => ref Unsafe.AsRef(&_ptr->SelectionUserData);
///
///
/// Set by SetNextItemWidth()
///
///
/// C++:
/// imgui_internal.h:1346
///
float Width
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref float Width => ref Unsafe.AsRef(&_ptr->Width);
///
///
/// Set by SetNextItemShortcut()
///
///
/// C++:
/// imgui_internal.h:1347
///
ImGuiKeyChord Shortcut
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref ImGuiKeyChord Shortcut => ref Unsafe.AsRef(&_ptr->Shortcut);
///
///
/// Set by SetNextItemShortcut()
///
///
/// C++:
/// imgui_internal.h:1348
///
ImGuiInputFlags ShortcutFlags
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref ImGuiInputFlags ShortcutFlags => ref Unsafe.AsRef(&_ptr->ShortcutFlags);
///
///
/// Set by SetNextItemOpen()
///
///
/// C++:
/// imgui_internal.h:1349
///
bool OpenVal
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref bool OpenVal => ref Unsafe.AsRef(&_ptr->OpenVal);
///
///
/// Set by SetNextItemOpen()
///
///
/// C++:
/// imgui_internal.h:1350
///
ImU8 OpenCond
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref byte OpenCond => ref Unsafe.AsRef(&_ptr->OpenCond);
///
///
/// Not exposed yet, for ImGuiInputTextFlags_ParseEmptyAsRefVal
///
///
/// C++:
/// imgui_internal.h:1351
///
ImGuiDataTypeStorage RefVal
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref ImGuiDataTypeStorage RefVal => ref Unsafe.AsRef(&_ptr->RefVal);
///
///
/// Set by SetNextItemStorageID()
///
///
/// C++:
/// imgui_internal.h:1352
///
ImGuiID StorageId
///
///
///
///
/// Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem().
/// Always rely on HasFlags.
///
///
public ref ImGuiID StorageId => ref Unsafe.AsRef(&_ptr->StorageId);
}
}