OpenASIP
2.0
|
#include <MoveFigure.hh>
Public Member Functions | |
MoveFigure (Figure *bus, Figure *source, Figure *target) | |
virtual | ~MoveFigure () |
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 | drawSelf (wxDC *dc) |
Protected Member Functions inherited from Figure | |
void | drawChildren (wxDC *dc) |
virtual void | layoutSelf (wxDC *) |
virtual void | layoutChildren (wxDC *) |
Private Attributes | |
Figure * | bus_ |
Figure of the bus where the move is done. More... | |
Figure * | source_ |
Figure of the source port. More... | |
Figure * | target_ |
Figure of the TargetPort. More... | |
Static Private Attributes | |
static const wxColour | DEFAULT_COLOUR = wxColour(255, 255, 0) |
Default colour of the figure. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Figure | |
wxPoint | location_ |
Top-left location of the Figure's bounding rectangle. More... | |
wxSize | size_ |
wxSize of the Figure's bounding rectangle. More... | |
wxSize | minSize_ |
Figure's minimum size. More... | |
std::vector< Figure * > | children_ |
Figure's children. More... | |
bool | xSet_ |
Tells if x-coordinate has been fixed. More... | |
bool | laidOut_ |
Tells whether the Figure and its children have been laid out or not. More... | |
bool | drawn_ |
Tells whether the Figure and its children have been drawn or not. More... | |
wxColour | highlight_ |
Highlight colour. More... | |
bool | highlighted_ |
Tells if the figure is highlighted. More... | |
MachineCanvasOptions * | options_ |
Options which are used for customizing figures. More... | |
Figure of a move.
Definition at line 41 of file MoveFigure.hh.
The Constructor.
bus | Figure of the bus which transports the move. |
source | Figure of the source port of the move. |
target | Figure of the target port of the move. |
Definition at line 45 of file MoveFigure.cc.
References Figure::laidOut_.
|
virtual |
|
protectedvirtual |
Draws the move figure on a device context.
dc | Device context where to draw the figure. |
Reimplemented from Figure.
Definition at line 65 of file MoveFigure.cc.
References assert, Figure::bounds(), bus_, MachineCanvasLayoutConstraints::BUS_SPACE, DEFAULT_COLOUR, Figure::location(), MachineCanvasLayoutConstraints::PORT_WIDTH, MachineCanvasLayoutConstraints::SOCKET_WIDTH, source_, and target_.
|
private |
Figure of the bus where the move is done.
Definition at line 53 of file MoveFigure.hh.
Referenced by drawSelf().
|
staticprivate |
Default colour of the figure.
Definition at line 51 of file MoveFigure.hh.
Referenced by drawSelf().
|
private |
|
private |