class

ABookmarkBar

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

Properties

TypeNameDescription
ArcDelegate<void(int32_t)>OnJump
ArcDelegate<void(int32_t)>OnStore
ArcDelegate<void()>OnAdd
ArcDelegate<void(int32_t)>OnRename
ArcDelegate<void(int32_t)>OnDelete

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetBookmarks
const std::vector<FArcBookmark>&GetBookmarks
voidSetCurrentThe bookmark whose camera matches the view (-1 for none).
int32_tGetCurrent
boolHandleShortcutCtrl+digit and Ctrl+Shift+digit; true when the key was one.
std::vector<ArcRect>LayoutChipsChip rects inside rect, bookmarks first and the + chip last.
int32_tChipAtThe chip under an absolute point after a layout: a bookmark index, Bookmarks().size() for the + chip, -1 for none.
ArcVec2ComputeDesiredSize
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
voidOnMouseLeave
CReplyOnKeyDown
boolOnContextMenu
boolIsFocusable
EFocusVisualGetFocusVisual
boolOnActivate
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ABookmarkBar) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetBookmarks

C++
void SetBookmarks(const std::vector<FArcBookmark>& bookmarks)

GetBookmarks

C++
const std::vector<FArcBookmark>& GetBookmarks() const

SetCurrent

C++
void SetCurrent(int32_t index)

The bookmark whose camera matches the view (-1 for none).

GetCurrent

C++
int32_t GetCurrent() const

HandleShortcut

C++
bool HandleShortcut(const CKeyEvent& event)

Ctrl+digit and Ctrl+Shift+digit; true when the key was one.

LayoutChips

C++
std::vector<ArcRect> LayoutChips(const ArcRect& rect) const

Chip rects inside rect, bookmarks first and the + chip last.

ChipAt

C++
int32_t ChipAt(const ArcVec2& absolute) const

The chip under an absolute point after a layout: a bookmark index, Bookmarks().size() for the + chip, -1 for none.

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

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

OnContextMenu

C++
bool OnContextMenu(const CGeometry& geo, const CPointerEvent& event, CMenuBuilder& builder) override

IsFocusable

C++
bool IsFocusable() const override

GetFocusVisual

C++
EFocusVisual GetFocusVisual() const override

OnActivate

C++
bool OnActivate() override

GetTypeName

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