43 #include <QtCore/qnamespace.h>
45 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
54 constexpr
QPoint() noexcept;
55 constexpr
QPoint(
int xpos,
int ypos) noexcept;
57 constexpr
inline bool isNull()
const noexcept;
59 constexpr
inline int x()
const noexcept;
60 constexpr
inline int y()
const noexcept;
61 constexpr
inline void setX(
int x) noexcept;
62 constexpr
inline void setY(
int y) noexcept;
68 constexpr
inline int &
rx() noexcept;
81 {
return p1.xp *
p2.xp +
p1.yp *
p2.yp; }
84 {
return p1.xp ==
p2.xp &&
p1.yp ==
p2.yp; }
86 {
return p1.xp !=
p2.xp ||
p1.yp !=
p2.yp; }
110 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
111 [[nodiscard]] Q_CORE_EXPORT CGPoint toCGPoint()
const noexcept;
119 template <std::size_t
I,
121 std::enable_if_t<(I < 2), bool> =
true,
122 std::enable_if_t<std::is_same_v<std::decay_t<P>,
QPoint>,
bool> =
true>
123 friend constexpr decltype(
auto)
get(
P &&
p) noexcept
125 if constexpr (
I == 0)
137 #ifndef QT_NO_DATASTREAM
148 constexpr
inline QPoint::QPoint(
int xpos,
int ypos) noexcept : xp(xpos), yp(ypos) {}
152 return xp == 0 && yp == 0;
232 #ifndef QT_NO_DEBUG_STREAM
250 inline bool isNull()
const noexcept;
252 constexpr
inline qreal x()
const noexcept;
253 constexpr
inline qreal y()
const noexcept;
259 constexpr
inline qreal &
rx() noexcept;
269 return p1.xp *
p2.xp +
p1.yp *
p2.yp;
303 constexpr
QPoint toPoint()
const;
305 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
306 [[nodiscard]] Q_CORE_EXPORT
static QPointF fromCGPoint(CGPoint point) noexcept;
307 [[nodiscard]] Q_CORE_EXPORT CGPoint toCGPoint()
const noexcept;
316 template <std::size_t
I,
318 std::enable_if_t<(I < 2), bool> =
true,
319 std::enable_if_t<std::is_same_v<std::decay_t<P>,
QPointF>,
bool> =
true>
320 friend constexpr decltype(
auto)
get(
P &&
p) noexcept
322 if constexpr (
I == 0)
336 #ifndef QT_NO_DATASTREAM
425 #ifndef QT_NO_DEBUG_STREAM
The QDataStream class provides serialization of binary data to a QIODevice.
The QDebug class provides an output stream for debugging information.
The QPointF class defines a point in the plane using floating point precision.
constexpr friend QPointF operator+(const QPointF &p)
QT_WARNING_PUSH QT_WARNING_DISABLE_FLOAT_COMPARE constexpr friend bool operator==(const QPointF &p1, const QPointF &p2)
constexpr qreal & ry() noexcept
constexpr qreal x() const noexcept
constexpr qreal manhattanLength() const
QT_WARNING_POP constexpr friend QPointF operator+(const QPointF &p1, const QPointF &p2)
constexpr friend QPointF operator/(const QPointF &p, qreal divisor)
constexpr qreal y() const noexcept
constexpr friend QPointF operator-(const QPointF &p1, const QPointF &p2)
constexpr QPointF & operator+=(const QPointF &p)
constexpr qreal & rx() noexcept
constexpr QPointF & operator*=(qreal c)
constexpr friend QPointF operator-(const QPointF &p)
constexpr friend QPointF operator*(const QPointF &p, qreal c)
constexpr friend QPointF operator*(qreal c, const QPointF &p)
constexpr void setY(qreal y) noexcept
constexpr QPointF & operator-=(const QPointF &p)
constexpr QPointF() noexcept
constexpr QPoint toPoint() const
constexpr void setX(qreal x) noexcept
constexpr QPointF & operator/=(qreal c)
constexpr QPointF transposed() const noexcept
bool isNull() const noexcept
constexpr friend bool operator!=(const QPointF &p1, const QPointF &p2)
The QPoint class defines a point in the plane using integer precision.
constexpr friend QPoint operator+(const QPoint &p) noexcept
constexpr bool isNull() const noexcept
constexpr friend QPoint operator+(const QPoint &p1, const QPoint &p2) noexcept
constexpr int & ry() noexcept
constexpr QPoint transposed() const noexcept
constexpr friend QPoint operator*(const QPoint &p, double factor)
constexpr friend QPoint operator*(double factor, const QPoint &p)
constexpr friend QPoint operator/(const QPoint &p, qreal c)
constexpr int & rx() noexcept
constexpr friend QPoint operator*(const QPoint &p, int factor) noexcept
constexpr int x() const noexcept
QDataStream & operator<<(QDataStream &stream, const QPoint &point)
constexpr void setY(int y) noexcept
constexpr int manhattanLength() const
constexpr static int dotProduct(const QPoint &p1, const QPoint &p2)
constexpr QPoint & operator+=(const QPoint &p)
constexpr friend QPoint operator*(const QPoint &p, float factor)
constexpr int y() const noexcept
constexpr friend QPoint operator-(const QPoint &p1, const QPoint &p2) noexcept
constexpr friend bool operator!=(const QPoint &p1, const QPoint &p2) noexcept
constexpr friend QPoint operator*(float factor, const QPoint &p)
constexpr friend QPoint operator-(const QPoint &p) noexcept
constexpr friend QPoint operator*(int factor, const QPoint &p) noexcept
QDataStream & operator>>(QDataStream &stream, QPoint &point)
constexpr void setX(int x) noexcept
constexpr QPoint & operator*=(float factor)
constexpr QPoint & operator-=(const QPoint &p)
constexpr QPoint & operator/=(qreal divisor)
constexpr friend bool operator==(const QPoint &p1, const QPoint &p2) noexcept
constexpr QPoint() noexcept
QT_PREPEND_NAMESPACE(qreal) type
QT_PREPEND_NAMESPACE(qreal) type
auto it unsigned count const
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
[3]
#define QT_WARNING_DISABLE_FLOAT_COMPARE
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
bool qFuzzyIsNull(qfloat16 f) noexcept
bool qIsNull(qfloat16 f) noexcept
int qRound(qfloat16 d) noexcept
QT_END_INCLUDE_NAMESPACE typedef double qreal
GLint GLint GLint GLint GLint x
[0]
Q_CORE_EXPORT size_t qHash(QPoint key, size_t seed=0) noexcept
Q_DECLARE_TYPEINFO(QPoint, Q_PRIMITIVE_TYPE)
int QT_PREPEND_NAMESPACE(QSharedMemoryPrivate)
http get(QUrl::toPercentEncoding("/index.html"))