class

ASpacer

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
ArcVec2ComputeDesiredSize
boolCanCacheDesiredSizeThe one attribute IS the desired size.
boolCanRetainPaintPaints nothing, so there is nothing a slice could get wrong — and without this a spacer in a toolbar vetoed the whole toolbar.
int32_tOnPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ASpacer) ARC_ATTR(ArcVec2, Size) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

The one attribute IS the desired size.

CanRetainPaint

C++
bool CanRetainPaint() const override

Paints nothing, so there is nothing a slice could get wrong — and without this a spacer in a toolbar vetoed the whole toolbar.

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/ASpacer.h via arc.json · Nov 5, 2026Version 1.0.0