7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qlist.h>
9#include <QtCore/qpoint.h>
10#include <QtCore/qrect.h>
33 Q_GUI_EXPORT
operator QVariant()
const;
35 Q_GUI_EXPORT
void translate(
int dx,
int dy);
43 Q_GUI_EXPORT
void point(
int i,
int *
x,
int *
y)
const;
48 Q_GUI_EXPORT
void setPoints(
int nPoints,
int firstx,
int firsty, ...);
50 Q_GUI_EXPORT
void putPoints(
int index,
int nPoints,
int firstx,
int firsty, ...);
65#ifndef QT_NO_DEBUG_STREAM
72#ifndef QT_NO_DATASTREAM
106 Q_GUI_EXPORT
operator QVariant()
const;
132#ifndef QT_NO_DEBUG_STREAM
139#ifndef QT_NO_DATASTREAM
\inmodule QtCore\reentrant
bool isEmpty() const noexcept
void swap(QList &other) noexcept
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr int x() const noexcept
Returns the x coordinate of this point.
constexpr int y() const noexcept
Returns the y coordinate of this point.
The QPolygonF class provides a list of points using floating point precision.
QPolygon Q_GUI_EXPORT toPolygon() const
Creates and returns a QPolygon by converting each QPointF to a QPoint.
void swap(QPolygonF &other)
Q_GUI_EXPORT QPolygonF intersected(const QPolygonF &r) const
Q_IMPLICIT QPolygonF(QList< QPointF > &&v) noexcept
Q_GUI_EXPORT bool containsPoint(const QPointF &pt, Qt::FillRule fillRule) const
Q_IMPLICIT QPolygonF(const QList< QPointF > &v)
Constructs a polygon containing the specified points.
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)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QPolygonF()=default
Constructs a polygon with no points.
QRectF Q_GUI_EXPORT boundingRect() const
Returns the bounding rectangle of the polygon, or QRectF(0,0,0,0) if the polygon is empty.
QPolygonF translated(qreal dx, qreal dy) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isClosed() const
Returns true if the polygon is closed; otherwise returns false.
The QPolygon class provides a list of points using integer precision.
QPolygonF toPolygonF() const
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)
Translates all points in the polygon by ({dx}, {dy}).
void swap(QPolygon &other) noexcept
QPolygon()=default
Constructs a polygon with no points.
Q_IMPLICIT QPolygon(QList< QPoint > &&v) noexcept
Q_GUI_EXPORT QPolygon translated(int dx, int dy) const
Returns a copy of the polygon that is translated by ({dx}, {dy}).
Q_GUI_EXPORT bool containsPoint(const QPoint &pt, Qt::FillRule fillRule) const
Q_GUI_EXPORT void putPoints(int index, int nPoints, const int *points)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Q_GUI_EXPORT QPolygon united(const QPolygon &r) const
Q_GUI_EXPORT void setPoint(int index, int x, int y)
Sets the point at the given index to the point specified by ({x}, {y}).
Q_GUI_EXPORT QRect boundingRect() const
Returns the bounding rectangle of the polygon, or QRect(0, 0, 0, 0) if the polygon is empty.
Q_IMPLICIT QPolygon(const QList< QPoint > &v)
Constructs a polygon containing the specified points.
Q_GUI_EXPORT void point(int i, int *x, int *y) const
Extracts the coordinates of the point at the given index to {x} and *{y} (if they are valid pointers)...
Q_GUI_EXPORT QPolygon intersected(const QPolygon &r) const
Q_GUI_EXPORT void setPoints(int nPoints, const int *points)
Resizes the polygon to nPoints and populates it with the given points.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
GLint GLint GLint GLint GLint x
[0]
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr offset
GLfixed GLfixed GLint GLint GLfixed points
Q_GUI_EXPORT QDebug operator<<(QDebug, const QPolygon &)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &stream, QPolygon &polygon)