#include <qpainterpath_p.h>
Inheritance diagram for QPainterPathData:


Definition at line 44 of file qpainterpath_p.h.
Public Member Functions | |
| QPainterPathData () | |
| QPainterPathData (const QPainterPathData &other) | |
| bool | isClosed () const |
| void | close () |
| void | maybeMoveTo () |
Public Attributes | |
| int | cStart |
| Qt::FillRule | fillRule |
| bool | require_moveTo |
| QPainterPathData::QPainterPathData | ( | ) | [inline] |
Definition at line 47 of file qpainterpath_p.h.
References QPainterPathPrivate::ref, and require_moveTo.
00047 : 00048 cStart(0), fillRule(Qt::OddEvenFill) 00049 { 00050 ref = 1; 00051 require_moveTo = false; 00052 }
| QPainterPathData::QPainterPathData | ( | const QPainterPathData & | other | ) | [inline] |
Definition at line 54 of file qpainterpath_p.h.
References QPainterPathPrivate::elements, QPainterPathPrivate::ref, and require_moveTo.
00054 : 00055 QPainterPathPrivate(), cStart(other.cStart), fillRule(other.fillRule) 00056 { 00057 ref = 1; 00058 require_moveTo = false; 00059 elements = other.elements; 00060 }
| bool QPainterPathData::isClosed | ( | ) | const [inline] |
Definition at line 76 of file qpainterpath_p.h.
References QVector< T >::at(), cStart, QPainterPathPrivate::elements, QVector< T >::last(), QPainterPath::Element::x, and QPainterPath::Element::y.
Referenced by QPainterPath::addPath().
00077 { 00078 const QPainterPath::Element &first = elements.at(cStart); 00079 const QPainterPath::Element &last = elements.last(); 00080 return first.x == last.x && first.y == last.y; 00081 }
Here is the call graph for this function:

| void QPainterPathData::close | ( | ) | [inline] |
Definition at line 83 of file qpainterpath_p.h.
References QVector< T >::at(), cStart, QPainterPathPrivate::elements, QVector< T >::last(), QPainterPath::LineToElement, QPainterPathPrivate::ref, require_moveTo, QPainterPath::Element::x, and QPainterPath::Element::y.
Referenced by QPainterPath::closeSubpath().
00084 { 00085 Q_ASSERT(ref == 1); 00086 require_moveTo = true; 00087 const QPainterPath::Element &first = elements.at(cStart); 00088 const QPainterPath::Element &last = elements.last(); 00089 if (first.x != last.x || first.y != last.y) { 00090 QPainterPath::Element e = { first.x, first.y, QPainterPath::LineToElement }; 00091 elements << e; 00092 } 00093 }
Here is the call graph for this function:

| void QPainterPathData::maybeMoveTo | ( | ) | [inline] |
Definition at line 95 of file qpainterpath_p.h.
References QVector< T >::append(), QPainterPathPrivate::elements, QVector< T >::last(), QPainterPath::MoveToElement, require_moveTo, and QPainterPath::Element::type.
00096 { 00097 if (require_moveTo) { 00098 QPainterPath::Element e = elements.last(); 00099 e.type = QPainterPath::MoveToElement; 00100 elements.append(e); 00101 require_moveTo = false; 00102 } 00103 }
Here is the call graph for this function:

Definition at line 66 of file qpainterpath_p.h.
Referenced by QPainterPath::addPath(), close(), QPainterPath::connectPath(), and isClosed().
Definition at line 67 of file qpainterpath_p.h.
Referenced by QPainterPath::fillRule(), and QPainterPath::setFillRule().
Definition at line 69 of file qpainterpath_p.h.
Referenced by QPainterPath::addEllipse(), QPainterPath::addRect(), close(), maybeMoveTo(), and QPainterPathData().
1.5.1