class

ABorder

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
boolCanCacheDesiredSizeOne child inset by the padding — nothing else.
boolCanSkipArrange
boolCanRetainPaintA rect and an outline from four attributes.
boolPollAttributes
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ABorder) ARC_ATTR(ArcColor, BackgroundColor) ARC_ATTR(ArcColor, BorderColor) ARC_ATTR(float, BorderThickness) ARC_ATTR(float, CornerRadius) ARC_ATTR(ArcMargin, Padding) ARC_CONTENT(ABorder, Content) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

One child inset by the padding — nothing else. A bound padding can return a new margin with no write for Invalidate to see, so it disqualifies the measure cache and the arrange skip alike — unless the border is polled, in which case the poll is that write.

CanSkipArrange

C++
bool CanSkipArrange() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

A rect and an outline from four attributes. A bound one of those is a colour that can change with nothing to invalidate on, so the same test that disqualifies the measure disqualifies the slice.

PollAttributes

C++
bool PollAttributes() override

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

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/ABorder.h via arc.json · Nov 5, 2026Version 1.0.0