Element Class
(QPainterPath::Element)The QPainterPath::Element class specifies the position and type of a subpath. More...
Header: | #include <Element> |
qmake: | QT += gui |
Public Functions
bool | isCurveTo() const |
bool | isLineTo() const |
bool | isMoveTo() const |
QPointF | operator QPointF() const |
bool | operator!=(const Element &e) const |
bool | operator==(const Element &e) const |
Public Variables
Detailed Description
The QPainterPath::Element class specifies the position and type of a subpath.
Once a QPainterPath object is constructed, subpaths like lines and curves can be added to the path (creating QPainterPath::LineToElement and QPainterPath::CurveToElement components).
The lines and curves stretch from the currentPosition() to the position passed as argument. The currentPosition() of the QPainterPath object is always the end position of the last subpath that was added (or the initial start point). The moveTo() function can be used to move the currentPosition() without adding a line or curve, creating a QPainterPath::MoveToElement component.
See also QPainterPath.
Member Function Documentation
bool Element::isCurveTo() const
bool Element::isLineTo() const
bool Element::isMoveTo() const
QPointF Element::operator QPointF() const
bool Element::operator!=(const Element &e) const
bool Element::operator==(const Element &e) const
Member Variable Documentation
QPainterPath::ElementType Element::type
This variable holds the type of element
See also isCurveTo(), isLineTo(), and isMoveTo().
qreal Element::x
This variable holds the x coordinate of the element's position.
See also operator QPointF().
qreal Element::y
This variable holds the y coordinate of the element's position.
See also operator QPointF().