class
ABreadcrumb
- Module
- Arc
- Header
#include "Arc/Widgets/ABreadcrumb.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | SEGMENT_PADDING_X | Default 6.0f. |
static constexpr float | GAP | Default 4.0f. |
ArcDelegate<void(int32_t)> | OnSegmentClicked | Fires with the clicked segment's index. The current (last) segment does not fire: it is where the user already is. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | Construct | |
void | SetSegments | |
void | PushSegment | |
void | PopTo | |
const std::vector<std::string>& | GetSegments | |
ArcRect | GetSegmentRect | Absolute rect of a segment as last laid out; empty when folded away. |
int32_t | GetFirstVisibleSegment | |
int32_t | SegmentAt | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
CReply | OnKeyDown | |
bool | IsFocusable | |
bool | OnActivate | |
bool | CanCacheDesiredSize | |
bool | CanRetainPaint | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ABreadcrumb) ARC_WIDGET_ARGS_END() static constexpr float SEGMENT_HEIGHT = 22.0fConstruct
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() constGetSegmentRect
C++
ArcRect GetSegmentRect(int32_t index) constAbsolute rect of a segment as last laid out; empty when folded away.
GetFirstVisibleSegment
C++
int32_t GetFirstVisibleSegment() constSegmentAt
C++
int32_t SegmentAt(const ArcVec2& absolutePosition) constComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) 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) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideIsFocusable
C++
bool IsFocusable() const overrideOnActivate
C++
bool OnActivate() overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ABreadcrumb.h via arc.json · Nov 5, 2026Version 1.0.0