wxShapeFramework  1.13.0 beta
wxSFSquareShape Class Reference

Class encapsulating the square shape. It extends the basic rectangular shape. More...

#include <FixedRectShape.h>

Inheritance diagram for wxSFSquareShape:
Collaboration diagram for wxSFSquareShape:

List of all members.

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.

Detailed Description

Class encapsulating the square shape. It extends the basic rectangular shape.

See also:
wxSFRectShape

Constructor & Destructor Documentation

Default constructor.

wxSFSquareShape::wxSFSquareShape ( const wxRealPoint &  pos,
double  size,
wxSFDiagramManager manager 
)

User constructor.

Parameters:
posInitial position
sizeInitial size
managerPointer to parent diagram manager

Copy constructor.

Parameters:
objReference to the source object
virtual wxSFSquareShape::~wxSFSquareShape ( ) [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
handleReference 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).

Parameters:
xHorizontal scale factor
yVertical scale factor
childrenTRUE if the shape's children shoould be scaled as well, otherwise the shape will be updated after scaling via Update() function.

Reimplemented from wxSFRectShape.


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