class
ATabBar
- Module
- Arc
- Header
#include "Arc/Widgets/ATabBar.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
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
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | AddTab | |
void | RemoveTab | |
void | SetActiveTab | |
int32_t | GetActiveTab | |
int32_t | GetTabCount | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
void | OnMouseEnter | |
void | OnMouseLeave | |
CReply | OnMouseMove | |
CReply | OnKeyDown | |
bool | IsFocusable | |
const char* | GetTypeName | |
void | CloseTabAt | Closes a closeable tab as the close glyph or a middle click would. |
float | StripHeight | 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. |
float | TabHeight | |
float | GetIndicatorX | The active-tab indicator slides between tabs on the MowoMotion Slide token. |
float | GetIndicatorWidth | |
bool | IsIndicatorAnimating |
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() constGetTabCount
C++
int32_t GetTabCount() constComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideIsFocusable
C++
bool IsFocusable() const overrideGetTypeName
C++
const char* GetTypeName() const overrideCloseTabAt
C++
void CloseTabAt(int32_t index)Closes a closeable tab as the close glyph or a middle click would.
StripHeight
C++
float StripHeight() constThe 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() constGetIndicatorX
C++
float GetIndicatorX() constThe 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() constIsIndicatorAnimating
C++
bool IsIndicatorAnimating() constGenerated from Arc/Widgets/ATabBar.h via arc.json · Nov 5, 2026Version 1.0.0