class

ABreadcrumb

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

Properties

TypeNameDescription
static constexpr floatSEGMENT_PADDING_XDefault 6.0f.
static constexpr floatGAPDefault 4.0f.
ArcDelegate<void(int32_t)>OnSegmentClickedFires with the clicked segment's index. The current (last) segment does not fire: it is where the user already is.

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidConstruct
voidSetSegments
voidPushSegment
voidPopTo
const std::vector<std::string>&GetSegments
ArcRectGetSegmentRectAbsolute rect of a segment as last laid out; empty when folded away.
int32_tGetFirstVisibleSegment
int32_tSegmentAt
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseMove
voidOnMouseLeave
CReplyOnKeyDown
boolIsFocusable
boolOnActivate
boolCanCacheDesiredSize
boolCanRetainPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ABreadcrumb) ARC_WIDGET_ARGS_END() static constexpr float SEGMENT_HEIGHT = 22.0f

Construct

C++
void Construct(const CArguments& args)

SetSegments

C++
void SetSegments(const std::vector<std::string>& segments)

PushSegment

C++
void PushSegment(const std::string& segment)

PopTo

C++
void PopTo(int32_t index)

GetSegments

C++
const std::vector<std::string>& GetSegments() const

GetSegmentRect

C++
ArcRect GetSegmentRect(int32_t index) const

Absolute rect of a segment as last laid out; empty when folded away.

GetFirstVisibleSegment

C++
int32_t GetFirstVisibleSegment() const

SegmentAt

C++
int32_t SegmentAt(const ArcVec2& absolutePosition) const

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) 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

OnMouseMove

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

OnMouseLeave

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

OnKeyDown

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

IsFocusable

C++
bool IsFocusable() const override

OnActivate

C++
bool OnActivate() override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/ABreadcrumb.h via arc.json · Nov 5, 2026Version 1.0.0