class
AClipBox
- Module
- Arc
- Header
#include "Arc/Widgets/AClipBox.h"- Namespace
Arcf
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | SetCornerRadius | 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. |
float | GetCornerRadius | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | |
bool | CanRetainPaint | The clip rect is pushed on the live renderer; a replayed slice would come back without it, so this box always paints fresh. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
EHitTestResult | OnHitTest | |
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() constCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideThe 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 overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnHitTest
C++
EHitTestResult OnHitTest(const CGeometry& geo, const ArcVec2& absolutePosition) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AClipBox.h via arc.json · Nov 5, 2026Version 1.0.0