class
APopover
- Module
- Arc
- Header
#include "Arc/Widgets/APopover.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void()> | OnConfirm | |
ArcDelegate<void()> | OnDismiss |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | The confirm's icon tile in ModAccent (editor-mod-mode) instead of Info. | |
void | Construct | |
ArcRect | Place | Where a popover of this size goes for an anchor: above it with the 6 px gap, left-aligned, kept inside the viewport (below the anchor when there is no room above). |
float | GetWidth | |
float | GetHeaderHeight | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnKeyDown | |
int32_t | GetNumChildren | |
TSharedPtr<AWidget> | GetChildAt | |
bool | IsFocusable | |
EFocusVisual | GetFocusVisual | |
bool | PaintsOwnFocus | Focus on the popover is focus on the open panel itself: its frame is what says where the keyboard is, as a dialog's does. |
EAccessibleRole | GetAccessibleRole | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(APopover) ARC_ARG(EArcPopoverVariant, Variant) ARC_ARG(std::string, Title) ARC_ARG(std::string, Message) ARC_ARG(std::string, Icon) ARC_ARG(std::string, ConfirmLabel) ARC_ARG(std::string, CancelLabel) ARC_ARG(float, Width) ARC_ARG(TSharedPtr<AWidget>, FooterLeft) ARC_ARG(bool, ModIcon) ARC_CONTENT(APopover, Body) ARC_WIDGET_ARGS_END() static constexpr float kAnchorGap = 6.0fThe confirm's icon tile in ModAccent (editor-mod-mode) instead of Info.
Construct
C++
void Construct(const CArguments& args)Place
C++
static ArcRect Place(const ArcRect& anchor, const ArcVec2& size, const ArcRect& viewport)Where a popover of this size goes for an anchor: above it with the 6 px gap, left-aligned, kept inside the viewport (below the anchor when there is no room above).
GetWidth
C++
float GetWidth() constGetHeaderHeight
C++
float GetHeaderHeight() 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 overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const overrideIsFocusable
C++
bool IsFocusable() const overrideGetFocusVisual
C++
EFocusVisual GetFocusVisual() const overridePaintsOwnFocus
C++
bool PaintsOwnFocus() const overrideFocus on the popover is focus on the open panel itself: its frame is what says where the keyboard is, as a dialog's does.
GetAccessibleRole
C++
EAccessibleRole GetAccessibleRole() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/APopover.h via arc.json · Nov 5, 2026Version 1.0.0