eric4.E4Canvas.E4CanvasArrow

Module implementing a canvas item subclass for an arrow.

Classes

E4CanvasArrow Class implementing an arrow canvas item subclass.

Functions

None


E4CanvasArrow

Class implementing an arrow canvas item subclass.

Derived from

E4CanvasLine

Methods

E4CanvasArrow Constructor
drawShape Public method to draw the shape.

E4CanvasArrow (Constructor)

E4CanvasArrow(canvas, origin = QPointF(0.0, 0.0), end = QPointF(0.0, 0.0), filled = False, type = NormalArrow)

Constructor

canvas
reference to the canvas object (E4Canvas)
origin
origin of the arrow (QPointF)
end
end point of the arrow (QPointF)
filled
flag indicating a filled arrow head (boolean)
type
arrow type (NormalArrow, WideArrow)

E4CanvasArrow.drawShape

drawShape(painter)

Public method to draw the shape.

painter
reference to the painter object (QPainter)

Up