|
OpenASIP 2.2
|
#include <SelectionFigure.hh>


Public Member Functions | |
| SelectionFigure (Figure *selection) | |
| virtual | ~SelectionFigure () |
| void | setSelection (Figure *selection) |
| virtual wxRect | bounds () const |
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 | 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 Member Functions | |
| SelectionFigure & | operator= (SelectionFigure &old) |
| Assignment not allowed. | |
| SelectionFigure (SelectionFigure &old) | |
| Copying not allowed. | |
Private Attributes | |
| Figure * | selection_ |
| Selected part figure. | |
Static Private Attributes | |
| static const int | SELECT_BOX_MARGIN = 4 |
| Width of the margin between the part figure and selection box. | |
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 component selection.
Definition at line 45 of file SelectionFigure.hh.
| SelectionFigure::SelectionFigure | ( | Figure * | selection | ) |
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the Figure's bounding rectangle.
Reimplemented from Figure.
Definition at line 111 of file SelectionFigure.cc.
References Figure::bounds(), bounds(), SELECT_BOX_MARGIN, and selection_.
Referenced by bounds(), and drawSelf().

|
protectedvirtual |
Draws the selection's figure on the given device context.
Reimplemented from Figure.
Definition at line 61 of file SelectionFigure.cc.
References Figure::bounds(), bounds(), SELECT_BOX_MARGIN, and selection_.

|
private |
Assignment not allowed.
| void SelectionFigure::setSelection | ( | Figure * | selection | ) |
Set the selected figure.
Selection figure will be drawn around the selected figure.
| selection | Figure of the selected part. |
Definition at line 100 of file SelectionFigure.cc.
References selection_.
Referenced by SelectTool::leftClick().
|
staticprivate |
Width of the margin between the part figure and selection box.
Definition at line 65 of file SelectionFigure.hh.
Referenced by bounds(), and drawSelf().
|
private |
Selected part figure.
Definition at line 62 of file SelectionFigure.hh.
Referenced by bounds(), drawSelf(), and setSelection().