The window that gets added as a splitter pane with have it's Pour() function called when the size and position of the pane changes. This allows you to add Gview type objects into the pane and have them resize properly.
![]() |
class GSplitter : public GLayout { public: // Properties bool DoesSplitFollow() bool IsVertical() int Split(int i) int Split() void DoesSplitFollow(bool i) void IsVertical(bool i) // Views GWindow *GetViewA() GWindow *GetViewB() void SetViewA(GWindow *a, bool Border = true) void SetViewB(GWindow *b, bool Border = true) }; |
returns whether the split follows the right/bottom.
returns whether the split is vertical.
Argument | Description |
int i | Pixels from the top / left hand side that the split should be. Use negitive coordinates from the bottom / right hand side. |
Sets the split's position.
Get the split's position.
Argument | Description |
bool i | split position follows the bottom/right side. |
Set the split following behaviour.
Argument | Description |
bool i |
Sets the split to be vertical or not.
Returns the view in the top/left pane.
returns the view in the bottom / right pane.
Argument | Description |
GWindow *a | Window to insert in first pane. |
bool Border = true | true to draw a border around the window. |
Sets the first (top/left most) view.
Argument | Description |
GWindow *b | Window to insert into the view. |
bool Border = true | true to draw a border around the view. |
Sets the second (bottom/right most) view.