class
ASplitBox
- Module
- Arc
- Header
#include "Arc/Widgets/ASplitBox.h"- Namespace
Arcf
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | HIT_AREA | Default 6.0f. |
static constexpr float | DEFAULT_MIN_SIZE | Default 120.0f. |
ArcDelegate<void()> | OnResized | Fires at the end of a drag (and on a double-click restore). |
Public functions
| Returns | Name | Description |
|---|---|---|
ARC_WIDGET_ARGS | ||
void | Construct | |
int32_t | AddSlot | |
int32_t | GetSlotCount | |
std::vector<float> | GetWeights | Weights as they are now (after drags); persist these. |
void | SetWeights | |
void | RestoreDefaultWeights | |
float | GetPaneSize | Main-axis size of a pane as last arranged. |
ArcRect | GetHandleRect | Absolute hit rect of the handle after pane index. |
int32_t | HandleAt | |
std::vector<float> | SolveSizes | Pure: pane sizes for weights over available, each at least its minimum while there is room for all the minimums. |
ArcVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
CReply | OnMouseButtonDown | |
CReply | OnMouseButtonUp | |
CReply | OnMouseMove | |
CReply | OnMouseButtonDoubleClick | |
void | OnMouseLeave | |
void | OnMouseCaptureLost | |
EArcCursorType | OnCursorQuery | |
bool | ClaimsPointerExclusively | |
bool | CanSkipArrange | |
int32_t | GetNumChildren | |
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.0fConstruct
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() constGetWeights
C++
std::vector<float> GetWeights() constWeights 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) constMain-axis size of a pane as last arranged.
GetHandleRect
C++
ArcRect GetHandleRect(int32_t index) constAbsolute hit rect of the handle after pane index.
HandleAt
C++
int32_t HandleAt(const ArcVec2& absolutePosition) constSolveSizes
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 overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CArcPaintArgs& args, const CGeometry& geo, CArcUIRenderer& renderer, int32_t layerId) const overrideOnMouseButtonDown
C++
CReply OnMouseButtonDown(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonUp
C++
CReply OnMouseButtonUp(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseMove
C++
CReply OnMouseMove(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseButtonDoubleClick
C++
CReply OnMouseButtonDoubleClick(const CGeometry& geo, const CPointerEvent& event) overrideOnMouseLeave
C++
void OnMouseLeave(const CPointerEvent& event) overrideOnMouseCaptureLost
C++
void OnMouseCaptureLost() overrideOnCursorQuery
C++
EArcCursorType OnCursorQuery(const CGeometry& geo, const CPointerEvent& event) const overrideClaimsPointerExclusively
C++
bool ClaimsPointerExclusively(const CGeometry& geo, const ArcVec2& absolutePosition) const overrideCanSkipArrange
C++
bool CanSkipArrange() const overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<AWidget> GetChildAt(int32_t index) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from Arc/Widgets/ASplitBox.h via arc.json · Nov 5, 2026Version 1.0.0