class SplitterFrame : public CtrlFrame, private Ctrl
This class acts as an resizable frame area.
virtual void Serialize(Stream& s)
Serializes actual SplitterFrame size.
SplitterFrame& Set(Ctrl& c, int size, int type)
Sets SplitterFrame to contain c widget, with initial size (in pixels). type determines the position - it can be SplitterFrame::LEFT, SplitterFrame::RIGHT, SplitterFrame::TOP or SplitterFrame::BOTTOM.
SplitterFrame& Left(Ctrl& c, int size)
Same as Set(c , size, SplitterFrame::LEFT).
SplitterFrame& Top(Ctrl& c, int size)
Same as Set(c , size, SplitterFrame::TOP).
SplitterFrame& Right(Ctrl& c, int size)
Same as Set(c , size, SplitterFrame::RIGHT).
SplitterFrame& Bottom(Ctrl& c, int size)
Same as Set(c , size, SplitterFrame::BOTTOM).
SplitterFrame& MinSize(int sz)
Sets the minimal size.
SplitterFrame& SizeMin(int sz)
Sets the minimal size of next frame in the list or final view if there is none - this in fact determines the maximum size of SplitterFrame.
int GetType() const
Returns the type (in pixels).
virtual int GetSize() const
Returns the current size.
void SetSize(int sz)
Sets the size (in pixels).
|