OpenASIP
2.0
|
#include <SegmentFigure.hh>
Public Member Functions | |
SegmentFigure (int bitWidth) | |
virtual | ~SegmentFigure () |
void | setLast (bool last) |
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 Member Functions | |
SegmentFigure & | operator= (SegmentFigure &old) |
Assignment not allowed. More... | |
SegmentFigure (SegmentFigure &old) | |
Copying not allowed. More... | |
Private Attributes | |
bool | last_ |
True if segment is the last segment in a bus. More... | |
Static Private Attributes | |
static const wxColour | DEFAULT_COLOUR = wxColour(0, 0, 0) |
Default colour for 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 segment.
Definition at line 46 of file SegmentFigure.hh.
SegmentFigure::SegmentFigure | ( | int | bitWidth | ) |
The Constructor.
Definition at line 45 of file SegmentFigure.cc.
References MachineCanvasLayoutConstraints::BUS_MIN_WIDTH, Figure::minSize_, MathTools::requiredBits(), MachineCanvasLayoutConstraints::SEGMENT_HEIGHT_BASE, and Figure::size_.
|
virtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Draws the segment's Figure on the given device context.
dc | The device context. |
Reimplemented from Figure.
Definition at line 66 of file SegmentFigure.cc.
References DEFAULT_COLOUR, Figure::highlight_, Figure::highlighted_, last_, Figure::location_, and Figure::size_.
|
private |
Assignment not allowed.
void SegmentFigure::setLast | ( | bool | last | ) |
|
staticprivate |
Default colour for the figure.
Definition at line 66 of file SegmentFigure.hh.
Referenced by drawSelf().
|
private |
True if segment is the last segment in a bus.
Definition at line 63 of file SegmentFigure.hh.
Referenced by drawSelf().