|
wxShapeFramework
1.13.0 beta
|
Base class for all layouting algorithms. The class containts one abstract function modifying shapes' layout and several helper functions. More...
#include <AutoLayout.h>

Public Member Functions | |
| virtual | ~wxSFLayoutAlgorithm () |
| Destructor. | |
| virtual void | DoLayout (ShapeList &shapes)=0 |
| Function performing the layout change. All derived classes must implement it. | |
Protected Member Functions | |
| wxRect | GetBoundingBox (const ShapeList &shapes) |
| Calculate bounding box surroundig given shapes. | |
| wxSize | GetShapesExtent (const ShapeList &shapes) |
| Get overall extent of all given shapes calculated as a sum of their width and height. | |
| wxRealPoint | GetShapesCenter (const ShapeList &shapes) |
| Get center point of given shapes. | |
| wxRealPoint | GetTopLeft (const ShapeList &shapes) |
| Get top-left point of bounding box surrounding given shapes. | |
Base class for all layouting algorithms. The class containts one abstract function modifying shapes' layout and several helper functions.
| virtual wxSFLayoutAlgorithm::~wxSFLayoutAlgorithm | ( | ) | [inline, virtual] |
Destructor.
| virtual void wxSFLayoutAlgorithm::DoLayout | ( | ShapeList & | shapes | ) | [pure virtual] |
Function performing the layout change. All derived classes must implement it.
| shapes | List of shapes which should be layouted |
Implemented in wxSFLayoutMesh, wxSFLayoutHorizontalTree, wxSFLayoutVerticalTree, and wxSFLayoutCircle.
| wxRect wxSFLayoutAlgorithm::GetBoundingBox | ( | const ShapeList & | shapes | ) | [protected] |
Calculate bounding box surroundig given shapes.
| shapes | List of shapes |
| wxRealPoint wxSFLayoutAlgorithm::GetShapesCenter | ( | const ShapeList & | shapes | ) | [protected] |
Get center point of given shapes.
| shapes | List of shapes |
| wxSize wxSFLayoutAlgorithm::GetShapesExtent | ( | const ShapeList & | shapes | ) | [protected] |
Get overall extent of all given shapes calculated as a sum of their width and height.
| shapes | List of shapes |
| wxRealPoint wxSFLayoutAlgorithm::GetTopLeft | ( | const ShapeList & | shapes | ) | [protected] |
Get top-left point of bounding box surrounding given shapes.
| shapes | List of shapes |