//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi.Internal
{
///
///
/// Storage for a tab bar
///
///
/// C++:
/// imgui_internal.h:178
///
struct ImGuiTabBar
///
///
///
///
/// ImGui
///
///
[StructLayout(LayoutKind.Explicit, Size = 176)]
public partial struct ImGuiTabBar
{
///
///
/// C++:
/// imgui_internal.h:2984
///
ImGuiWindow* Window
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(0)]
public ImGuiWindowPtr Window;
///
///
/// C++:
/// imgui_internal.h:2985
///
ImVector<ImGuiTabItem> Tabs
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(8)]
public ImVector Tabs;
///
///
/// C++:
/// imgui_internal.h:2986
///
ImGuiTabBarFlags Flags
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(24)]
public ImGuiTabBarFlags Flags;
///
///
/// Zero for tab-bars used by docking
///
///
/// C++:
/// imgui_internal.h:2987
///
ImGuiID ID
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(28)]
public ImGuiID ID;
///
///
/// Selected tab/window
///
///
/// C++:
/// imgui_internal.h:2988
///
ImGuiID SelectedTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(32)]
public ImGuiID SelectedTabId;
///
///
/// Next selected tab/window. Will also trigger a scrolling animation
///
///
/// C++:
/// imgui_internal.h:2989
///
ImGuiID NextSelectedTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(36)]
public ImGuiID NextSelectedTabId;
///
///
/// Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview)
///
///
/// C++:
/// imgui_internal.h:2990
///
ImGuiID VisibleTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(40)]
public ImGuiID VisibleTabId;
///
///
/// C++:
/// imgui_internal.h:2991
///
int CurrFrameVisible
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(44)]
public int CurrFrameVisible;
///
///
/// C++:
/// imgui_internal.h:2992
///
int PrevFrameVisible
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(48)]
public int PrevFrameVisible;
///
///
/// C++:
/// imgui_internal.h:2993
///
ImRect BarRect
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(52)]
public floatRect BarRect;
///
///
/// Backup of previous width. When width change we enforce keep horizontal scroll on focused tab.
///
///
/// C++:
/// imgui_internal.h:2994
///
float BarRectPrevWidth
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(68)]
public float BarRectPrevWidth;
///
///
/// C++:
/// imgui_internal.h:2995
///
float CurrTabsContentsHeight
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(72)]
public float CurrTabsContentsHeight;
///
///
/// Record the height of contents submitted below the tab bar
///
///
/// C++:
/// imgui_internal.h:2996
///
float PrevTabsContentsHeight
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(76)]
public float PrevTabsContentsHeight;
///
///
/// Actual width of all tabs (locked during layout)
///
///
/// C++:
/// imgui_internal.h:2997
///
float WidthAllTabs
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(80)]
public float WidthAllTabs;
///
///
/// Ideal width if all tabs were visible and not clipped
///
///
/// C++:
/// imgui_internal.h:2998
///
float WidthAllTabsIdeal
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(84)]
public float WidthAllTabsIdeal;
///
///
/// C++:
/// imgui_internal.h:2999
///
float ScrollingAnim
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(88)]
public float ScrollingAnim;
///
///
/// C++:
/// imgui_internal.h:3000
///
float ScrollingTarget
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(92)]
public float ScrollingTarget;
///
///
/// C++:
/// imgui_internal.h:3001
///
float ScrollingTargetDistToVisibility
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(96)]
public float ScrollingTargetDistToVisibility;
///
///
/// C++:
/// imgui_internal.h:3002
///
float ScrollingSpeed
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(100)]
public float ScrollingSpeed;
///
///
/// C++:
/// imgui_internal.h:3003
///
float ScrollingRectMinX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(104)]
public float ScrollingRectMinX;
///
///
/// C++:
/// imgui_internal.h:3004
///
float ScrollingRectMaxX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(108)]
public float ScrollingRectMaxX;
///
///
/// C++:
/// imgui_internal.h:3005
///
float SeparatorMinX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(112)]
public float SeparatorMinX;
///
///
/// C++:
/// imgui_internal.h:3006
///
float SeparatorMaxX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(116)]
public float SeparatorMaxX;
///
///
/// C++:
/// imgui_internal.h:3007
///
ImGuiID ReorderRequestTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(120)]
public ImGuiID ReorderRequestTabId;
///
///
/// C++:
/// imgui_internal.h:3008
///
ImS16 ReorderRequestOffset
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(124)]
public short ReorderRequestOffset;
///
///
/// C++:
/// imgui_internal.h:3009
///
ImS8 BeginCount
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(126)]
public sbyte BeginCount;
///
///
/// C++:
/// imgui_internal.h:3010
///
bool WantLayout
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(127)]
public Bool8 WantLayout;
///
///
/// C++:
/// imgui_internal.h:3011
///
bool VisibleTabWasSubmitted
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(128)]
public Bool8 VisibleTabWasSubmitted;
///
///
/// Set to true when a new tab item or button has been added to the tab bar during last frame
///
///
/// C++:
/// imgui_internal.h:3012
///
bool TabsAddedNew
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(129)]
public Bool8 TabsAddedNew;
///
///
/// C++:
/// imgui_internal.h:3013
///
bool ScrollButtonEnabled
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(130)]
public Bool8 ScrollButtonEnabled;
///
///
/// Number of tabs submitted this frame.
///
///
/// C++:
/// imgui_internal.h:3014
///
ImS16 TabsActiveCount
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(132)]
public short TabsActiveCount;
///
///
/// Index of last BeginTabItem() tab for use by EndTabItem()
///
///
/// C++:
/// imgui_internal.h:3015
///
ImS16 LastTabItemIdx
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(134)]
public short LastTabItemIdx;
///
///
/// C++:
/// imgui_internal.h:3016
///
float ItemSpacingY
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(136)]
public float ItemSpacingY;
///
///
/// style.FramePadding locked at the time of BeginTabBar()
///
///
/// C++:
/// imgui_internal.h:3017
///
ImVec2 FramePadding
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(140)]
public float2 FramePadding;
///
///
/// C++:
/// imgui_internal.h:3018
///
ImVec2 BackupCursorPos
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(148)]
public float2 BackupCursorPos;
///
///
/// For non-docking tab bar we re-append names in a contiguous buffer.
///
///
/// C++:
/// imgui_internal.h:3019
///
ImGuiTextBuffer TabsNames
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
[FieldOffset(160)]
public ImGuiTextBuffer TabsNames;
}
///
///
/// Storage for a tab bar
///
///
/// C++:
/// imgui_internal.h:178
///
struct ImGuiTabBar
///
///
///
///
/// ImGui
///
///
public unsafe partial struct ImGuiTabBarPtr(ImGuiTabBar* ptr) : INullable
{
private ImGuiTabBar* _ptr = ptr;
public ImGuiTabBar* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiTabBarPtr(ImGuiTabBar* ptr) => new(ptr);
public static implicit operator ImGuiTabBar*(ImGuiTabBarPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui_internal.h:2984
///
ImGuiWindow* Window
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiWindowPtr Window => ref Unsafe.AsRef(&_ptr->Window);
///
///
/// C++:
/// imgui_internal.h:2985
///
ImVector<ImGuiTabItem> Tabs
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImVector Tabs => ref Unsafe.AsRef>(&_ptr->Tabs);
///
///
/// C++:
/// imgui_internal.h:2986
///
ImGuiTabBarFlags Flags
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiTabBarFlags Flags => ref Unsafe.AsRef(&_ptr->Flags);
///
///
/// Zero for tab-bars used by docking
///
///
/// C++:
/// imgui_internal.h:2987
///
ImGuiID ID
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiID ID => ref Unsafe.AsRef(&_ptr->ID);
///
///
/// Selected tab/window
///
///
/// C++:
/// imgui_internal.h:2988
///
ImGuiID SelectedTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiID SelectedTabId => ref Unsafe.AsRef(&_ptr->SelectedTabId);
///
///
/// Next selected tab/window. Will also trigger a scrolling animation
///
///
/// C++:
/// imgui_internal.h:2989
///
ImGuiID NextSelectedTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiID NextSelectedTabId => ref Unsafe.AsRef(&_ptr->NextSelectedTabId);
///
///
/// Can occasionally be != SelectedTabId (e.g. when previewing contents for CTRL+TAB preview)
///
///
/// C++:
/// imgui_internal.h:2990
///
ImGuiID VisibleTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiID VisibleTabId => ref Unsafe.AsRef(&_ptr->VisibleTabId);
///
///
/// C++:
/// imgui_internal.h:2991
///
int CurrFrameVisible
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref int CurrFrameVisible => ref Unsafe.AsRef(&_ptr->CurrFrameVisible);
///
///
/// C++:
/// imgui_internal.h:2992
///
int PrevFrameVisible
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref int PrevFrameVisible => ref Unsafe.AsRef(&_ptr->PrevFrameVisible);
///
///
/// C++:
/// imgui_internal.h:2993
///
ImRect BarRect
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref floatRect BarRect => ref Unsafe.AsRef(&_ptr->BarRect);
///
///
/// Backup of previous width. When width change we enforce keep horizontal scroll on focused tab.
///
///
/// C++:
/// imgui_internal.h:2994
///
float BarRectPrevWidth
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float BarRectPrevWidth => ref Unsafe.AsRef(&_ptr->BarRectPrevWidth);
///
///
/// C++:
/// imgui_internal.h:2995
///
float CurrTabsContentsHeight
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float CurrTabsContentsHeight => ref Unsafe.AsRef(&_ptr->CurrTabsContentsHeight);
///
///
/// Record the height of contents submitted below the tab bar
///
///
/// C++:
/// imgui_internal.h:2996
///
float PrevTabsContentsHeight
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float PrevTabsContentsHeight => ref Unsafe.AsRef(&_ptr->PrevTabsContentsHeight);
///
///
/// Actual width of all tabs (locked during layout)
///
///
/// C++:
/// imgui_internal.h:2997
///
float WidthAllTabs
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float WidthAllTabs => ref Unsafe.AsRef(&_ptr->WidthAllTabs);
///
///
/// Ideal width if all tabs were visible and not clipped
///
///
/// C++:
/// imgui_internal.h:2998
///
float WidthAllTabsIdeal
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float WidthAllTabsIdeal => ref Unsafe.AsRef(&_ptr->WidthAllTabsIdeal);
///
///
/// C++:
/// imgui_internal.h:2999
///
float ScrollingAnim
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ScrollingAnim => ref Unsafe.AsRef(&_ptr->ScrollingAnim);
///
///
/// C++:
/// imgui_internal.h:3000
///
float ScrollingTarget
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ScrollingTarget => ref Unsafe.AsRef(&_ptr->ScrollingTarget);
///
///
/// C++:
/// imgui_internal.h:3001
///
float ScrollingTargetDistToVisibility
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ScrollingTargetDistToVisibility =>
ref Unsafe.AsRef(&_ptr->ScrollingTargetDistToVisibility);
///
///
/// C++:
/// imgui_internal.h:3002
///
float ScrollingSpeed
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ScrollingSpeed => ref Unsafe.AsRef(&_ptr->ScrollingSpeed);
///
///
/// C++:
/// imgui_internal.h:3003
///
float ScrollingRectMinX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ScrollingRectMinX => ref Unsafe.AsRef(&_ptr->ScrollingRectMinX);
///
///
/// C++:
/// imgui_internal.h:3004
///
float ScrollingRectMaxX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ScrollingRectMaxX => ref Unsafe.AsRef(&_ptr->ScrollingRectMaxX);
///
///
/// C++:
/// imgui_internal.h:3005
///
float SeparatorMinX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float SeparatorMinX => ref Unsafe.AsRef(&_ptr->SeparatorMinX);
///
///
/// C++:
/// imgui_internal.h:3006
///
float SeparatorMaxX
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float SeparatorMaxX => ref Unsafe.AsRef(&_ptr->SeparatorMaxX);
///
///
/// C++:
/// imgui_internal.h:3007
///
ImGuiID ReorderRequestTabId
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiID ReorderRequestTabId => ref Unsafe.AsRef(&_ptr->ReorderRequestTabId);
///
///
/// C++:
/// imgui_internal.h:3008
///
ImS16 ReorderRequestOffset
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref short ReorderRequestOffset => ref Unsafe.AsRef(&_ptr->ReorderRequestOffset);
///
///
/// C++:
/// imgui_internal.h:3009
///
ImS8 BeginCount
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref sbyte BeginCount => ref Unsafe.AsRef(&_ptr->BeginCount);
///
///
/// C++:
/// imgui_internal.h:3010
///
bool WantLayout
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref bool WantLayout => ref Unsafe.AsRef(&_ptr->WantLayout);
///
///
/// C++:
/// imgui_internal.h:3011
///
bool VisibleTabWasSubmitted
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref bool VisibleTabWasSubmitted => ref Unsafe.AsRef(&_ptr->VisibleTabWasSubmitted);
///
///
/// Set to true when a new tab item or button has been added to the tab bar during last frame
///
///
/// C++:
/// imgui_internal.h:3012
///
bool TabsAddedNew
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref bool TabsAddedNew => ref Unsafe.AsRef(&_ptr->TabsAddedNew);
///
///
/// C++:
/// imgui_internal.h:3013
///
bool ScrollButtonEnabled
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref bool ScrollButtonEnabled => ref Unsafe.AsRef(&_ptr->ScrollButtonEnabled);
///
///
/// Number of tabs submitted this frame.
///
///
/// C++:
/// imgui_internal.h:3014
///
ImS16 TabsActiveCount
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref short TabsActiveCount => ref Unsafe.AsRef(&_ptr->TabsActiveCount);
///
///
/// Index of last BeginTabItem() tab for use by EndTabItem()
///
///
/// C++:
/// imgui_internal.h:3015
///
ImS16 LastTabItemIdx
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref short LastTabItemIdx => ref Unsafe.AsRef(&_ptr->LastTabItemIdx);
///
///
/// C++:
/// imgui_internal.h:3016
///
float ItemSpacingY
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float ItemSpacingY => ref Unsafe.AsRef(&_ptr->ItemSpacingY);
///
///
/// style.FramePadding locked at the time of BeginTabBar()
///
///
/// C++:
/// imgui_internal.h:3017
///
ImVec2 FramePadding
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float2 FramePadding => ref Unsafe.AsRef(&_ptr->FramePadding);
///
///
/// C++:
/// imgui_internal.h:3018
///
ImVec2 BackupCursorPos
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref float2 BackupCursorPos => ref Unsafe.AsRef(&_ptr->BackupCursorPos);
///
///
/// For non-docking tab bar we re-append names in a contiguous buffer.
///
///
/// C++:
/// imgui_internal.h:3019
///
ImGuiTextBuffer TabsNames
///
///
///
///
/// Storage for a tab bar (sizeof() 160 bytes)
///
///
public ref ImGuiTextBuffer TabsNames => ref Unsafe.AsRef(&_ptr->TabsNames);
}
}