class
ABorder
- Module
- Arc
- Header
#include "Arc/Widgets/ABorder.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
bool | CanCacheDesiredSize | One child inset by the padding — nothing else. |
bool | CanSkipArrange | |
bool | CanRetainPaint | A rect and an outline from four attributes. |
bool | PollAttributes | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
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 overrideOne 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 overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideA 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() overrideComputeDesiredSize
C++
ArcVec2 ComputeDesiredSize(float scale) const overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
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/ABorder.h via arc.json · Nov 5, 2026Version 1.0.0