class
AWidgetSwitcher
- Module
- Arc
- Header
#include "Arc/Widgets/AWidgetSwitcher.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
ArcDelegate<void(int32_t)> | OnActiveIndexChanged |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
int32_t | AddChild | |
void | RemoveChildAt | |
void | ClearChildren | |
void | SetActiveIndex | |
int32_t | GetActiveIndex | |
void | SetActiveWidget | |
TSharedPtr<AWidget> | GetActiveWidget | |
int32_t | GetChildCount | |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
int32_t | GetNumChildren | Only the active child takes part in hit testing and focus walks. |
TSharedPtr<AWidget> | GetChildAt | |
bool | CanCacheDesiredSize | |
bool | CanSkipArrange | |
bool | CanRetainPaint | |
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() constSetActiveWidget
C++
void SetActiveWidget(const TSharedPtr<AWidget>& widget)GetActiveWidget
C++
TSharedPtr<AWidget> GetActiveWidget() constGetChildCount
C++
int32_t GetChildCount() constComputeDesiredSize
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 overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideOnly the active child takes part in hit testing and focus walks.
GetChildAt
C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const overrideCanCacheDesiredSize
C++
bool CanCacheDesiredSize() const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideCanRetainPaint
C++
bool CanRetainPaint() const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/AWidgetSwitcher.h via arc.json · Nov 5, 2026Version 1.0.0