class

AWidgetSwitcher

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

Properties

TypeNameDescription
ArcDelegate<void(int32_t)>OnActiveIndexChanged

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
int32_tAddChild
voidRemoveChildAt
voidClearChildren
voidSetActiveIndex
int32_tGetActiveIndex
voidSetActiveWidget
TSharedPtr<AWidget>GetActiveWidget
int32_tGetChildCount
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
int32_tGetNumChildrenOnly the active child takes part in hit testing and focus walks.
TSharedPtr<AWidget>GetChildAt
boolCanCacheDesiredSize
boolCanSkipArrange
boolCanRetainPaint
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(AWidgetSwitcher) ARC_ARG(int32_t, ActiveIndex) ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

AddChild

C++
int32_t AddChild(TSharedPtr<AWidget> child)

RemoveChildAt

C++
void RemoveChildAt(int32_t index)

ClearChildren

C++
void ClearChildren()

SetActiveIndex

C++
void SetActiveIndex(int32_t index)

GetActiveIndex

C++
int32_t GetActiveIndex() const

SetActiveWidget

C++
void SetActiveWidget(const TSharedPtr<AWidget>& widget)

GetActiveWidget

C++
TSharedPtr<AWidget> GetActiveWidget() const

GetChildCount

C++
int32_t GetChildCount() const

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

GetNumChildren

C++
int32_t GetNumChildren() const override

Only the active child takes part in hit testing and focus walks.

GetChildAt

C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const override

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

CanSkipArrange

C++
bool CanSkipArrange() const override

CanRetainPaint

C++
bool CanRetainPaint() const override

GetTypeName

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