class
AExpandableArea
- Module
- Arc
- Header
#include "Arc/Widgets/AExpandableArea.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
ArcVec2 | 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 AExpandableArea 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
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 overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& 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 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() 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 Arc/Widgets/AExpandableArea.h via arc.json · Nov 5, 2026Version 1.0.0