class
ASpacer
- Module
- Arc
- Header
#include "Arc/Widgets/ASpacer.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
ArcVec2 | ComputeDesiredSize | |
bool | CanCacheDesiredSize | The one attribute IS the desired size. |
bool | CanRetainPaint | Paints nothing, so there is nothing a slice could get wrong — and without this a spacer in a toolbar vetoed the whole toolbar. |
int32_t | OnPaint | |
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 overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideThe one attribute IS the desired size.
CanRetainPaint
C++
bool CanRetainPaint() const overridePaints 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 overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ASpacer.h via arc.json · Nov 5, 2026Version 1.0.0