30 TuiSplitter(Orientation orientation = Horizontal, ObjectBase *parent =
nullptr);
36 TuiWidget *firstWidget()
const {
return _first; }
37 TuiWidget *secondWidget()
const {
return _second; }
41 double splitRatio()
const {
return _splitRatio; }
43 Orientation orientation()
const {
return _orientation; }
45 Size2Di32 sizeHint()
const override;
48 void paintEvent(PaintEvent *e)
override;
49 void resizeEvent(ResizeEvent *e)
override;
50 void keyPressEvent(KeyEvent *e)
override;
51 void mouseEvent(MouseEvent *e)
override;
54 Orientation _orientation;
55 TuiWidget *_first =
nullptr;
56 TuiWidget *_second =
nullptr;
57 double _splitRatio = 0.5;
58 bool _dragging =
false;
60 void updateChildGeometry();