class
MPopover
- Module
- Miri
- Header
#include "Miri/Widgets/MPopover.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void()> | OnConfirm | |
MiriDelegate<void()> | OnDismiss |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | The confirm's icon tile in ModAccent (editor-mod-mode) instead of Info. | |
void | Construct | |
MiriRect | 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 | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnKeyDown | |
int32_t | GetNumChildren | |
TSharedPtr<MWidget> | 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
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MPopover) MIRI_ARG(EMiriPopoverVariant, Variant) MIRI_ARG(std::string, Title) MIRI_ARG(std::string, Message) MIRI_ARG(std::string, Icon) MIRI_ARG(std::string, ConfirmLabel) MIRI_ARG(std::string, CancelLabel) MIRI_ARG(float, Width) MIRI_ARG(TSharedPtr<MWidget>, FooterLeft) MIRI_ARG(bool, ModIcon) MIRI_CONTENT(MPopover, Body) MIRI_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 MiriRect Place(const MiriRect& anchor, const MiriVec2& size, const MiriRect& 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++
MiriVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideOnKeyDown
C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<MWidget> 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 Miri/Widgets/MPopover.h via miri.json · Dec 5, 2026Version 1.1.0