wxShapeFramework
1.13.0 beta
|
Class encapsulating the square shape. It extends the basic rectangular shape. More...
#include <FixedRectShape.h>
Public Member Functions | |
XS_DECLARE_CLONABLE_CLASS (wxSFSquareShape) | |
wxSFSquareShape (void) | |
Default constructor. | |
wxSFSquareShape (const wxRealPoint &pos, double size, wxSFDiagramManager *manager) | |
User constructor. | |
wxSFSquareShape (const wxSFSquareShape &obj) | |
Copy constructor. | |
virtual | ~wxSFSquareShape () |
Destructor. | |
virtual void | Scale (double x, double y, bool children=sfWITHCHILDREN) |
Scale the shape size by in both directions. The function can be overrided if necessary (new implementation should call default one ore scale shape's children manualy if neccesary). | |
virtual void | OnHandle (wxSFShapeHandle &handle) |
Event handler called during dragging of the shape handle. The function can be overrided if necessary. |
Class encapsulating the square shape. It extends the basic rectangular shape.
wxSFSquareShape::wxSFSquareShape | ( | void | ) |
Default constructor.
wxSFSquareShape::wxSFSquareShape | ( | const wxRealPoint & | pos, |
double | size, | ||
wxSFDiagramManager * | manager | ||
) |
User constructor.
pos | Initial position |
size | Initial size |
manager | Pointer to parent diagram manager |
wxSFSquareShape::wxSFSquareShape | ( | const wxSFSquareShape & | obj | ) |
Copy constructor.
obj | Reference to the source object |
virtual wxSFSquareShape::~wxSFSquareShape | ( | ) | [virtual] |
Destructor.
virtual void wxSFSquareShape::OnHandle | ( | wxSFShapeHandle & | handle | ) | [virtual] |
Event handler called during dragging of the shape handle. The function can be overrided if necessary.
The function is called by the framework (by the shape canvas). Default implementation does nothing.
handle | Reference to dragged handle |
Reimplemented from wxSFRectShape.
virtual void wxSFSquareShape::Scale | ( | double | x, |
double | y, | ||
bool | children = sfWITHCHILDREN |
||
) | [virtual] |
Scale the shape size by in both directions. The function can be overrided if necessary (new implementation should call default one ore scale shape's children manualy if neccesary).
x | Horizontal scale factor |
y | Vertical scale factor |
children | TRUE if the shape's children shoould be scaled as well, otherwise the shape will be updated after scaling via Update() function. |
Reimplemented from wxSFRectShape.