class

ASplitter

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

Properties

TypeNameDescription
TSharedPtr<AWidget>_Second
ArcDelegate<void(float)>OnRatioChanged
ArcDelegate<void(float)>OnFixedSizeChanged

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
WidgetArgsType&First
WidgetArgsType&Second
ARC_WIDGET_ARGS_END
floatGetRatio
voidSetRatio
voidAnimateRatioEases the on-screen split from fromRatio to toRatio (0.16 s, CubicOut).
ESplitterSizeModeGetSizeMode
floatGetFixedSize
voidSetFixedSize
boolIsHandleAtTrue when the point lies inside the handle grab zone and the splitter can actually drag.
boolClaimsPointerExclusively
EArcCursorTypeOnCursorQuery
voidOnMouseCaptureLost
ArcVec2ComputeDesiredSize
voidArrangeChildren
boolCanSkipArrangeRefused: the split ratio is written straight from the drag handler, which has no reason to invalidate a widget whose desired size never changes.
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonDoubleClick
CReplyOnMouseButtonUp
CReplyOnMouseMove
voidOnMouseLeave
int32_tGetNumChildren
TSharedPtr<AWidget>GetChildAt
boolCanCacheDesiredSizeBoth halves plus the handle.
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ASplitter) ARC_ARG(EOrientation, Orientation) ARC_ARG(float, InitialRatio) ARC_ARG(float, HandleSize) ARC_ARG(float, MinRatio) ARC_ARG(float, MaxRatio) ARC_ARG(float, FixedFirst) ARC_ARG(float, FixedSecond) ARC_ARG(float, MinFixedSize) ARC_ARG(float, MaxFixedSize) ARC_ARG(float, MinOtherSize) ARC_ARG(ArcColor, HandleColor) ARC_ARG(ArcColor, HandleHoverColor) TSharedPtr<AWidget> _First

First

C++
WidgetArgsType& First(TSharedPtr<AWidget> w)

Second

C++
WidgetArgsType& Second(TSharedPtr<AWidget> w)

ARC_WIDGET_ARGS_END

C++
ARC_WIDGET_ARGS_END() void Construct(const CArguments& args)

GetRatio

C++
float GetRatio() const

SetRatio

C++
void SetRatio(float ratio)

AnimateRatio

C++
void AnimateRatio(float fromRatio, float toRatio)

Eases the on-screen split from fromRatio to toRatio (0.16 s, CubicOut). The logical ratio (GetRatio, delegates, persistence) becomes toRatio immediately — only the arrangement glides.

GetSizeMode

C++
ESplitterSizeMode GetSizeMode() const

GetFixedSize

C++
float GetFixedSize() const

SetFixedSize

C++
void SetFixedSize(float px)

IsHandleAt

C++
bool IsHandleAt(const ArcVec2& absolutePos) const

True when the point lies inside the handle grab zone and the splitter can actually drag. Used by the input processor to give the handle hit-test priority over the panel children (the visual seam is thinner than the grab zone, so the zone overlaps the children).

ClaimsPointerExclusively

C++
bool ClaimsPointerExclusively(const CGeometry& geo, const ArcVec2& absolutePosition) const override

OnCursorQuery

C++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const override

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

ComputeDesiredSize

C++
ArcVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

CanSkipArrange

C++
bool CanSkipArrange() const override

Refused: the split ratio is written straight from the drag handler, which has no reason to invalidate a widget whose desired size never changes. Two children per splitter — the skip would buy nothing.

OnPaint

C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const override

OnMouseButtonDown

C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonDoubleClick

C++
CReply OnMouseButtonDoubleClick(const CGeometry& geo, const CPointerEvent& event) override

OnMouseButtonUp

C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) override

OnMouseMove

C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) override

OnMouseLeave

C++
void OnMouseLeave(const CPointerEvent& event) override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

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

CanCacheDesiredSize

C++
bool CanCacheDesiredSize() const override

Both halves plus the handle. The ratio and its animation move the divider inside the allotted space; neither reaches the measure.

GetTypeName

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