class

ASeparator

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
ArcVec2ComputeDesiredSize
int32_tOnPaint
boolCanCacheDesiredSizeThickness on one axis, nothing on the other — the colour never reaches the measure.
boolCanRetainPaintOne line from three attributes; the colour reaches the paint but not the measure, so it has to be tested here and not there.
const char*GetTypeName
voidSetColor
voidSetThickness

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ASeparator) ARC_ATTR(EOrientation, Orientation) ARC_ATTR(ArcColor, Color) ARC_ATTR(float, Thickness) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

OnPaint

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

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

Thickness on one axis, nothing on the other — the colour never reaches the measure.

CanRetainPaint

C++
bool CanRetainPaint() const override

One line from three attributes; the colour reaches the paint but not the measure, so it has to be tested here and not there.

GetTypeName

C++
const char* GetTypeName() const override

SetColor

C++
void SetColor(const ArcColor& color)

SetThickness

C++
void SetThickness(float thickness)
Generated from Arc/Widgets/ASeparator.h via arc.json · Nov 5, 2026Version 1.0.0