My Project
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
ParaEngine::QVectorPath Class Reference

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
}
 

Public Member Functions

 QVectorPath (const float *points, int count, const QPainterPath::ElementType *elements=0, uint32 hints=ArbitraryShapeHint)
 
QRectF controlPointRect () const
 
Hint shape () const
 
bool isConvex () const
 
bool isCurved () const
 
bool isCacheable () const
 
bool hasImplicitClose () const
 
bool hasWindingFill () const
 
void makeCacheable () const
 
uint32 hints () const
 
const QPainterPath::ElementType * elements () const
 
const float * points () const
 
bool isEmpty () const
 
int elementCount () const
 
const QPainterPath convertToPainterPath () const
 
CacheEntryaddCacheData (CPaintEngine *engine, void *data, qvectorpath_cache_cleanup cleanup) const
 
CacheEntrylookupCacheData (CPaintEngine *engine) const
 
bool isRect () const
 

Static Public Member Functions

static uint32 polygonFlags (CPaintEngine::PolygonDrawMode mode)
 
template<typename T >
static bool isRect (const T *pts, int elementCount)
 

The documentation for this class was generated from the following files: