class

ASplitBox

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

Properties

TypeNameDescription
static constexpr floatHIT_AREADefault 6.0f.
static constexpr floatDEFAULT_MIN_SIZEDefault 120.0f.
ArcDelegate<void()>OnResizedFires at the end of a drag (and on a double-click restore).

Public functions

ReturnsNameDescription
ARC_WIDGET_ARGS
voidConstruct
int32_tAddSlot
int32_tGetSlotCount
std::vector<float>GetWeightsWeights as they are now (after drags); persist these.
voidSetWeights
voidRestoreDefaultWeights
floatGetPaneSizeMain-axis size of a pane as last arranged.
ArcRectGetHandleRectAbsolute hit rect of the handle after pane index.
int32_tHandleAt
std::vector<float>SolveSizesPure: pane sizes for weights over available, each at least its minimum while there is room for all the minimums.
ArcVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
CReplyOnMouseButtonDown
CReplyOnMouseButtonUp
CReplyOnMouseMove
CReplyOnMouseButtonDoubleClick
voidOnMouseLeave
voidOnMouseCaptureLost
EArcCursorTypeOnCursorQuery
boolClaimsPointerExclusively
boolCanSkipArrange
int32_tGetNumChildren
TSharedPtr<AWidget>GetChildAt
const char*GetTypeName

Function details

ARC_WIDGET_ARGS

C++
ARC_WIDGET_ARGS(ASplitBox) ARC_ARG(EOrientation, Orientation) ARC_WIDGET_ARGS_END() static constexpr float GUTTER = 4.0f

Construct

C++
void Construct(const CArguments& args)

AddSlot

C++
int32_t AddSlot(TSharedPtr<AWidget> child, float weight = 1.0f, float minSize = DEFAULT_MIN_SIZE)

GetSlotCount

C++
int32_t GetSlotCount() const

GetWeights

C++
std::vector<float> GetWeights() const

Weights as they are now (after drags); persist these.

SetWeights

C++
void SetWeights(const std::vector<float>& weights)

RestoreDefaultWeights

C++
void RestoreDefaultWeights()

GetPaneSize

C++
float GetPaneSize(int32_t index) const

Main-axis size of a pane as last arranged.

GetHandleRect

C++
ArcRect GetHandleRect(int32_t index) const

Absolute hit rect of the handle after pane index.

HandleAt

C++
int32_t HandleAt(const ArcVec2& absolutePosition) const

SolveSizes

C++
static std::vector<float> SolveSizes(const std::vector<float>& weights, const std::vector<float>& mins, float available)

Pure: pane sizes for weights over available, each at least its minimum while there is room for all the minimums.

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

OnMouseButtonDown

C++
CReply OnMouseButtonDown(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

OnMouseButtonDoubleClick

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

OnMouseLeave

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

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

OnCursorQuery

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

ClaimsPointerExclusively

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

CanSkipArrange

C++
bool CanSkipArrange() const override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

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

GetTypeName

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