|
OpenASIP 2.2
|
#include <SocketContainerFigure.hh>


Public Member Functions | |
| SocketContainerFigure () | |
| virtual | ~SocketContainerFigure () |
Public Member Functions inherited from Figure | |
| Figure () | |
| virtual | ~Figure () |
| wxPoint | location () const |
| void | setLocation (wxPoint point) |
| void | setX (int x) |
| void | setY (int y) |
| void | setPreferredX (int x) |
| bool | xSet () const |
| void | clearXSetFlag () |
| virtual wxRect | bounds () const |
| virtual wxRect | virtualBounds () const |
| void | setBounds (wxSize bounds) |
| void | setWidth (int width) |
| void | setHeight (int height) |
| virtual void | addChild (Figure *child) |
| int | childCount () const |
| Figure * | child (int index) const |
| virtual void | layout (wxDC *dc) |
| virtual void | draw (wxDC *dc) |
| void | highlight (const wxColour &colour) |
| void | clearHighlight () |
| void | setOptions (MachineCanvasOptions *options) |
| MachineCanvasOptions * | options () |
Protected Member Functions | |
| virtual void | layoutChildren (wxDC *) |
| virtual void | layoutSelf (wxDC *) |
Protected Member Functions inherited from Figure | |
| virtual void | drawSelf (wxDC *dc) |
| void | drawChildren (wxDC *dc) |
Private Member Functions | |
| SocketContainerFigure & | operator= (SocketContainerFigure &old) |
| Assignment not allowed. | |
| SocketContainerFigure (SocketContainerFigure &old) | |
| Copying not allowed. | |
Additional Inherited Members | |
Protected Attributes inherited from Figure | |
| wxPoint | location_ |
| Top-left location of the Figure's bounding rectangle. | |
| wxSize | size_ |
| wxSize of the Figure's bounding rectangle. | |
| wxSize | minSize_ |
| Figure's minimum size. | |
| std::vector< Figure * > | children_ |
| Figure's children. | |
| bool | xSet_ |
| Tells if x-coordinate has been fixed. | |
| bool | laidOut_ |
| Tells whether the Figure and its children have been laid out or not. | |
| bool | drawn_ |
| Tells whether the Figure and its children have been drawn or not. | |
| wxColour | highlight_ |
| Highlight colour. | |
| bool | highlighted_ |
| Tells if the figure is highlighted. | |
| MachineCanvasOptions * | options_ |
| Options which are used for customizing figures. | |
Figure of a container EditPart for sockets.
Definition at line 46 of file SocketContainerFigure.hh.
| SocketContainerFigure::SocketContainerFigure | ( | ) |
The Constructor.
Definition at line 44 of file SocketContainerFigure.cc.
|
virtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Lays out child sockets.
| dc | Device context. |
Reimplemented from Figure.
Definition at line 59 of file SocketContainerFigure.cc.
References Figure::children_, Figure::location_, Figure::setX(), Figure::size_, MachineCanvasLayoutConstraints::SOCKET_SPACE, and MachineCanvasLayoutConstraints::SOCKET_WIDTH.

|
protectedvirtual |
Calculates and sets the width of the container.
Depends on the amount and position of sockets.
Reimplemented from Figure.
Definition at line 89 of file SocketContainerFigure.cc.
References Figure::bounds(), Figure::children_, Figure::location(), Figure::location_, Figure::size_, and MachineCanvasLayoutConstraints::SOCKET_WIDTH.

|
private |
Assignment not allowed.