## wxDivisionShape

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

wxCompositeShape

See also

wxCompositeShape overview

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::wxDivisionShape

wxDivisionShape()

Constructor.

### wxDivisionShape::~wxDivisionShape

~wxDivisionShape()

Destructor.

### wxDivisionShape::AdjustBottom

void AdjustBottom(double bottom, bool test)

Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.

### wxDivisionShape::AdjustLeft

void AdjustLeft(double left, bool test)

Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.

### wxDivisionShape::AdjustRight

void AdjustRight(double right, bool test)

Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.

### wxDivisionShape::AdjustTop

void AdjustTop(double top, bool test)

Adjust a side, returning FALSE if it's not physically possible to adjust it to this point.

### wxDivisionShape::Divide

void Divide(int direction)

Divide this division into two further divisions, horizontally (direction is wxHORIZONTAL) or vertically (direction is wxVERTICAL).

### wxDivisionShape::EditEdge

void EditEdge(int side)

Interactively edit style of left or top side.

### wxDivisionShape::GetBottomSide

wxDivisionShape * GetBottomSide()

Returns a pointer to the division on the bottom side of this division.

### wxDivisionShape::GetHandleSide

int GetHandleSide()

Returns the side which the handle appears on (DIVISION_SIDE_LEFT or DIVISION_SIDE_TOP).

### wxDivisionShape::GetLeftSide

wxDivisionShape * GetLeftSide()

Returns a pointer to the division on the left side of this division.

### wxDivisionShape::GetLeftSideColour

wxString GetLeftSideColour()

Returns a pointer to the colour used for drawing the left side of the division.

### wxDivisionShape::GetLeftSidePen

wxPen * GetLeftSidePen()

Returns a pointer to the pen used for drawing the left side of the division.

### wxDivisionShape::GetRightSide

wxDivisionShape * GetRightSide()

Returns a pointer to the division on the right side of this division.

### wxDivisionShape::GetTopSide

wxDivisionShape * GetTopSide()

Returns a pointer to the division on the top side of this division.

### wxDivisionShape::GetTopSideColour

wxString GetTopSideColour()

Returns a pointer to the colour used for drawing the top side of the division.

### wxDivisionShape::GetTopSidePen

wxPen * GetTopSidePen()

Returns a pointer to the pen used for drawing the left side of the division.

### wxDivisionShape::ResizeAdjoining

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:

- DIVISION_SIDE_NONE
- DIVISION_SIDE_LEFT
- DIVISION_SIDE_TOP
- DIVISION_SIDE_RIGHT
- DIVISION_SIDE_BOTTOM

### wxDivisionShape::PopupMenu

void PopupMenu(double x, double y)

Popup the division menu.

### wxDivisionShape::SetBottomSide

void SetBottomSide(wxDivisionShape *shape)

Set the pointer to the division on the bottom side of this division.

### wxDivisionShape::SetHandleSide

int SetHandleSide()

Sets the side which the handle appears on (DIVISION_SIDE_LEFT or DIVISION_SIDE_TOP).

### wxDivisionShape::SetLeftSide

void SetLeftSide(wxDivisionShape *shape)

Set the pointer to the division on the left side of this division.

### wxDivisionShape::SetLeftSideColour

void SetLeftSideColour(const wxString& colour)

Sets the colour for drawing the left side of the division.

### wxDivisionShape::SetLeftSidePen

void SetLeftSidePen(wxPen *pen)

Sets the pen for drawing the left side of the division.

### wxDivisionShape::SetRightSide

void SetRightSide(wxDivisionShape *shape)

Set the pointer to the division on the right side of this division.

### wxDivisionShape::SetTopSide

void SetTopSide(wxDivisionShape *shape)

Set the pointer to the division on the top side of this division.

### wxDivisionShape::SetTopSideColour

void SetTopSideColour(const wxString& colour)

Sets the colour for drawing the top side of the division.

### wxDivisionShape::SetTopSidePen

void SetTopSidePen(wxPen *pen)

Sets the pen for drawing the top side of the division.