class
ABox
- Module
- Arc
- Header
#include "Arc/Widgets/ABox.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
EVerticalAlignment | _VAlign | Default EVerticalAlignment::Fill. |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
WidgetArgsType& | HAlign | |
WidgetArgsType& | VAlign | |
ARC_ARG | Text under this box is shaped as on a floating surface (CArcUIRenderer::PushFloatingText): what a browser composites on a layer of its own, such as everything over a viewport. | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | |
bool | CanRetainPaint | Draws nothing itself; the slice is entirely its child's. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
const char* | GetTypeName |
Function details
ARC_WIDGET_ARGS
C++
ARC_WIDGET_ARGS(ABox) ARC_ATTR(float, WidthOverride) ARC_ATTR(float, HeightOverride) ARC_ATTR(ArcMargin, Padding) EHorizontalAlignment _HAlign = EHorizontalAlignment::FillHAlign
C++
WidgetArgsType& HAlign(EHorizontalAlignment value)VAlign
C++
WidgetArgsType& VAlign(EVerticalAlignment value)ARC_ARG
C++
ARC_ARG(bool, FloatingText) ARC_CONTENT(ABox, Content) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)Text under this box is shaped as on a floating surface (CArcUIRenderer::PushFloatingText): what a browser composites on a layer of its own, such as everything over a viewport.
CanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideDraws nothing itself; the slice is entirely its child's. A bound padding still disqualifies it — the child would move inside an unchanged frame with nothing to invalidate on.
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 overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ABox.h via arc.json · Nov 5, 2026Version 1.0.0