QtGui/qpolygon.h Source File
Go to the documentation of this file.
68 QPolygon(
const QRect &
r,
bool closed=
false);
72 operator QVariant()
const;
74 void translate(
int dx,
int dy);
75 void translate(
const QPoint &
offset);
80 QRect boundingRect()
const;
82 void point(
int i,
int *
x,
int *
y)
const;
83 QPoint point(
int i)
const;
84 void setPoint(
int index,
int x,
int y);
85 void setPoint(
int index,
const QPoint &
p);
86 void setPoints(
int nPoints,
const int *
points);
87 void setPoints(
int nPoints,
int firstx,
int firsty, ...);
88 void putPoints(
int index,
int nPoints,
const int *
points);
89 void putPoints(
int index,
int nPoints,
int firstx,
int firsty, ...);
90 void putPoints(
int index,
int nPoints,
const QPolygon & from,
int fromIndex=0);
92 bool containsPoint(
const QPoint &pt,
Qt::FillRule fillRule)
const;
101 #ifndef QT_NO_DEBUG_STREAM
108 #ifndef QT_NO_DATASTREAM
118 { (*this)[
index] = pt; }
124 {
return at(index); }
146 inline void translate(qreal
dx, qreal
dy);
156 QRectF boundingRect()
const;
167 #ifndef QT_NO_DEBUG_STREAM
174 #ifndef QT_NO_DATASTREAM
const QPoint & at(int i) const
GLdouble GLdouble GLdouble r
QPolygon translated(int dx, int dy) const
QPolygon(const QVector< QPoint > &v)
void swap(QPolygon &other)
void translate(qreal dx, qreal dy)
#define QT_BEGIN_NAMESPACE
void swap(QVector< T > &other)
void setPoint(int index, int x, int y)
QPolygonF(const QPolygonF &a)
QPolygon(const QPolygon &a)
void swap(QPolygonF &other)
QPolygonF(const QVector< QPointF > &v)
void point(int i, int *x, int *y) const
GLubyte GLubyte GLubyte a
Q_GUI_EXPORT QDebug operator<<(QDebug, const QPolygon &)
GLsizei const GLfloat * points
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &stream, QPolygon &polygon)
void translate(int dx, int dy)
QPolygonF translated(qreal dx, qreal dy) const