wxShapeFramework  1.13.0 beta
wxSFFlexGridShape Class Reference

Class encapsulates a rectangular shape derived from wxSFGridShape class which acts as a flexible grid-based container able to manage other assigned child shapes (it can control their position). The managed shapes are aligned into defined grid with a behaviour similar to classic wxWidget's wxFlexGridSizer class. More...

#include <FlexGridShape.h>

Inheritance diagram for wxSFFlexGridShape:
Collaboration diagram for wxSFFlexGridShape:

List of all members.

Public Member Functions

 XS_DECLARE_CLONABLE_CLASS (wxSFFlexGridShape)
 wxSFFlexGridShape ()
 Default constructor.
 wxSFFlexGridShape (const wxRealPoint &pos, const wxRealPoint &size, int rows, int cols, int cellspace, wxSFDiagramManager *manager)
 User constructor.
 wxSFFlexGridShape (const wxSFFlexGridShape &obj)
 Copy constructor.
virtual ~wxSFFlexGridShape ()
 Destructor.
virtual void DoChildrenLayout ()
 Do layout of assigned child shapes.

Private Attributes

wxXS::IntArray m_arrRowSizes
wxXS::IntArray m_arrColSizes
ShapePtrArray m_arrChildShapes

Detailed Description

Class encapsulates a rectangular shape derived from wxSFGridShape class which acts as a flexible grid-based container able to manage other assigned child shapes (it can control their position). The managed shapes are aligned into defined grid with a behaviour similar to classic wxWidget's wxFlexGridSizer class.


Constructor & Destructor Documentation

Default constructor.

wxSFFlexGridShape::wxSFFlexGridShape ( const wxRealPoint &  pos,
const wxRealPoint &  size,
int  rows,
int  cols,
int  cellspace,
wxSFDiagramManager manager 
)

User constructor.

Parameters:
posInitial position
sizeInitial size
rowsNumber of grid rows
colsNumber of grid columns
cellspaceAdditional space between managed shapes
managerPointer to parent diagram manager

Copy constructor.

Parameters:
objReference to the source object

Destructor.


Member Function Documentation

virtual void wxSFFlexGridShape::DoChildrenLayout ( ) [virtual]

Do layout of assigned child shapes.

Reimplemented from wxSFGridShape.


Member Data Documentation

ShapePtrArray wxSFFlexGridShape::m_arrChildShapes [private]
wxXS::IntArray wxSFFlexGridShape::m_arrColSizes [private]
wxXS::IntArray wxSFFlexGridShape::m_arrRowSizes [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines