A division shape is like a composite in that it can contain further objects, but is used exclusively to divide another shape into regions, or divisions. A wxDivisionShape is never free-standing.
Derived from
See also
Members
wxDivisionShape::wxDivisionShape
wxDivisionShape::~wxDivisionShape
wxDivisionShape::AdjustBottom
wxDivisionShape::AdjustLeft
wxDivisionShape::AdjustRight
wxDivisionShape::AdjustTop
wxDivisionShape::Divide
wxDivisionShape::EditEdge
wxDivisionShape::GetBottomSide
wxDivisionShape::GetHandleSide
wxDivisionShape::GetLeftSide
wxDivisionShape::GetLeftSideColour
wxDivisionShape::GetLeftSidePen
wxDivisionShape::GetRightSide
wxDivisionShape::GetTopSide
wxDivisionShape::GetTopSideColour
wxDivisionShape::GetTopSidePen
wxDivisionShape::ResizeAdjoining
wxDivisionShape::PopupMenu
wxDivisionShape::SetBottomSide
wxDivisionShape::SetHandleSide
wxDivisionShape::SetLeftSide
wxDivisionShape::SetLeftSideColour
wxDivisionShape::SetLeftSidePen
wxDivisionShape::SetRightSide
wxDivisionShape::SetTopSide
wxDivisionShape::SetTopSideColour
wxDivisionShape::SetTopSidePen
wxDivisionShape()
Constructor.
~wxDivisionShape()
Destructor.
void AdjustBottom(double bottom, bool test)
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
void AdjustLeft(double left, bool test)
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
void AdjustRight(double right, bool test)
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
void AdjustTop(double top, bool test)
Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.
void Divide(int direction)
Divide this division into two further divisions, horizontally (direction is wxHORIZONTAL) or vertically (direction is wxVERTICAL).
void EditEdge(int side)
Interactively edit style of left or top side.
wxDivisionShape * GetBottomSide()
Returns a pointer to the division on the bottom side of this division.
int GetHandleSide()
Returns the side which the handle appears on (DIVISION_SIDE_LEFT or DIVISION_SIDE_TOP).
wxDivisionShape * GetLeftSide()
Returns a pointer to the division on the left side of this division.
wxString GetLeftSideColour()
Returns a pointer to the colour used for drawing the left side of the division.
wxPen * GetLeftSidePen()
Returns a pointer to the pen used for drawing the left side of the division.
wxDivisionShape * GetRightSide()
Returns a pointer to the division on the right side of this division.
wxDivisionShape * GetTopSide()
Returns a pointer to the division on the top side of this division.
wxString GetTopSideColour()
Returns a pointer to the colour used for drawing the top side of the division.
wxPen * GetTopSidePen()
Returns a pointer to the pen used for drawing the left side of the division.
void ResizeAdjoining(int side, double newPos, bool test)
Resize adjoining divisions at the given side. If test is TRUE, just see whether it's possible for each adjoining region, returning FALSE if it's not.
side can be one of:
void PopupMenu(double x, double y)
Popup the division menu.
void SetBottomSide(wxDivisionShape *shape)
Set the pointer to the division on the bottom side of this division.
int SetHandleSide()
Sets the side which the handle appears on (DIVISION_SIDE_LEFT or DIVISION_SIDE_TOP).
void SetLeftSide(wxDivisionShape *shape)
Set the pointer to the division on the left side of this division.
void SetLeftSideColour(const wxString& colour)
Sets the colour for drawing the left side of the division.
void SetLeftSidePen(wxPen *pen)
Sets the pen for drawing the left side of the division.
void SetRightSide(wxDivisionShape *shape)
Set the pointer to the division on the right side of this division.
void SetTopSide(wxDivisionShape *shape)
Set the pointer to the division on the top side of this division.
void SetTopSideColour(const wxString& colour)
Sets the colour for drawing the top side of the division.
void SetTopSidePen(wxPen *pen)
Sets the pen for drawing the top side of the division.