43 #include <QtCore/qnamespace.h>
44 #include <QtCore/qhashfunctions.h>
45 #include <QtCore/qmargins.h>
47 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
57 constexpr
QSize() noexcept;
58 constexpr
QSize(
int w,
int h) noexcept;
60 constexpr
inline bool isNull()
const noexcept;
61 constexpr
inline bool isEmpty()
const noexcept;
62 constexpr
inline bool isValid()
const noexcept;
64 constexpr
inline int width()
const noexcept;
65 constexpr
inline int height()
const noexcept;
66 constexpr
inline void setWidth(
int w) noexcept;
67 constexpr
inline void setHeight(
int h) noexcept;
69 [[nodiscard]] constexpr
inline QSize transposed()
const noexcept;
76 [[nodiscard]] constexpr
inline QSize expandedTo(
const QSize &)
const noexcept;
77 [[nodiscard]] constexpr
inline QSize boundedTo(
const QSize &)
const noexcept;
80 {
return {
width() +
m.left() +
m.right(),
height() +
m.top() +
m.bottom()}; }
82 {
return {
width() -
m.left() -
m.right(),
height() -
m.top() -
m.bottom()}; }
84 constexpr
inline int &
rwidth() noexcept;
93 {
return s1.wd ==
s2.wd &&
s1.ht ==
s2.ht; }
95 {
return s1.wd !=
s2.wd ||
s1.ht !=
s2.ht; }
106 friend inline constexpr
size_t qHash(
const QSize &,
size_t) noexcept;
108 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
109 [[nodiscard]] CGSize toCGSize()
const noexcept;
116 template <std::size_t
I,
118 std::enable_if_t<(I < 2), bool> =
true,
119 std::enable_if_t<std::is_same_v<std::decay_t<S>,
QSize>,
bool> =
true>
120 friend constexpr decltype(
auto)
get(
S &&
s) noexcept
122 if constexpr (
I == 0)
134 #ifndef QT_NO_DATASTREAM
149 {
return wd == 0 && ht == 0; }
152 {
return wd < 1 || ht < 1; }
155 {
return wd >= 0 && ht >= 0; }
170 {
return QSize(ht, wd); }
208 constexpr
inline size_t qHash(
const QSize &
s,
size_t seed = 0) noexcept
221 return QSize(qMax(wd,otherSize.wd), qMax(ht,otherSize.ht));
226 return QSize(qMin(wd,otherSize.wd), qMin(ht,otherSize.ht));
229 #ifndef QT_NO_DEBUG_STREAM
237 constexpr
QSizeF() noexcept;
241 inline bool isNull()
const noexcept;
242 constexpr
inline bool isEmpty()
const noexcept;
243 constexpr
inline bool isValid()
const noexcept;
245 constexpr
inline qreal width()
const noexcept;
247 constexpr
inline void setWidth(
qreal w) noexcept;
248 constexpr
inline void setHeight(
qreal h) noexcept;
250 [[nodiscard]] constexpr
inline QSizeF transposed()
const noexcept;
257 [[nodiscard]] constexpr
inline QSizeF expandedTo(
const QSizeF &)
const noexcept;
258 [[nodiscard]] constexpr
inline QSizeF boundedTo(
const QSizeF &)
const noexcept;
261 {
return {
width() +
m.left() +
m.right(),
height() +
m.top() +
m.bottom()}; }
263 {
return {
width() -
m.left() -
m.right(),
height() -
m.top() -
m.bottom()}; }
282 {
return !(
s1 ==
s2); }
294 constexpr
inline QSize toSize()
const noexcept;
296 #if defined(Q_OS_DARWIN) || defined(Q_QDOC)
297 [[nodiscard]]
static QSizeF fromCGSize(CGSize
size) noexcept;
298 [[nodiscard]] CGSize toCGSize()
const noexcept;
305 template <std::size_t
I,
307 std::enable_if_t<(I < 2), bool> =
true,
308 std::enable_if_t<std::is_same_v<std::decay_t<S>,
QSizeF>,
bool> =
true>
309 friend constexpr decltype(
auto)
get(
S &&
s) noexcept
311 if constexpr (
I == 0)
324 #ifndef QT_NO_DATASTREAM
344 {
return wd <= 0. || ht <= 0.; }
347 {
return wd >= 0. && ht >= 0.; }
362 {
return QSizeF(ht, wd); }
410 return QSizeF(qMax(wd, otherSize.wd), qMax(ht, otherSize.ht));
415 return QSizeF(qMin(wd, otherSize.wd), qMin(ht, otherSize.ht));
423 #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 QMarginsF class defines the four margins of a rectangle.
The QMargins class defines the four margins of a rectangle.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
constexpr QSizeF & operator*=(qreal c) noexcept
constexpr QSizeF() noexcept
QT_WARNING_POP constexpr friend bool operator!=(const QSizeF &s1, const QSizeF &s2)
constexpr qreal & rwidth() noexcept
constexpr friend QSizeF operator*(const QSizeF &s, qreal c) noexcept
constexpr friend QSizeF operator*(qreal c, const QSizeF &s) noexcept
void scale(qreal w, qreal h, Qt::AspectRatioMode mode) noexcept
constexpr QSizeF shrunkBy(QMarginsF m) const noexcept
constexpr QSizeF grownBy(QMarginsF m) const noexcept
constexpr bool isValid() const noexcept
constexpr friend QSizeF operator-(const QSizeF &s1, const QSizeF &s2) noexcept
bool isNull() const noexcept
constexpr void setHeight(qreal h) noexcept
QSizeF & operator/=(qreal c)
constexpr QSize toSize() const noexcept
constexpr qreal & rheight() noexcept
constexpr void setWidth(qreal w) noexcept
constexpr qreal width() const noexcept
constexpr friend QSizeF operator+(const QSizeF &s1, const QSizeF &s2) noexcept
constexpr QSizeF & operator-=(const QSizeF &) noexcept
constexpr bool isEmpty() const noexcept
QSizeF scaled(qreal w, qreal h, Qt::AspectRatioMode mode) const noexcept
friend QSizeF operator/(const QSizeF &s, qreal c)
constexpr QSizeF & operator+=(const QSizeF &) noexcept
constexpr QSizeF transposed() const noexcept
constexpr QSizeF expandedTo(const QSizeF &) const noexcept
constexpr QSizeF boundedTo(const QSizeF &) const noexcept
constexpr qreal height() const noexcept
The QSize class defines the size of a two-dimensional object using integer point precision.
constexpr QSize boundedTo(const QSize &) const noexcept
constexpr int height() const noexcept
constexpr QSize grownBy(QMargins m) const noexcept
constexpr QSize shrunkBy(QMargins m) const noexcept
constexpr int width() const noexcept
constexpr int & rheight() noexcept
constexpr QSize & operator-=(const QSize &) noexcept
constexpr friend QSize operator-(const QSize &s1, const QSize &s2) noexcept
constexpr QSize expandedTo(const QSize &) const noexcept
constexpr friend bool operator!=(const QSize &s1, const QSize &s2) noexcept
constexpr QSize & operator+=(const QSize &) noexcept
constexpr void setWidth(int w) noexcept
constexpr friend QSize operator*(const QSize &s, qreal c) noexcept
constexpr QSize & operator*=(qreal c) noexcept
QSize scaled(int w, int h, Qt::AspectRatioMode mode) const noexcept
void scale(int w, int h, Qt::AspectRatioMode mode) noexcept
constexpr QSize transposed() const noexcept
constexpr int & rwidth() noexcept
constexpr bool isNull() const noexcept
constexpr bool isEmpty() const noexcept
constexpr friend QSize operator*(qreal c, const QSize &s) noexcept
constexpr QSize() noexcept
friend QSize operator/(const QSize &s, qreal c)
constexpr void setHeight(int h) noexcept
constexpr bool isValid() const noexcept
constexpr friend QSize operator+(const QSize &s1, const QSize &s2) noexcept
QSize & operator/=(qreal c)
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 qIsFinite(qfloat16 f) noexcept
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
constexpr QtPrivate::QHashMultiReturnType< T... > qHashMulti(size_t seed, const T &... args) noexcept(std::conjunction_v< QtPrivate::QNothrowHashable< T >... >)
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
GLint GLsizei GLboolean transpose
GLfloat GLfloat GLfloat GLfloat h
GLenum GLenum GLenum GLenum GLenum scale
int QT_PREPEND_NAMESPACE(QSharedMemoryPrivate)
Q_CORE_EXPORT QDataStream & operator<<(QDataStream &, const QSize &)
constexpr size_t qHash(const QSize &s, size_t seed=0) noexcept
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QSize &)
Q_DECLARE_TYPEINFO(QSize, Q_RELOCATABLE_TYPE)
QImage scaled(const QImage &image)
[0]
http get(QUrl::toPercentEncoding("/index.html"))