class
MCard
- Module
- Miri
- Header
#include "Miri/Widgets/MCard.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
MiriDelegate<void()> | OnActivated | |
MiriDelegate<void()> | OnClicked |
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
void | Construct | |
void | SetTitle | |
void | SetMeta | |
void | SetSelected | |
bool | IsSelected | |
float | GetLift | The current hover lift in px (0 to kLift). |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseButtonDoubleClick | |
void | OnMouseEnter | |
void | OnMouseLeave | |
bool | IsFocusable | |
float | GetFocusRadius | |
bool | OnActivate | |
const char* | GetTypeName |
Function details
MIRI_WIDGET_ARGS
C++
MIRI_WIDGET_ARGS(MCard) MIRI_ARG(std::string, Title) MIRI_ARG(std::string, Meta) MIRI_ARG(TSharedPtr<MWidget>, Media) MIRI_ARG(bool, Pinned) MIRI_WIDGET_ARGS_END() static constexpr float kLift = 4.0fConstruct
C++
void Construct(const CArguments& args)SetTitle
C++
void SetTitle(const std::string& title)SetMeta
C++
void SetMeta(const std::string& meta)SetSelected
C++
void SetSelected(bool selected)IsSelected
C++
bool IsSelected() constGetLift
C++
float GetLift() constThe current hover lift in px (0 to kLift).
ComputeDesiredSize
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 overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonDoubleClick
C++
CReply OnMouseButtonDoubleClick(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 overrideGetFocusRadius
C++
float GetFocusRadius() const overrideOnActivate
C++
bool OnActivate() overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MCard.h via miri.json · Dec 5, 2026Version 1.1.0