//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for a tab item (within a tab bar)
///
///
/// C++:
/// imgui_internal.h:179
///
struct ImGuiTabItem
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 56)]
public partial struct ImGuiTabItem
{
///
///
/// C++:
/// imgui_internal.h:2964
///
ImGuiID ID
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(0)]
public ImGuiID ID;
///
///
/// C++:
/// imgui_internal.h:2965
///
ImGuiTabItemFlags Flags
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(4)]
public ImGuiTabItemFlags Flags;
///
///
/// When TabItem is part of a DockNode's TabBar, we hold on to a window.
///
///
/// C++:
/// imgui_internal.h:2966
///
ImGuiWindow* Window
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(8)]
public ImGuiWindowPtr Window;
///
///
/// C++:
/// imgui_internal.h:2967
///
int LastFrameVisible
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(16)]
public int LastFrameVisible;
///
///
/// This allows us to infer an ordered list of the last activated tabs with little maintenance
///
///
/// C++:
/// imgui_internal.h:2968
///
int LastFrameSelected
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(20)]
public int LastFrameSelected;
///
///
/// Position relative to beginning of tab
///
///
/// C++:
/// imgui_internal.h:2969
///
float Offset
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(24)]
public float Offset;
///
///
/// Width currently displayed
///
///
/// C++:
/// imgui_internal.h:2970
///
float Width
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(28)]
public float Width;
///
///
/// Width of label + padding, stored during BeginTabItem() call (misnamed as "Content" would normally imply
/// width of label only)
///
///
/// C++:
/// imgui_internal.h:2971
///
float ContentWidth
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(32)]
public float ContentWidth;
///
///
/// Width optionally requested by caller, -1.0f is unused
///
///
/// C++:
/// imgui_internal.h:2972
///
float RequestedWidth
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(36)]
public float RequestedWidth;
///
///
/// When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames
///
///
/// C++:
/// imgui_internal.h:2973
///
ImS32 NameOffset
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(40)]
public int NameOffset;
///
///
/// BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable
///
///
/// C++:
/// imgui_internal.h:2974
///
ImS16 BeginOrder
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(44)]
public short BeginOrder;
///
///
/// Index only used during TabBarLayout(). Tabs gets reordered so 'Tabs[n].IndexDuringLayout == n' but may
/// mismatch during additions.
///
///
/// C++:
/// imgui_internal.h:2975
///
ImS16 IndexDuringLayout
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(46)]
public short IndexDuringLayout;
///
///
/// Marked as closed by SetTabItemClosed()
///
///
/// C++:
/// imgui_internal.h:2976
///
bool WantClose
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
[FieldOffset(48)]
public Bool8 WantClose;
}
///
///
/// Storage for a tab item (within a tab bar)
///
///
/// C++:
/// imgui_internal.h:179
///
struct ImGuiTabItem
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiTabItemPtr(ImGuiTabItem* ptr) : INullable
{
private ImGuiTabItem* _ptr = ptr;
public ImGuiTabItem* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTabItemPtr(ImGuiTabItem* ptr) => new(ptr);
public static implicit operator ImGuiTabItem*(ImGuiTabItemPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:2964
///
ImGuiID ID
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// C++:
/// imgui_internal.h:2965
///
ImGuiTabItemFlags Flags
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref ImGuiTabItemFlags Flags => ref Unsafe.AsRef(&_ptr->Flags);
///
///
/// When TabItem is part of a DockNode's TabBar, we hold on to a window.
///
///
/// C++:
/// imgui_internal.h:2966
///
ImGuiWindow* Window
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// C++:
/// imgui_internal.h:2967
///
int LastFrameVisible
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref int LastFrameVisible => ref Unsafe.AsRef(&_ptr->LastFrameVisible);
///
///
/// This allows us to infer an ordered list of the last activated tabs with little maintenance
///
///
/// C++:
/// imgui_internal.h:2968
///
int LastFrameSelected
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref int LastFrameSelected => ref Unsafe.AsRef(&_ptr->LastFrameSelected);
///
///
/// Position relative to beginning of tab
///
///
/// C++:
/// imgui_internal.h:2969
///
float Offset
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref float Offset => ref Unsafe.AsRef(&_ptr->Offset);
///
///
/// Width currently displayed
///
///
/// C++:
/// imgui_internal.h:2970
///
float Width
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref float Width => ref Unsafe.AsRef(&_ptr->Width);
///
///
/// Width of label + padding, stored during BeginTabItem() call (misnamed as "Content" would normally imply
/// width of label only)
///
///
/// C++:
/// imgui_internal.h:2971
///
float ContentWidth
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref float ContentWidth => ref Unsafe.AsRef(&_ptr->ContentWidth);
///
///
/// Width optionally requested by caller, -1.0f is unused
///
///
/// C++:
/// imgui_internal.h:2972
///
float RequestedWidth
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref float RequestedWidth => ref Unsafe.AsRef(&_ptr->RequestedWidth);
///
///
/// When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames
///
///
/// C++:
/// imgui_internal.h:2973
///
ImS32 NameOffset
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref int NameOffset => ref Unsafe.AsRef(&_ptr->NameOffset);
///
///
/// BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable
///
///
/// C++:
/// imgui_internal.h:2974
///
ImS16 BeginOrder
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref short BeginOrder => ref Unsafe.AsRef(&_ptr->BeginOrder);
///
///
/// Index only used during TabBarLayout(). Tabs gets reordered so 'Tabs[n].IndexDuringLayout == n' but may
/// mismatch during additions.
///
///
/// C++:
/// imgui_internal.h:2975
///
ImS16 IndexDuringLayout
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref short IndexDuringLayout => ref Unsafe.AsRef(&_ptr->IndexDuringLayout);
///
///
/// Marked as closed by SetTabItemClosed()
///
///
/// C++:
/// imgui_internal.h:2976
///
bool WantClose
///
///
///
///
/// Storage for one active tab item (sizeof() 48 bytes)
///
///
public ref bool WantClose => ref Unsafe.AsRef(&_ptr->WantClose);
}
}