class
MBookmarkBar
- Module
- Miri
- Header
#include "Miri/Widgets/MBookmarkBar.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void(int32_t)> | OnJump | |
MiriDelegate<void(int32_t)> | OnStore | |
MiriDelegate<void()> | OnAdd | |
MiriDelegate<void(int32_t)> | OnRename | |
MiriDelegate<void(int32_t)> | OnDelete |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | SetBookmarks | |
const std::vector<FMiriBookmark>& | 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<MiriRect> | 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. |
MiriVec2 | 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
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MBookmarkBar) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)SetBookmarks
C++
void SetBookmarks(const std::vector<FMiriBookmark>& bookmarks)GetBookmarks
C++
const std::vector<FMiriBookmark>& 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<MiriRect> LayoutChips(const MiriRect& rect) constChip rects inside rect, bookmarks first and the + chip last.
ChipAt
C++
int32_t ChipAt(const MiriVec2& absolute) constThe chip under an absolute point after a layout: a bookmark index, Bookmarks().size() for the + chip, -1 for none.
ComputeDesiredSize
C++
MiriVec2 ComputeDesiredSize(float scale) const overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& 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 Miri/Widgets/MBookmarkBar.h via miri.json · Dec 5, 2026Version 1.1.0