42 #ifndef QVECTORPATH_P_H 43 #define QVECTORPATH_P_H 56 #include <QtGui/qpaintengine.h> 58 #include <private/qpaintengine_p.h> 59 #include <private/qstroker_p.h> 60 #include <private/qpainter_p.h> 82 AreaShapeMask = 0x0001,
83 NonConvexShapeMask = 0x0002,
84 CurvedShapeMask = 0x0004,
85 LinesShapeMask = 0x0008,
86 RectangleShapeMask = 0x0010,
90 LinesHint = LinesShapeMask,
91 RectangleHint = AreaShapeMask | RectangleShapeMask,
92 EllipseHint = AreaShapeMask | CurvedShapeMask,
93 ConvexPolygonHint = AreaShapeMask,
94 PolygonHint = AreaShapeMask | NonConvexShapeMask,
95 RoundedRectHint = AreaShapeMask | CurvedShapeMask,
96 ArbitraryShapeHint = AreaShapeMask | NonConvexShapeMask | CurvedShapeMask,
99 IsCachedHint = 0x0100,
100 ShouldUseCacheHint = 0x0200,
101 ControlPointRect = 0x0400,
106 ImplicitClose = 0x4000
113 uint hints = ArbitraryShapeHint)
123 QRectF controlPointRect()
const;
126 inline bool isConvex()
const {
return (m_hints & NonConvexShapeMask) == 0; }
127 inline bool isCurved()
const {
return m_hints & CurvedShapeMask; }
129 inline bool isCacheable()
const {
return m_hints & ShouldUseCacheHint; }
133 inline void makeCacheable()
const { m_hints |= ShouldUseCacheHint; m_cache = 0; }
138 inline bool isEmpty()
const {
return m_points == 0; }
154 Q_ASSERT(m_hints & ShouldUseCacheHint);
ElementType
This enum describes the types of elements used to connect vertices in subpaths.
#define QT_END_NAMESPACE
This macro expands to.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
void(* qvectorpath_cache_cleanup)(QPaintEngineEx *engine, void *data)
const QPainterPath::ElementType * elements() const
void makeCacheable() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
CacheEntry * lookupCacheData(QPaintEngineEx *engine) const
static const char * data(const QByteArray &arr)
Q_GUI_EXPORT const QVectorPath & qtVectorPathForPath(const QPainterPath &path)
bool hasWindingFill() const
qvectorpath_cache_cleanup cleanup
const qreal * points() const
bool hasImplicitClose() const
static const QTextHtmlElement elements[Html_NumElements]
QVectorPath(const qreal *points, int count, const QPainterPath::ElementType *elements=0, uint hints=ArbitraryShapeHint)