class

AExpandableArea

Module
Arc
Header
#include "Arc/Widgets/AExpandableArea.h"
Namespace
Arcf

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
ArcVec2ComputeDesiredSize
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 AExpandableArea 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

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AExpandableArea) ARC_ATTR(CText, HeaderText) ARC_ATTR(CText, MetaText) ARC_ATTR(bool, IsExpanded) ARC_ATTR(ArcColor, HeaderColor) ARC_ATTR(ArcColor, TextColor) ARC_ATTR(float, HeaderHeight) ARC_ARG(bool, Overline) ARC_CONTENT(AExpandableArea, Body) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

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

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& 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 AExpandableArea 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 Arc/Widgets/AExpandableArea.h via arc.json · Nov 5, 2026Version 1.0.0