Envision
A visual programming IDE for object-oriented languages
|
Static Public Member Functions | |
static QPolygonF | arrowRotatedBoundingRect (QPointF from, QPointF to, int width, bool arrowTipAtStart, bool arrowTipAtEnd) |
static void | drawArrow (QPainter *painter, QPointF begin, QPointF end, const QBrush &arrowBrush, const QPen &linePen, bool startArrow, bool endArrow, int outlineSize) |
Draws an arrow on screen. More... | |
Static Private Member Functions | |
static QPointF | drawHead (QPainter *painter, QPolygonF arrowHead, QPointF position, double angle) |
Static Private Attributes | |
static int | ARROW_TIP_EXTRA_LENGTH_ = 10 |
static int | ARROW_TIP_EXTRA_WIDTH_ = 2 |
|
static |
|
static |
Draws an arrow on screen.
painter | The QPainter to use for the drawing |
begin | The start point of the arrow |
end | The end point of the arrow |
arrowPen | The pen to use for drawing the arrow head |
linePen | The pen to use for drawing the line |
startArrow | Is there an arrow to the start point? |
endArrow | Is there an arrow to the end point? |
outlineSize | The size of the arrow head |
|
staticprivate |
|
staticprivate |
|
staticprivate |