class
AScaleBox
- Module
- Arc
- Header
#include "Arc/Widgets/AScaleBox.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetStretch | |
void | SetStretchDirection | |
void | SetUserScale | |
ArcVec2 | GetAppliedScale | The X and Y factors the last arrange applied. |
ArcVec2 | ComputeScale | Pure: the factors a stretch mode gives content of content size in a box of available size. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(AScaleBox) ARC_ARG(EScaleBoxStretch, Stretch) ARC_ARG(EScaleBoxDirection, StretchDirection) ARC_ARG(float, UserScale) ARC_CONTENT(AScaleBox, Content) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)SetStretch
C++
void SetStretch(EScaleBoxStretch stretch)SetStretchDirection
C++
void SetStretchDirection(EScaleBoxDirection direction)SetUserScale
C++
void SetUserScale(float scale)GetAppliedScale
C++
ArcVec2 GetAppliedScale() constThe X and Y factors the last arrange applied.
ComputeScale
C++
static ArcVec2 ComputeScale(EScaleBoxStretch stretch, EScaleBoxDirection direction, float userScale, const ArcVec2& content, const ArcVec2& available)Pure: the factors a stretch mode gives content of content size in a box of available size.
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 overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AScaleBox.h via arc.json · Nov 5, 2026Version 1.0.0