class
ASeparator
- Module
- Arc
- Header
#include "Arc/Widgets/ASeparator.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
ArcVec2 | ComputeDesiredSize | |
int32_t | OnPaint | |
bool | CanCacheDesiredSize | Thickness on one axis, nothing on the other — the colour never reaches the measure. |
bool | CanRetainPaint | One 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 | |
void | SetColor | |
void | SetThickness |
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 overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideThickness on one axis, nothing on the other — the colour never reaches the measure.
CanRetainPaint
C++
bool CanRetainPaint() const overrideOne 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 overrideSetColor
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