164 <<
QPoint(
r.x() +
r.width(),
r.y() +
r.height())
191 if (dx == 0 && dy == 0)
427 return QRect(0, 0, 0, 0);
428 int minx, maxx, miny, maxy;
429 minx = maxx = pd->
x();
430 miny = maxy = pd->
y();
432 for (; pd != pe; ++pd) {
435 else if (pd->
x() > maxx)
439 else if (pd->
y() > maxy)
445 #ifndef QT_NO_DEBUG_STREAM
450 for (
int i = 0;
i <
a.count(); ++
i)
542 for (
int i=0;
i<
a.size(); ++
i)
619 return QRectF(0, 0, 0, 0);
620 qreal minx, maxx, miny, maxy;
621 minx = maxx = pd->
x();
622 miny = maxy = pd->
y();
627 else if (pd->
x() > maxx)
631 else if (pd->
y() > maxy)
635 return QRectF(minx,miny, maxx - minx, maxy - miny);
681 #ifndef QT_NO_DATASTREAM
718 #ifndef QT_NO_DATASTREAM
756 a.reserve(
a.size() + (
int)
len);
758 for (
i = 0;
i <
len; ++
i) {
766 #ifndef QT_NO_DEBUG_STREAM
771 for (
int i = 0;
i <
a.count(); ++
i)
792 int winding_number = 0;
796 for (
int i = 1;
i <
size(); ++
i) {
798 qt_polygon_isect_line(last_pt,
e, pt, &winding_number);
803 if (last_pt != last_start)
804 qt_polygon_isect_line(last_pt, last_start, pt, &winding_number);
807 ? (winding_number != 0)
808 : ((winding_number % 2) != 0));
823 int winding_number = 0;
827 for (
int i = 1;
i <
size(); ++
i) {
829 qt_polygon_isect_line(last_pt,
e, pt, &winding_number);
834 if (last_pt != last_start)
835 qt_polygon_isect_line(last_pt, last_start, pt, &winding_number);
838 ? (winding_number != 0)
839 : ((winding_number % 2) != 0));
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.
Convenience class for custom QDebug operators.
qsizetype size() const noexcept
const_pointer constData() const noexcept
bool isEmpty() const noexcept
const_reference at(qsizetype i) const noexcept
void reserve(qsizetype size)
void resize(qsizetype size)
void append(parameter_type t)
bool qFuzzyCompare(const QMatrix4x4 &m1, const QMatrix4x4 &m2)
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
QPainterPath subtracted(const QPainterPath &r) const
void addPolygon(const QPolygonF &polygon)
QPolygonF toFillPolygon(const QTransform &matrix=QTransform()) const
bool intersects(const QRectF &rect) const
QPainterPath united(const QPainterPath &r) const
QPainterPath intersected(const QPainterPath &r) const
The QPointF class defines a point in the plane using floating point precision.
constexpr qreal x() const noexcept
constexpr qreal y() const noexcept
constexpr QPoint toPoint() const
The QPoint class defines a point in the plane using integer precision.
constexpr int x() const noexcept
constexpr int y() const noexcept
The QPolygonF class provides a list of points using floating point precision. \inmodule QtGui.
QPolygon Q_GUI_EXPORT toPolygon() const
Q_GUI_EXPORT QPolygonF intersected(const QPolygonF &r) const
Q_GUI_EXPORT bool containsPoint(const QPointF &pt, Qt::FillRule fillRule) const
Q_GUI_EXPORT QPolygonF subtracted(const QPolygonF &r) const
Q_GUI_EXPORT QPolygonF united(const QPolygonF &r) const
Q_GUI_EXPORT bool intersects(const QPolygonF &r) const
void translate(qreal dx, qreal dy)
QRectF Q_GUI_EXPORT boundingRect() const
QPolygonF translated(qreal dx, qreal dy) const
The QPolygon class provides a list of points using integer precision. \inmodule QtGui.
Q_GUI_EXPORT bool intersects(const QPolygon &r) const
Q_GUI_EXPORT QPolygon subtracted(const QPolygon &r) const
Q_GUI_EXPORT void translate(int dx, int dy)
Q_GUI_EXPORT QPolygon translated(int dx, int dy) const
Q_GUI_EXPORT bool containsPoint(const QPoint &pt, Qt::FillRule fillRule) const
Q_GUI_EXPORT void putPoints(int index, int nPoints, const int *points)
Q_GUI_EXPORT QPolygon united(const QPolygon &r) const
Q_GUI_EXPORT void setPoint(int index, int x, int y)
Q_GUI_EXPORT QRect boundingRect() const
Q_GUI_EXPORT void point(int i, int *x, int *y) const
Q_GUI_EXPORT QPolygon intersected(const QPolygon &r) const
Q_GUI_EXPORT void setPoints(int nPoints, const int *points)
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QRect class defines a rectangle in the plane using integer precision.
The QVariant class acts like a union for the most common Qt data types.
static auto fromValue(const T &value) -> std::enable_if_t< std::is_copy_constructible_v< T >, QVariant >
static void const void const char bool unsigned int int const char va_start(ap, message)
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLsizei const GLfloat * v
[13]
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 GLintptr offset
GLfixed GLfixed GLint GLint GLfixed points
GLfixed GLfixed GLfixed y2