class
ABookmarkBar
- Module
- Arc
- Header
#include "Arc/Widgets/ABookmarkBar.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
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
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetBookmarks | |
const std::vector<FArcBookmark>& | GetBookmarks | |
void | SetCurrent | The bookmark whose camera matches the view (-1 for none). |
int32_t | GetCurrent | |
bool | HandleShortcut | Ctrl+digit and Ctrl+Shift+digit; true when the key was one. |
std::vector<ArcRect> | LayoutChips | Chip rects inside rect, bookmarks first and the + chip last. |
int32_t | ChipAt | The chip under an absolute point after a layout: a bookmark index, Bookmarks().size() for the + chip, -1 for none. |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
CReply | OnKeyDown | |
bool | OnContextMenu | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
bool | OnActivate | |
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() constSetCurrent
C++
void SetCurrent(int32_t index)The bookmark whose camera matches the view (-1 for none).
GetCurrent
C++
int32_t GetCurrent() constHandleShortcut
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) constChip rects inside rect, bookmarks first and the + chip last.
ChipAt
C++
int32_t ChipAt(const ArcVec2& absolute) constThe 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 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) 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) overrideOnContextMenu
C++
bool OnContextMenu(const CGeometry& geo, const CPointerEvent& event, CMenuBuilder& builder) overrideIsFocusable
C++
bool IsFocusable() const overrideGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overrideOnActivate
C++
bool OnActivate() overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ABookmarkBar.h via arc.json · Nov 5, 2026Version 1.0.0