18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtCore/qline.h"
20#include "QtCore/qlist.h"
21#include "QtCore/qpoint.h"
22#include "QtCore/qrect.h"
23#include "QtGui/qtransform.h"
24#include <private/qdatabuffer_p.h>
35 {
return {
p1.x(),
p1.y(),
p2.x(),
p2.y(), p3.x(), p3.y(), p4.x(), p4.y()}; }
45 QPolygonF toPolygon(
qreal bezier_flattening_threshold = 0.5)
const;
46 void addToPolygon(
QPolygonF *
p,
qreal bezier_flattening_threshold = 0.5)
const;
47 void addToPolygon(QDataBuffer<QPointF> &
polygon,
qreal bezier_flattening_threshold)
const;
65 inline QPointF midPoint()
const;
66 inline QLineF midTangent()
const;
68 inline QLineF startTangent()
const;
69 inline QLineF endTangent()
const;
72 inline std::pair<QBezier, QBezier>
split()
const;
74 int shifted(
QBezier *curveSegments,
int maxSegmets,
93 mid.
x() +
dir.dx(), mid.
y() +
dir.dy());
190 const auto mid = [](
QPointF lhs,
QPointF rhs) {
return (lhs + rhs) * .5; };
195 const QPointF mid_12_23 = mid(mid_12, mid_23);
196 const QPointF mid_23_34 = mid(mid_23, mid_34);
197 const QPointF mid_12_23__23_34 = mid(mid_12_23, mid_23_34);
static QBezier fromPoints(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
QLineF midTangent() const
std::pair< QBezier, QBezier > split() const
QPointF pointAt(qreal t) const
void parameterSplitLeft(qreal t, QBezier *left)
QLineF startTangent() const
static void coefficients(qreal t, qreal &a, qreal &b, qreal &c, qreal &d)
QPointF secondDerivedAt(qreal t) const
QPointF derivedAt(qreal t) const
QLineF endTangent() const
QPointF normalVector(qreal t) const
\inmodule QtCore\compares equality \compareswith equality QLine \endcompareswith
constexpr bool isNull() const
Returns true if the line does not have distinct start and end points; otherwise returns false.
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
The QPolygonF class provides a list of points using floating point precision.
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLfloat GLfloat GLfloat x1
GLenum GLuint GLenum GLsizei length
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t1
[4]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0
GLenum GLuint GLintptr offset
GLuint GLenum GLenum transform
GLfixed GLfixed GLfixed y2
static void split(QT_FT_Vector *b)