class

MSplitter

Module
Miri
Header
#include "Miri/Widgets/MSplitter.h"
Namespace
Miri

Properties

TypeNameDescription
TSharedPtr<MWidget>_Second
MiriDelegate<void(float)>OnRatioChanged
MiriDelegate<void(float)>OnFixedSizeChanged

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
WidgetArgsType&First
WidgetArgsType&Second
MIRI_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
EMiriCursorTypeOnCursorQuery
voidOnMouseCaptureLost
MiriVec2ComputeDesiredSize
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<MWidget>GetChildAt
boolCanCacheDesiredSizeBoth halves plus the handle.
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MSplitter) MIRI_ARG(EOrientation, Orientation) MIRI_ARG(float, InitialRatio) MIRI_ARG(float, HandleSize) MIRI_ARG(float, MinRatio) MIRI_ARG(float, MaxRatio) MIRI_ARG(float, FixedFirst) MIRI_ARG(float, FixedSecond) MIRI_ARG(float, MinFixedSize) MIRI_ARG(float, MaxFixedSize) MIRI_ARG(float, MinOtherSize) MIRI_ARG(MiriColor, HandleColor) MIRI_ARG(MiriColor, HandleHoverColor) TSharedPtr<MWidget> _First

First

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

Second

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

MIRI_WIDGET_ARGS_END

C++
MIRI_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 MiriVec2& 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 MiriVec2& absolutePosition) const override

OnCursorQuery

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

OnMouseCaptureLost

C++
void OnMouseCaptureLost() override

ComputeDesiredSize

C++
MiriVec2 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 CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& 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<MWidget> 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 Miri/Widgets/MSplitter.h via miri.json · Dec 5, 2026Version 1.1.0