#include <InputSocketFigure.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 input socket.
Definition at line 46 of file InputSocketFigure.hh.
◆ InputSocketFigure() [1/2]
InputSocketFigure::InputSocketFigure |
( |
| ) |
|
◆ ~InputSocketFigure()
InputSocketFigure::~InputSocketFigure |
( |
| ) |
|
|
virtual |
◆ InputSocketFigure() [2/2]
◆ drawSelf()
void InputSocketFigure::drawSelf |
( |
wxDC * |
dc | ) |
|
|
protectedvirtual |
Draws the input socket's Figure on the given device context.
- Parameters
-
Reimplemented from Figure.
Definition at line 61 of file InputSocketFigure.cc.
61 {
62
64 dc->SetPen(pen);
68 }
69 dc->SetBrush(brush);
70
72
73 wxPoint point1 = wxPoint(
size_.GetWidth()/2, 0);
74 wxPoint point2 = wxPoint(0, triangleHeight);
75 wxPoint point3 = wxPoint(
size_.GetWidth(), triangleHeight);
76 wxPoint trianglePoints[3] = {point1, point2, point3};
77
79 dc->DrawRectangle(
81 size_.GetHeight() - triangleHeight);
82
83}
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 InputSocketFigure::DEFAULT_BG_COLOUR = wxColour(255, 255, 255) |
|
staticprivate |
◆ DEFAULT_COLOUR
const wxColour InputSocketFigure::DEFAULT_COLOUR = wxColour(0, 0, 0) |
|
staticprivate |
The documentation for this class was generated from the following files: