class

MExpandableArea

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

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
voidOnMouseLeave
boolIsExpanded
voidSetExpandedExpansion is what decides how much of the body's height counts, so it has to reach the desired-size cache.
voidSetExpandedWithSiblingsFolds or opens this section and every MExpandableArea sharing its parent (Shift+click).
voidSetMetaTextThe meta text at the right of the header (a count, a summary).
voidSetHasErrorThe error state: the meta text in ErrorText.
floatGetExpandAmount0 collapsed ..
floatGetHeaderHeight
boolCanCacheDesiredSize
boolCanSkipArrange
boolIsFocusable
boolOnActivate
floatGetFocusRadius
EAccessibleRoleGetAccessibleRole
std::stringGetAccessibleValue
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MExpandableArea) MIRI_ATTR(CText, HeaderText) MIRI_ATTR(CText, MetaText) MIRI_ATTR(bool, IsExpanded) MIRI_ATTR(MiriColor, HeaderColor) MIRI_ATTR(MiriColor, TextColor) MIRI_ATTR(float, HeaderHeight) MIRI_ARG(bool, Overline) MIRI_CONTENT(MExpandableArea, Body) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

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

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonUp

C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

IsExpanded

C++
bool IsExpanded() const

SetExpanded

C++
void SetExpanded(bool expanded)

Expansion is what decides how much of the body's height counts, so it has to reach the desired-size cache. The height animates on the MowoMotion Expand token; every tick of it invalidates, so the cache holds only between transitions.

SetExpandedWithSiblings

C++
void SetExpandedWithSiblings(bool expanded)

Folds or opens this section and every MExpandableArea sharing its parent (Shift+click).

SetMetaText

C++
void SetMetaText(const CText& meta)

The meta text at the right of the header (a count, a summary).

SetHasError

C++
void SetHasError(bool hasError)

The error state: the meta text in ErrorText.

GetExpandAmount

C++
float GetExpandAmount() const

0 collapsed .. 1 expanded, animated.

GetHeaderHeight

C++
float GetHeaderHeight() const

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

IsFocusable

C++
bool IsFocusable() const override

OnActivate

C++
bool OnActivate() override

GetFocusRadius

C++
float GetFocusRadius() const override

GetAccessibleRole

C++
EAccessibleRole GetAccessibleRole() const override

GetAccessibleValue

C++
std::string GetAccessibleValue() const override

GetTypeName

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