class
ANotificationBell
- Module
- Arc
- Header
#include "Arc/Widgets/ANotificationBell.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kFlyoutWidth | Width of the history flyout (notification-bell.json behaviour). Default 360.0f. |
static constexpr float | kFlyoutGap | The popover's gap to the status bar it opens from (popover.json placement). Default 6.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
std::vector<CMenuEntry> | BuildHistoryEntries | The flyout's rows, built from the notification history: what a click on the bell shows. |
void | OpenHistory | |
bool | IsHistoryOpen | |
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
void | OnMouseEnter | |
void | OnMouseLeave | |
bool | IsFocusable | |
bool | OnActivate | |
float | GetFocusRadius | |
bool | CanRetainPaint | The badge follows the notification history, which announces nothing. |
EAccessibleRole | GetAccessibleRole | |
std::string | GetAccessibleName | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ANotificationBell) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)BuildHistoryEntries
C++
static std::vector<CMenuEntry> BuildHistoryEntries()The flyout's rows, built from the notification history: what a click on the bell shows.
OpenHistory
C++
void OpenHistory()IsHistoryOpen
C++
bool IsHistoryOpen() constComputeDesiredSize
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) overrideOnMouseEnter
C++
void OnMouseEnter(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideIsFocusable
C++
bool IsFocusable() const overrideOnActivate
C++
bool OnActivate() overrideGetFocusRadius
C++
float GetFocusRadius() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideThe badge follows the notification history, which announces nothing.
GetAccessibleRole
C++
EAccessibleRole GetAccessibleRole() const overrideGetAccessibleName
C++
std::string GetAccessibleName() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ANotificationBell.h via arc.json · Nov 5, 2026Version 1.0.0