class

MPopover

Module
Miri
Header
#include "Miri/Widgets/MPopover.h"
Namespace
Miri

Properties

TypeNameDescription
MiriDelegate<void()>OnConfirm
MiriDelegate<void()>OnDismiss

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGSThe confirm's icon tile in ModAccent (editor-mod-mode) instead of Info.
voidConstruct
MiriRectPlaceWhere 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).
floatGetWidth
floatGetHeaderHeight
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
CReplyOnKeyDown
int32_tGetNumChildren
TSharedPtr<MWidget>GetChildAt
boolIsFocusable
EFocusVisualGetFocusVisual
boolPaintsOwnFocusFocus on the popover is focus on the open panel itself: its frame is what says where the keyboard is, as a dialog's does.
EAccessibleRoleGetAccessibleRole
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.0f

The 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() const

GetHeaderHeight

C++
float GetHeaderHeight() const

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

OnKeyDown

C++
CReply OnKeyDown(const CGeometry& geo, const CKeyEvent& event) override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const override

IsFocusable

C++
bool IsFocusable() const override

GetFocusVisual

C++
EFocusVisual GetFocusVisual() const override

PaintsOwnFocus

C++
bool PaintsOwnFocus() const override

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.

GetAccessibleRole

C++
EAccessibleRole GetAccessibleRole() const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MPopover.h via miri.json · Dec 5, 2026Version 1.1.0