The QPainterPath::Element class specifies the position and type of a subpath. More...
#include <QPainterPath>
bool | isCurveTo () const |
bool | isLineTo () const |
bool | isMoveTo () const |
operator QPointF () const | |
bool | operator!= ( const Element & other ) const |
bool | operator== ( const Element & other ) const |
ElementType | type |
qreal | x |
qreal | y |
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.
Returns true if the element is a curve, otherwise returns false.
See also type and QPainterPath::CurveToElement.
Returns true if the element is a line, otherwise returns false.
See also type and QPainterPath::LineToElement.
Returns true if the element is moving the current position, otherwise returns false.
See also type and QPainterPath::MoveToElement.
Returns the element's position.
Returns true if this element is not equal to other; otherwise returns false.
This function was introduced in Qt 4.2.
See also operator==().
Returns true if this element is equal to other; otherwise returns false.
This function was introduced in Qt 4.2.
See also operator!=().
This variable holds the type of element.
See also isCurveTo(), isLineTo(), and isMoveTo().
This variable holds the x coordinate of the element's position.
See also operator QPointF().
This variable holds the y coordinate of the element's position.
See also operator QPointF().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.