#include
<QtCore/qnamespace.h>
Go to the source code of this
file.
Classes
|
| class
|
QPoint |
| class
|
QPointF |
Functions
|
| |
Q_DECLARE_TYPEINFO
(QPoint,
Q_MOVABLE_TYPE) |
| Q_CORE_EXPORT
QDataStream
& |
operator<<
(QDataStream
&, const QPoint
&) |
| Q_CORE_EXPORT
QDataStream
& |
operator>>
(QDataStream
&, QPoint
&) |
| bool |
operator==
(const QPoint &p1,
const QPoint
&p2) |
| bool |
operator!=
(const QPoint &p1,
const QPoint
&p2) |
| const QPoint |
operator+
(const QPoint &p1,
const QPoint
&p2) |
| const QPoint |
operator-
(const QPoint &p1,
const QPoint
&p2) |
| const QPoint |
operator*
(const QPoint &p,
qreal c) |
| const QPoint |
operator*
(qreal c, const QPoint
&p) |
| const QPoint |
operator-
(const QPoint
&p) |
| const QPoint |
operator/
(const QPoint &p,
qreal c) |
| Q_CORE_EXPORT
QDebug |
operator<<
(QDebug, const
QPoint &) |
| |
Q_DECLARE_TYPEINFO
(QPointF,
Q_MOVABLE_TYPE) |
| Q_CORE_EXPORT
QDataStream
& |
operator<<
(QDataStream
&, const QPointF
&) |
| Q_CORE_EXPORT
QDataStream
& |
operator>>
(QDataStream
&, QPointF
&) |
| bool |
operator==
(const QPointF
&p1, const QPointF &p2) |
| bool |
operator!=
(const QPointF
&p1, const QPointF &p2) |
| const QPointF |
operator+
(const QPointF
&p1, const QPointF &p2) |
| const QPointF |
operator-
(const QPointF
&p1, const QPointF &p2) |
| const QPointF |
operator*
(const QPointF
&p, qreal c) |
| const QPointF |
operator*
(qreal c, const QPointF &p) |
| const QPointF |
operator-
(const QPointF
&p) |
| const QPointF |
operator/
(const QPointF
&p, qreal c) |
| Q_CORE_EXPORT
QDebug |
operator<<
(QDebug d, const
QPointF &p) |
Function Documentation
| Q_DECLARE_TYPEINFO |
( |
QPoint |
, |
|
|
Q_MOVABLE_TYPE |
|
|
) |
|
|
| bool operator== |
( |
const QPoint & |
p1, |
|
|
const QPoint & |
p2 |
|
) |
|
[inline] |
Definition at line 147 of file qpoint.h.
{ return p1.xp == p2.xp && p1.yp == p2.yp; }
| bool operator!= |
( |
const QPoint & |
p1, |
|
|
const QPoint & |
p2 |
|
) |
|
[inline] |
Definition at line 150 of file qpoint.h.
{ return p1.xp != p2.xp || p1.yp != p2.yp; }
Definition at line 153 of file qpoint.h.
{ return QPoint(p1.xp+p2.xp, p1.yp+p2.yp); }
| const QPoint operator* |
( |
const QPoint & |
p, |
|
|
qreal |
c |
|
) |
|
[inline] |
Definition at line 159 of file qpoint.h.
{ return QPoint(qRound(p.xp*c), qRound(p.yp*c)); }
| const QPoint operator* |
( |
qreal |
c, |
|
|
const QPoint & |
p |
|
) |
|
[inline] |
Definition at line 162 of file qpoint.h.
{ return QPoint(qRound(p.xp*c), qRound(p.yp*c)); }
| const QPoint operator/ |
( |
const QPoint & |
p, |
|
|
qreal |
c |
|
) |
|
[inline] |
Definition at line 175 of file qpoint.h.
{
return QPoint(qRound(p.xp/c), qRound(p.yp/c));
}
| Q_DECLARE_TYPEINFO |
( |
QPointF |
, |
|
|
Q_MOVABLE_TYPE |
|
|
) |
|
|
Definition at line 303 of file qpoint.h.
{
return qFuzzyIsNull(p1.xp - p2.xp) && qFuzzyIsNull(p1.yp - p2.yp);
}
Definition at line 308 of file qpoint.h.
{
return !qFuzzyIsNull(p1.xp - p2.xp) || !qFuzzyIsNull(p1.yp - p2.yp);
}