Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qvectorpath_p.h>
Classes | |
struct | CacheEntry |
Public Types | |
enum | Hint { AreaShapeMask = 0x0001 , NonConvexShapeMask = 0x0002 , CurvedShapeMask = 0x0004 , LinesShapeMask = 0x0008 , RectangleShapeMask = 0x0010 , ShapeMask = 0x001f , LinesHint = LinesShapeMask , RectangleHint = AreaShapeMask | RectangleShapeMask , EllipseHint = AreaShapeMask | CurvedShapeMask , ConvexPolygonHint = AreaShapeMask , PolygonHint = AreaShapeMask | NonConvexShapeMask , RoundedRectHint = AreaShapeMask | CurvedShapeMask , ArbitraryShapeHint = AreaShapeMask | NonConvexShapeMask | CurvedShapeMask , IsCachedHint = 0x0100 , ShouldUseCacheHint = 0x0200 , ControlPointRect = 0x0400 , OddEvenFill = 0x1000 , WindingFill = 0x2000 , ImplicitClose = 0x4000 , ExplicitOpen = 0x8000 } |
Public Member Functions | |
QVectorPath (const qreal *points, int count, const QPainterPath::ElementType *elements=nullptr, uint hints=ArbitraryShapeHint) | |
~QVectorPath () | |
QRectF | controlPointRect () const |
Hint | shape () const |
bool | isConvex () const |
bool | isCurved () const |
bool | isCacheable () const |
bool | hasImplicitClose () const |
bool | hasExplicitOpen () const |
bool | hasWindingFill () const |
void | makeCacheable () const |
uint | hints () const |
const QPainterPath::ElementType * | elements () const |
const qreal * | points () const |
bool | isEmpty () const |
int | elementCount () const |
const QPainterPath | convertToPainterPath () const |
CacheEntry * | addCacheData (QPaintEngineEx *engine, void *data, qvectorpath_cache_cleanup cleanup) const |
CacheEntry * | lookupCacheData (QPaintEngineEx *engine) const |
bool | isRect () const |
Static Public Member Functions | |
static uint | polygonFlags (QPaintEngine::PolygonDrawMode mode) |
template<typename T > | |
static bool | isRect (const T *pts, int elementCount) |
Definition at line 37 of file qvectorpath_p.h.
enum QVectorPath::Hint |
Definition at line 40 of file qvectorpath_p.h.
|
inline |
Definition at line 71 of file qvectorpath_p.h.
QVectorPath::~QVectorPath | ( | ) |
Definition at line 27 of file qpaintengineex.cpp.
References QVectorPath::CacheEntry::cleanup, QVectorPath::CacheEntry::data, QVectorPath::CacheEntry::engine, QVectorPath::CacheEntry::next, and ShouldUseCacheHint.
QVectorPath::CacheEntry * QVectorPath::addCacheData | ( | QPaintEngineEx * | engine, |
void * | data, | ||
qvectorpath_cache_cleanup | cleanup ) const |
Definition at line 78 of file qpaintengineex.cpp.
References QVectorPath::CacheEntry::cleanup, QVectorPath::CacheEntry::data, QVectorPath::CacheEntry::engine, engine, IsCachedHint, lookupCacheData(), QVectorPath::CacheEntry::next, and Q_ASSERT.
QRectF QVectorPath::controlPointRect | ( | ) | const |
Definition at line 42 of file qpaintengineex.cpp.
References ControlPointRect, Q_ASSERT, QRealRect::x1, QRealRect::x2, QRealRect::y1, and QRealRect::y2.
|
inline |
Definition at line 193 of file qpainterpath_p.h.
References i, QPainterPath::LineToElement, QPainterPath::MoveToElement, Qt::OddEvenFill, OddEvenFill, QList< T >::reserve(), QPainterPath::Element::type, Qt::WindingFill, QPainterPath::Element::x, and QPainterPath::Element::y.
|
inline |
Definition at line 102 of file qvectorpath_p.h.
|
inline |
Definition at line 98 of file qvectorpath_p.h.
|
inline |
Definition at line 92 of file qvectorpath_p.h.
|
inline |
Definition at line 91 of file qvectorpath_p.h.
|
inline |
Definition at line 93 of file qvectorpath_p.h.
|
inline |
Definition at line 96 of file qvectorpath_p.h.
|
inline |
Definition at line 90 of file qvectorpath_p.h.
|
inline |
Definition at line 87 of file qvectorpath_p.h.
|
inline |
Definition at line 88 of file qvectorpath_p.h.
|
inline |
Definition at line 100 of file qvectorpath_p.h.
|
inline |
Definition at line 149 of file qvectorpath_p.h.
References elements, QPainterPath::LineToElement, QPainterPath::MoveToElement, and RectangleHint.
Referenced by QRasterPaintEngine::drawPolygon(), and QRasterPaintEngine::drawPolygon().
|
inlinestatic |
Definition at line 135 of file qvectorpath_p.h.
|
inline |
Definition at line 124 of file qvectorpath_p.h.
References QVectorPath::CacheEntry::engine, engine, QVectorPath::CacheEntry::next, and Q_ASSERT.
Referenced by addCacheData().
|
inline |
Definition at line 95 of file qvectorpath_p.h.
|
inline |
Definition at line 99 of file qvectorpath_p.h.
Referenced by QTriangulator< T >::initialize().
|
inlinestatic |
Definition at line 105 of file qvectorpath_p.h.
References QPaintEngine::ConvexMode, QPaintEngine::OddEvenMode, QPaintEngine::PolylineMode, and QPaintEngine::WindingMode.
Referenced by QRasterPaintEngine::drawPolygon(), QPaintEngineEx::drawPolygon(), QRasterPaintEngine::drawPolygon(), QPaintEngineEx::drawPolygon(), and QRasterPaintEngine::fillPolygon().
|
inline |
Definition at line 86 of file qvectorpath_p.h.