9 #include "cviewcontainer.h" 12 class CSplitViewSeparatorView;
53 void storeViewSizes ();
55 bool addViewToSeparator (int32_t sepIndex,
CView* view);
60 bool addView (
CView* pView,
const CRect& mouseableArea,
bool mouseEnabled =
true)
override;
63 bool removeAll (
bool withForget =
true)
override;
69 bool requestNewSeparatorSize (CSplitViewSeparatorView* separatorView,
const CRect& newSize);
72 void resizeFirstView (
CPoint diff);
73 void resizeSecondView (
CPoint diff);
74 void resizeLastView (
CPoint diff);
75 void resizeViewsEqual (
CPoint diff);
79 CCoord separatorWidth;
126 #endif // __csplitview__ all views will be resized equally
Definition: csplitview.h:33
virtual bool storeViewSize(int32_t index, const CCoord &size, CSplitView *splitView)=0
void invalid() override
mark whole view as invalid
Definition: cviewcontainer.cpp:618
only the second view will be resized
Definition: csplitview.h:31
Container Class of CView objects.
Definition: cviewcontainer.h:52
a split container view with separators between its child views
Definition: csplitview.h:20
virtual void setResizeMethod(ResizeMethod method)
set the resize method, see CSplitView::ResizeMethod
Definition: csplitview.cpp:76
bool removed(CView *parent) override
view is removed from parent view
Definition: csplitview.cpp:468
Rect structure.
Definition: crect.h:17
Style getStyle() const
get the style of the split view, see CSplitView::Style
Definition: csplitview.h:44
A drawing context encapsulates the drawing context of the underlying OS.
Definition: cdrawcontext.h:29
only the first view will be resized
Definition: csplitview.h:30
ResizeMethod
Definition: csplitview.h:29
bool attached(CView *parent) override
view is attached to a parent view
Definition: csplitview.cpp:475
virtual void drawSplitViewSeparator(CDrawContext *context, const CRect &size, int32_t flags, int32_t index, CSplitView *splitView)=0
Style
Definition: csplitview.h:23
CCoord getSeparatorWidth() const
get the width of the separators
Definition: csplitview.h:50
subviews will be horizontally arranged
Definition: csplitview.h:24
bool removeAll(bool withForget=true) override
remove all child views
Definition: csplitview.cpp:434
ResizeMethod getResizeMethod() const
get the resize method, see CSplitView::ResizeMethod
Definition: csplitview.h:47
Definition: customcontrols.cpp:8
Definition: csplitview.h:110
virtual ISplitViewSeparatorDrawer * getSplitViewSeparatorDrawer(CSplitView *splitView)=0
bool sizeToFit() override
resize view to optimal size
Definition: csplitview.cpp:440
Split View Controller.
Definition: csplitview.h:91
only the last view will be resized
Definition: csplitview.h:32
virtual void setSeparatorWidth(CCoord width)
set the width of the separators
Definition: csplitview.cpp:82
Base Class of all view objects.
Definition: cview.h:44
bool addView(CView *pView) override
add a child view
Definition: csplitview.cpp:356
bool removeView(CView *pView, bool withForget=true) override
remove a child view
Definition: csplitview.cpp:402
virtual void setStyle(Style s)
set the style of the split view, see CSplitView::Style
Definition: csplitview.cpp:66
subviews will be vertically arranged
Definition: csplitview.h:25
virtual bool restoreViewSize(int32_t index, CCoord &size, CSplitView *splitView)=0
virtual bool getSplitViewSizeConstraint(int32_t index, CCoord &minSize, CCoord &maxSize, CSplitView *splitView)=0
Point structure.
Definition: cpoint.h:17
void setViewSize(const CRect &rect, bool invalid=true) override
set views size
Definition: csplitview.cpp:323