class

ATabBar

Module
Arc
Header
#include "Arc/Widgets/ATabBar.h"
Namespace
Arcf

Properties

TypeNameDescription
ArcDelegate<void(int32_t)>OnTabSelected
ArcDelegate<void(int32_t)>OnTabClosed
ArcDelegate<void(int32_t, int32_t)>OnTabReordered(fromIndex, toIndex)
ArcDelegate<void(int32_t, ArcVec2)>OnTabDraggedOut(tabIndex, screenPos) — tab dragged outside bar

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidAddTab
voidRemoveTab
voidSetActiveTab
int32_tGetActiveTab
int32_tGetTabCount
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
voidOnMouseEnter
voidOnMouseLeave
CReplyOnMouseMove
CReplyOnKeyDown
boolIsFocusable
const char*GetTypeName
voidCloseTabAtCloses a closeable tab as the close glyph or a middle click would.
floatStripHeightThe strip's height (tab-strip.json 30 unless TabHeight overrides it) and the tabs' (dock-tab.json 26), bottom-aligned on the strip's rule.
floatTabHeight
floatGetIndicatorXThe active-tab indicator slides between tabs on the MowoMotion Slide token.
floatGetIndicatorWidth
boolIsIndicatorAnimating

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ATabBar) ARC_ATTR(float, TabHeight) ARC_ATTR(float, TabMinWidth) ARC_ATTR(ArcColor, ActiveTabColor) ARC_ATTR(ArcColor, InactiveTabColor) ARC_ATTR(ArcColor, TextColor) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

AddTab

C++
void AddTab(const CTabInfo& tab)

RemoveTab

C++
void RemoveTab(int32_t index)

SetActiveTab

C++
void SetActiveTab(int32_t index)

GetActiveTab

C++
int32_t GetActiveTab() const

GetTabCount

C++
int32_t GetTabCount() const

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonUp

C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) override

OnMouseEnter

C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnKeyDown

C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) override

IsFocusable

C++
bool IsFocusable() const override

GetTypeName

C++
const char* GetTypeName() const override

CloseTabAt

C++
void CloseTabAt(int32_t index)

Closes a closeable tab as the close glyph or a middle click would.

StripHeight

C++
float StripHeight() const

The strip's height (tab-strip.json 30 unless TabHeight overrides it) and the tabs' (dock-tab.json 26), bottom-aligned on the strip's rule.

TabHeight

C++
float TabHeight() const

GetIndicatorX

C++
float GetIndicatorX() const

The active-tab indicator slides between tabs on the MowoMotion Slide token. Local X and width of the indicator as last painted.

GetIndicatorWidth

C++
float GetIndicatorWidth() const

IsIndicatorAnimating

C++
bool IsIndicatorAnimating() const
Generated from Arc/Widgets/ATabBar.h via arc.json · Nov 5, 2026Version 1.0.0