class
MExpandableArea
- Module
- Miri
- Header
#include "Miri/Widgets/MExpandableArea.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
MIRI_WIDGET_ARGS | ||
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
void | OnMouseLeave | |
bool | IsExpanded | |
void | SetExpanded | Expansion is what decides how much of the body's height counts, so it has to reach the desired-size cache. |
void | SetExpandedWithSiblings | Folds or opens this section and every MExpandableArea sharing its parent (Shift+click). |
void | SetMetaText | The meta text at the right of the header (a count, a summary). |
void | SetHasError | The error state: the meta text in ErrorText. |
float | GetExpandAmount | 0 collapsed .. |
float | GetHeaderHeight | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | |
bool | IsFocusable | |
bool | OnActivate | |
float | GetFocusRadius | |
EAccessibleRole | GetAccessibleRole | |
std::string | GetAccessibleValue | |
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 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) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideIsExpanded
C++
bool IsExpanded() constSetExpanded
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() const0 collapsed .. 1 expanded, animated.
GetHeaderHeight
C++
float GetHeaderHeight() constCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideIsFocusable
C++
bool IsFocusable() const overrideOnActivate
C++
bool OnActivate() overrideGetFocusRadius
C++
float GetFocusRadius() const overrideGetAccessibleRole
C++
EAccessibleRole GetAccessibleRole() const overrideGetAccessibleValue
C++
std::string GetAccessibleValue() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Miri/Widgets/MExpandableArea.h via miri.json · Dec 5, 2026Version 1.1.0