#include <OutputSocketFigure.hh>
|
static const wxColour | DEFAULT_COLOUR = wxColour(0, 0, 0) |
| Default colour for the figure.
|
|
static const wxColour | DEFAULT_BG_COLOUR = wxColour(255, 255, 255) |
| Default background colour for the figure.
|
|
Figure of an output socket.
Definition at line 46 of file OutputSocketFigure.hh.
◆ OutputSocketFigure() [1/2]
OutputSocketFigure::OutputSocketFigure |
( |
| ) |
|
◆ ~OutputSocketFigure()
OutputSocketFigure::~OutputSocketFigure |
( |
| ) |
|
|
virtual |
◆ OutputSocketFigure() [2/2]
◆ drawSelf()
void OutputSocketFigure::drawSelf |
( |
wxDC * |
dc | ) |
|
|
protectedvirtual |
Draws the output socket's Figure on the given device context.
- Parameters
-
Reimplemented from Figure.
Definition at line 61 of file OutputSocketFigure.cc.
61 {
63 dc->SetPen(pen);
67 }
68 dc->SetBrush(brush);
69
71
72 wxPoint point1 = wxPoint(0, 0);
73 wxPoint point2 = wxPoint(
size_.GetWidth(), 0);
74 wxPoint point3 = wxPoint(
size_.GetWidth()/2, triangleHeight);
75 wxPoint trianglePoints[3] = {point1, point2, point3};
76
78 dc->DrawRectangle(
80 size_.GetHeight() - triangleHeight);
81}
static const int TRIANGLE_HEIGHT
Size of the sockets' direction triangle.
References DEFAULT_BG_COLOUR, DEFAULT_COLOUR, Figure::highlight_, Figure::highlighted_, Figure::location_, Figure::size_, and MachineCanvasLayoutConstraints::TRIANGLE_HEIGHT.
◆ operator=()
◆ DEFAULT_BG_COLOUR
const wxColour OutputSocketFigure::DEFAULT_BG_COLOUR = wxColour(255, 255, 255) |
|
staticprivate |
◆ DEFAULT_COLOUR
const wxColour OutputSocketFigure::DEFAULT_COLOUR = wxColour(0, 0, 0) |
|
staticprivate |
The documentation for this class was generated from the following files: