40 #ifndef QPAINTERPATH_H
41 #define QPAINTERPATH_H
43 #include <QtGui/qtguiglobal.h>
44 #include <QtGui/qtransform.h>
45 #include <QtCore/qglobal.h>
46 #include <QtCore/qline.h>
47 #include <QtCore/qlist.h>
48 #include <QtCore/qrect.h>
49 #include <QtCore/qshareddata.h>
56 struct QPainterPathPrivateDeleter;
102 int capacity()
const;
124 QPointF currentPosition()
const;
135 void addRegion(
const QRegion ®ion);
155 QRectF boundingRect()
const;
156 QRectF controlPointRect()
const;
161 bool isEmpty()
const;
169 int elementCount()
const;
202 inline void ensureData() {
if (!d_ptr) ensureData_helper(); }
203 void ensureData_helper();
206 void computeBoundingRect()
const;
207 void computeControlPointRect()
const;
217 #ifndef QT_NO_DATASTREAM
226 #ifndef QT_NO_DATASTREAM
249 qreal miterLimit()
const;
251 void setCurveThreshold(
qreal threshold);
252 qreal curveThreshold()
const;
259 qreal dashOffset()
const;
283 arcTo(
QRectF(
x,
y,
w,
h), startAngle, arcLength);
339 #ifndef QT_NO_DEBUG_STREAM
small capitals from c petite p scientific i
[1]
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDebug class provides an output stream for debugging information.
T * data() const noexcept
The QFont class specifies a query for a font used for drawing text.
The QPainterPath::Element class specifies the position and type of a subpath.
bool operator==(const Element &e) const
the x coordinate of the element's position.
bool operator!=(const Element &e) const
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
void quadTo(const QPointF &ctrlPt, const QPointF &endPt)
QPainterPath translated(qreal dx, qreal dy) const
void translate(qreal dx, qreal dy)
void addRect(const QRectF &rect)
void addEllipse(const QRectF &rect)
void addRoundedRect(const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode=Qt::AbsoluteSize)
void arcTo(const QRectF &rect, qreal startAngle, qreal arcLength)
void addText(const QPointF &point, const QFont &f, const QString &text)
void lineTo(const QPointF &p)
void cubicTo(const QPointF &ctrlPt1, const QPointF &ctrlPt2, const QPointF &endPt)
void arcMoveTo(const QRectF &rect, qreal angle)
The QPainterPathStroker class is used to generate fillable outlines for a given painter path.
The QPen class defines how a QPainter should draw lines and outlines of shapes.
The QPointF class defines a point in the plane using floating point precision.
The QPolygonF class provides a list of points using floating point precision. \inmodule QtGui.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QRegion class specifies a clip region for a painter.
The QScopedPointer class stores a pointer to a dynamically allocated object, and deletes it upon dest...
The QString class provides a Unicode character string.
auto it unsigned count const
QTextStream & center(QTextStream &stream)
QString operator+(const ProString &one, const ProString &two)
QString & operator+=(QString &that, const ProString &other)
Q_CORE_EXPORT QBitArray operator&(const QBitArray &, const QBitArray &)
constexpr bool operator!=(const timespec &t1, const timespec &t2)
constexpr timespec operator-(const timespec &t1, const timespec &t2)
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
bool operator==(const QMakeBaseKey &one, const QMakeBaseKey &two)
constexpr QKeyCombination operator|(Qt::Modifier modifier, Qt::Key key) noexcept
GLenum GLuint GLenum GLsizei length
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset
GLfloat GLfloat GLfloat GLfloat h
GLsizei const GLchar *const * path
const QVectorPath & qtVectorPathForPath(const QPainterPath &path)
QPainterPath operator*(const QPainterPath &p, const QTransform &m)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QPainterPath &)
Q_DECLARE_TYPEINFO(QPainterPath::Element, Q_PRIMITIVE_TYPE)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QPainterPath &)
#define Q_DECLARE_SHARED(TYPE)
QUrl::FormattingOptions & operator|=(QUrl::FormattingOptions &i, QUrl::ComponentFormattingOptions f)
scene addText("Hello, world!")
scene addRect(QRectF(-10, -10, 20, 20))