Qt 4.8
Public Functions | Public Variables | List of all members
QRectVectorPath Class Reference

#include <qpaintengineex_p.h>

Inheritance diagram for QRectVectorPath:
QVectorPath

Public Functions

 QRectVectorPath (const QRect &r)
 
 QRectVectorPath (const QRectF &r)
 
 QRectVectorPath ()
 
void set (const QRect &r)
 
void set (const QRectF &r)
 
- Public Functions inherited from QVectorPath
CacheEntryaddCacheData (QPaintEngineEx *engine, void *data, qvectorpath_cache_cleanup cleanup) const
 
QRectF controlPointRect () const
 
const QPainterPath convertToPainterPath () const
 
int elementCount () const
 
const QPainterPath::ElementTypeelements () const
 
bool hasImplicitClose () const
 
bool hasWindingFill () const
 
uint hints () const
 
bool isCacheable () const
 
bool isConvex () const
 
bool isCurved () const
 
bool isEmpty () const
 
CacheEntrylookupCacheData (QPaintEngineEx *engine) const
 
void makeCacheable () const
 
const qrealpoints () const
 
 QVectorPath (const qreal *points, int count, const QPainterPath::ElementType *elements=0, uint hints=ArbitraryShapeHint)
 
Hint shape () const
 
 ~QVectorPath ()
 

Public Variables

qreal pts [8]
 

Additional Inherited Members

- Public Types inherited from QVectorPath
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
}
 
- Static Public Functions inherited from QVectorPath
static uint polygonFlags (QPaintEngine::PolygonDrawMode mode)
 

Detailed Description

Definition at line 89 of file qpaintengineex_p.h.

Constructors and Destructors

◆ QRectVectorPath() [1/3]

QRectVectorPath::QRectVectorPath ( const QRect r)
inline

Definition at line 120 of file qpaintengineex_p.h.

122  {
123  set(r);
124  }
QVectorPath(const qreal *points, int count, const QPainterPath::ElementType *elements=0, uint hints=ArbitraryShapeHint)

◆ QRectVectorPath() [2/3]

QRectVectorPath::QRectVectorPath ( const QRectF r)
inline

Definition at line 125 of file qpaintengineex_p.h.

127  {
128  set(r);
129  }
QVectorPath(const qreal *points, int count, const QPainterPath::ElementType *elements=0, uint hints=ArbitraryShapeHint)

◆ QRectVectorPath() [3/3]

QRectVectorPath::QRectVectorPath ( )
inline

Definition at line 130 of file qpaintengineex_p.h.

132  { }
QVectorPath(const qreal *points, int count, const QPainterPath::ElementType *elements=0, uint hints=ArbitraryShapeHint)

Functions

◆ set() [1/2]

void QRectVectorPath::set ( const QRect r)
inline

Definition at line 91 of file qpaintengineex_p.h.

Referenced by QRasterPaintEngine::drawRects().

91  {
92  qreal left = r.x();
93  qreal right = r.x() + r.width();
94  qreal top = r.y();
95  qreal bottom = r.y() + r.height();
96  pts[0] = left;
97  pts[1] = top;
98  pts[2] = right;
99  pts[3] = top;
100  pts[4] = right;
101  pts[5] = bottom;
102  pts[6] = left;
103  pts[7] = bottom;
104  }
double qreal
Definition: qglobal.h:1193
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
int y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:255
int x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:252
Q_CORE_EXPORT QTextStream & left(QTextStream &s)

◆ set() [2/2]

void QRectVectorPath::set ( const QRectF r)
inline

Definition at line 106 of file qpaintengineex_p.h.

106  {
107  qreal left = r.x();
108  qreal right = r.x() + r.width();
109  qreal top = r.y();
110  qreal bottom = r.y() + r.height();
111  pts[0] = left;
112  pts[1] = top;
113  pts[2] = right;
114  pts[3] = top;
115  pts[4] = right;
116  pts[5] = bottom;
117  pts[6] = left;
118  pts[7] = bottom;
119  }
qreal y() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:667
double qreal
Definition: qglobal.h:1193
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
qreal height() const
Returns the height of the rectangle.
Definition: qrect.h:710
qreal width() const
Returns the width of the rectangle.
Definition: qrect.h:707
qreal x() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:664
Q_CORE_EXPORT QTextStream & left(QTextStream &s)

Properties

◆ pts

qreal QRectVectorPath::pts[8]

Definition at line 134 of file qpaintengineex_p.h.


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