Qt 4.8
|
The QPainterPath::Element class specifies the position and type of a subpath. More...
#include <qpainterpath.h>
Public Functions | |
bool | isCurveTo () const |
Returns true if the element is a curve, otherwise returns false. More... | |
bool | isLineTo () const |
Returns true if the element is a line, otherwise returns false. More... | |
bool | isMoveTo () const |
Returns true if the element is moving the current position, otherwise returns false. More... | |
operator QPointF () const | |
Returns the element's position. More... | |
bool | operator!= (const Element &e) const |
Returns true if this element is not equal to other; otherwise returns false. More... | |
bool | operator== (const Element &e) const |
Returns true if this element is equal to other; otherwise returns false. More... | |
Public Variables | |
ElementType | type |
the type of element More... | |
qreal | x |
the x coordinate of the element's position. More... | |
qreal | y |
the y coordinate of the element's position. More... | |
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.
Definition at line 77 of file qpainterpath.h.
|
inline |
Returns true if the element is a curve, otherwise returns false.
Definition at line 85 of file qpainterpath.h.
Referenced by QGLLineMaskGenerator::generateTrapezoids().
|
inline |
Returns true if the element is a line, otherwise returns false.
Definition at line 84 of file qpainterpath.h.
Referenced by QGLLineMaskGenerator::generateTrapezoids(), QPathClipper::pathToRect(), and qt_vg_pathToRect().
|
inline |
Returns true if the element is moving the current position, otherwise returns false.
Definition at line 83 of file qpainterpath.h.
Referenced by QPathClipper::pathToRect(), and qt_vg_pathToRect().
|
inline |
Returns the element's position.
Definition at line 87 of file qpainterpath.h.
|
inline |
Returns true if this element is not equal to other; otherwise returns false.
Definition at line 91 of file qpainterpath.h.
|
inline |
Returns true if this element is equal to other; otherwise returns false.
Definition at line 89 of file qpainterpath.h.
QPainterPath::Element::type |
the type of element
Definition at line 81 of file qpainterpath.h.
Referenced by addLineTo(), QPathSegments::addPath(), bezierAtT(), charString(), QWin32PrintEnginePrivate::composeGdiPath(), QPainterPath::computeBoundingRect(), QPainterPath::contains(), QOutlineMapper::convertPath(), convertPath(), QVectorPath::convertToPainterPath(), QSvgPaintEngine::drawPath(), QDirectFBPaintEngine::fill(), QPdf::generatePath(), QPathClipper::handleCrossingEdges(), QGLMaskTextureCache::hash(), QPainterPath::intersects(), QPainterPath::length(), mapProjective(), QPainterPathData::maybeMoveTo(), nextBezier(), operator<<(), operator==(), pathClosed(), QOpenGLPaintEnginePrivate::pathToVertexArrays(), QPainterPath::percentAtLength(), qt_find_ellipse_coords(), qt_ft_outline_cubic_to(), qt_mac_compose_path(), qt_painterpath_check_crossing(), QVectorPathConverter::QVectorPathData::QVectorPathData(), QRasterizer::rasterize(), QStrokerOps::strokePath(), QOpenGLPaintEnginePrivate::strokePathFastPen(), QPainterPath::toReversed(), and QPainterPath::toSubpathPolygons().
QPainterPath::Element::x |
the x coordinate of the element's position.
Definition at line 79 of file qpainterpath.h.
Referenced by addGlyphToPath(), charString(), QPainterPathData::close(), QWin32PrintEnginePrivate::composeGdiPath(), QPainterPath::computeBoundingRect(), QPainterPath::computeControlPointRect(), convertPath(), QVectorPath::convertToPainterPath(), QPainterPath::cubicTo(), QX11PaintEngine::drawFreetype(), QSvgPaintEngine::drawPath(), QPdf::generatePath(), QGLStrokeCache::getStrokedPath(), QGLMaskTextureCache::hash(), QPainterPathData::isClosed(), QMatrix::map(), QTransform::map(), operator<<(), operator==(), QVGPaintEnginePrivate::painterPathToVGPath(), QPathClipper::pathToRect(), QOpenGLPaintEnginePrivate::pathToVertexArrays(), qt_find_ellipse_coords(), qt_ft_outline_cubic_to(), qt_mac_compose_path(), qt_painterpath_check_crossing(), qt_vg_pathToRect(), QVectorPathConverter::QVectorPathData::QVectorPathData(), QPainterPath::setElementPositionAt(), QStrokerOps::strokePath(), QOpenGLPaintEnginePrivate::strokePathFastPen(), QPainterPath::toReversed(), QPainterPath::toSubpathPolygons(), and QPainterPath::translate().
QPainterPath::Element::y |
the y coordinate of the element's position.
Definition at line 80 of file qpainterpath.h.
Referenced by addGlyphToPath(), charString(), QPainterPathData::close(), QWin32PrintEnginePrivate::composeGdiPath(), QPainterPath::computeBoundingRect(), QPainterPath::computeControlPointRect(), convertPath(), QVectorPath::convertToPainterPath(), QX11PaintEngine::drawFreetype(), QSvgPaintEngine::drawPath(), QPdf::generatePath(), QGLStrokeCache::getStrokedPath(), QGLMaskTextureCache::hash(), QPainterPathData::isClosed(), QMatrix::map(), QTransform::map(), operator<<(), operator==(), QVGPaintEnginePrivate::painterPathToVGPath(), QPathClipper::pathToRect(), QOpenGLPaintEnginePrivate::pathToVertexArrays(), qt_find_ellipse_coords(), qt_ft_outline_cubic_to(), qt_mac_compose_path(), qt_painterpath_check_crossing(), qt_vg_pathToRect(), QVectorPathConverter::QVectorPathData::QVectorPathData(), QPainterPath::setElementPositionAt(), QStrokerOps::strokePath(), QOpenGLPaintEnginePrivate::strokePathFastPen(), QPainterPath::toReversed(), QPainterPath::toSubpathPolygons(), and QPainterPath::translate().