class

AClipBox

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

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidSetCornerRadiusA non-zero radius clips to the rounded rect: the content renders into an offscreen layer composited through the rounded mask, so children are cut at the curve instead of at the bounding rect.
floatGetCornerRadius
boolCanCacheDesiredSize
boolCanSkipArrange
boolCanRetainPaintThe clip rect is pushed on the live renderer; a replayed slice would come back without it, so this box always paints fresh.
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
EHitTestResultOnHitTest
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AClipBox) ARC_ARG(float, CornerRadius) ARC_CONTENT(AClipBox, Content) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetCornerRadius

C++
void SetCornerRadius(float radius)

A non-zero radius clips to the rounded rect: the content renders into an offscreen layer composited through the rounded mask, so children are cut at the curve instead of at the bounding rect. Hit testing follows the curve too. Without layer support the clip stays rectangular.

GetCornerRadius

C++
float GetCornerRadius() const

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

The clip rect is pushed on the live renderer; a replayed slice would come back without it, so this box always paints fresh.

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

OnHitTest

C++
EHitTestResult OnHitTest(const CGeometry& geo, const ArcVec2& absolutePosition) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Arc/Widgets/AClipBox.h via arc.json · Nov 5, 2026Version 1.0.0