//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Status storage for last submitted items
///
///
/// C++:
/// imgui_internal.h:163
///
struct ImGuiLastItemData
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 80)]
public partial struct ImGuiLastItemData
{
///
///
/// C++:
/// imgui_internal.h:1361
///
ImGuiID ID
///
///
///
///
/// Status storage for the last submitted item
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// See ImGuiItemFlags_ (called 'InFlags' before v1.91.4).
///
///
/// C++:
/// imgui_internal.h:1362
///
ImGuiItemFlags ItemFlags
///
///
///
///
/// Status storage for the last submitted item
///
///
[FieldOffset(4)]
public ImGuiItemFlags ItemFlags;
///
///
/// See ImGuiItemStatusFlags_
///
///
/// C++:
/// imgui_internal.h:1363
///
ImGuiItemStatusFlags StatusFlags
///
///
///
///
/// Status storage for the last submitted item
///
///
[FieldOffset(8)]
public ImGuiItemStatusFlags StatusFlags;
///
///
/// Full rectangle
///
///
/// C++:
/// imgui_internal.h:1364
///
ImRect Rect
///
///
///
///
/// Status storage for the last submitted item
///
///
[FieldOffset(12)]
public floatRect Rect;
///
///
/// Navigation scoring rectangle (not displayed)
///
///
/// C++:
/// imgui_internal.h:1365
///
ImRect NavRect
///
///
///
///
/// Status storage for the last submitted item
///
///
[FieldOffset(28)]
public floatRect NavRect;
///
///
/// Display rectangle. ONLY VALID IF (StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) is set.
///
///
/// C++:
/// imgui_internal.h:1367
///
ImRect DisplayRect
///
///
///
///
/// Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags
/// are set.
///
///
[FieldOffset(44)]
public floatRect DisplayRect;
///
///
/// Clip rectangle at the time of submitting item. ONLY VALID IF (StatusFlags &
/// ImGuiItemStatusFlags_HasClipRect) is set..
///
///
/// C++:
/// imgui_internal.h:1368
///
ImRect ClipRect
///
///
///
///
/// Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags
/// are set.
///
///
[FieldOffset(60)]
public floatRect ClipRect;
///
///
/// Shortcut at the time of submitting item. ONLY VALID IF (StatusFlags &
/// ImGuiItemStatusFlags_HasShortcut) is set..
///
///
/// C++:
/// imgui_internal.h:1369
///
ImGuiKeyChord Shortcut
///
///
///
///
/// Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags
/// are set.
///
///
[FieldOffset(76)]
public ImGuiKeyChord Shortcut;
}
///
///
/// Status storage for last submitted items
///
///
/// C++:
/// imgui_internal.h:163
///
struct ImGuiLastItemData
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiLastItemDataPtr(ImGuiLastItemData* ptr) : INullable
{
private ImGuiLastItemData* _ptr = ptr;
public ImGuiLastItemData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiLastItemDataPtr(ImGuiLastItemData* ptr) => new(ptr);
public static implicit operator ImGuiLastItemData*(ImGuiLastItemDataPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:1361
///
ImGuiID ID
///
///
///
///
/// Status storage for the last submitted item
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// See ImGuiItemFlags_ (called 'InFlags' before v1.91.4).
///
///
/// C++:
/// imgui_internal.h:1362
///
ImGuiItemFlags ItemFlags
///
///
///
///
/// Status storage for the last submitted item
///
///
public ref ImGuiItemFlags ItemFlags => ref Unsafe.AsRef(&_ptr->ItemFlags);
///
///
/// See ImGuiItemStatusFlags_
///
///
/// C++:
/// imgui_internal.h:1363
///
ImGuiItemStatusFlags StatusFlags
///
///
///
///
/// Status storage for the last submitted item
///
///
public ref ImGuiItemStatusFlags StatusFlags => ref Unsafe.AsRef(&_ptr->StatusFlags);
///
///
/// Full rectangle
///
///
/// C++:
/// imgui_internal.h:1364
///
ImRect Rect
///
///
///
///
/// Status storage for the last submitted item
///
///
public ref floatRect Rect => ref Unsafe.AsRef(&_ptr->Rect);
///
///
/// Navigation scoring rectangle (not displayed)
///
///
/// C++:
/// imgui_internal.h:1365
///
ImRect NavRect
///
///
///
///
/// Status storage for the last submitted item
///
///
public ref floatRect NavRect => ref Unsafe.AsRef(&_ptr->NavRect);
///
///
/// Display rectangle. ONLY VALID IF (StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) is set.
///
///
/// C++:
/// imgui_internal.h:1367
///
ImRect DisplayRect
///
///
///
///
/// Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags
/// are set.
///
///
public ref floatRect DisplayRect => ref Unsafe.AsRef(&_ptr->DisplayRect);
///
///
/// Clip rectangle at the time of submitting item. ONLY VALID IF (StatusFlags &
/// ImGuiItemStatusFlags_HasClipRect) is set..
///
///
/// C++:
/// imgui_internal.h:1368
///
ImRect ClipRect
///
///
///
///
/// Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags
/// are set.
///
///
public ref floatRect ClipRect => ref Unsafe.AsRef(&_ptr->ClipRect);
///
///
/// Shortcut at the time of submitting item. ONLY VALID IF (StatusFlags &
/// ImGuiItemStatusFlags_HasShortcut) is set..
///
///
/// C++:
/// imgui_internal.h:1369
///
ImGuiKeyChord Shortcut
///
///
///
///
/// Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags
/// are set.
///
///
public ref ImGuiKeyChord Shortcut => ref Unsafe.AsRef(&_ptr->Shortcut);
}
}