QtBase
v6.3.1
|
The QPainterPath::Element class specifies the position and type of a subpath. More...
#include <qpainterpath.h>
Public Member Functions | |
bool | isMoveTo () const |
bool | isLineTo () const |
bool | isCurveTo () const |
operator QPointF () const | |
bool | operator== (const Element &e) const |
the x coordinate of the element's position. More... | |
bool | operator!= (const Element &e) const |
Public Attributes | |
qreal | x |
qreal | y |
ElementType | type |
The QPainterPath::Element class specifies the position and type of a subpath.
\inmodule QtGui
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.
Definition at line 74 of file qpainterpath.h.
|
inline |
Returns true
if the element is a curve, otherwise returns false
.
Definition at line 82 of file qpainterpath.h.
|
inline |
Returns true
if the element is a line, otherwise returns false
.
Definition at line 81 of file qpainterpath.h.
|
inline |
Returns true
if the element is moving the current position, otherwise returns false
.
Definition at line 80 of file qpainterpath.h.
|
inline |
|
inline |
Returns true
if this element is not equal to other; otherwise returns false
.
Definition at line 88 of file qpainterpath.h.
the x coordinate of the element's position.
\variable QPainterPath::Element::x
\variable QPainterPath::Element::y
the y coordinate of the element's position.
\variable QPainterPath::Element::type
the type of element
Returns true
if this element is equal to other; otherwise returns false
.
Definition at line 86 of file qpainterpath.h.
ElementType QPainterPath::Element::type |
Definition at line 78 of file qpainterpath.h.
qreal QPainterPath::Element::x |
Definition at line 76 of file qpainterpath.h.
qreal QPainterPath::Element::y |
Definition at line 77 of file qpainterpath.h.