18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtCore/qdebug.h"
20#include "QtCore/qpoint.h"
21#include "QtCore/qnumeric.h"
22#include "QtCore/qsize.h"
38 constexpr inline int value()
const {
return val; }
41 constexpr inline int toInt()
const {
return (((
val)+32) & -64)>>6; }
64 friend constexpr bool operator op(QFixed lhs, QFixed rhs) noexcept \
65 { return lhs.val op rhs.val; }
84 if (
a < 0) {
a = -
a; neg =
true; }
85 if (
b < 0) {
b = -
b; neg = !neg; }
87 int res = (int)(((
a << 6) + (
b >> 1)) /
b);
102 if (
a < 0) {
a = -
a; neg =
true; }
103 if (
b < 0) {
b = -
b; neg = !neg; }
105 int res = (int)((
a *
b + 0x20L) >> 6);
127#define QFIXED_MAX (INT_MAX/256)
156#ifndef QT_NO_DEBUG_STREAM
158{
return dbg <<
f.toReal(); }
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
constexpr QFixed operator-(int i, QFixed d)
constexpr int qRound(QFixed f)
constexpr int qFloor(QFixed f)
bool qMulOverflow(QFixed v1, QFixed v2, QFixed *r)
constexpr QFixed operator*(int i, QFixed d)
bool qAddOverflow(QFixed v1, QFixed v2, QFixed *r)
QDebug & operator<<(QDebug &dbg, QFixed f)
constexpr QFixed operator+(int i, QFixed d)
GLint GLfloat GLfloat GLfloat v2
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
constexpr bool operator==(const QFixedPoint &other) const
constexpr QPointF toPointF() const
static constexpr QFixedPoint fromPointF(const QPointF &p)
constexpr QFixedPoint(QFixed _x, QFixed _y)
static constexpr QFixedSize fromSizeF(const QSizeF &s)
constexpr QFixedSize(QFixed _width, QFixed _height)
constexpr QSizeF toSizeF() const
static constexpr QFixed fromReal(qreal r)
constexpr QFixed floor() const
static constexpr QFixed fromFixed(int fixed)
constexpr int value() const
QFixed & operator*=(QFixed o)
QFixed & operator/=(QFixed o)
constexpr QFixed operator*(uint i) const
QFixed & operator-=(int i)
QFixed operator>>(int d) const
QFixed operator*(QFixed o) const
constexpr int toInt() const
constexpr QFixed operator-(int i) const
constexpr QFixed operator-(uint i) const
QFixed operator/(QFixed b) const
constexpr QFixed(long long i)
QFixed & operator*=(int i)
constexpr QFixed operator+(QFixed other) const
constexpr bool operator!() const
constexpr QFixed round() const
constexpr QFixed operator+(int i) const
constexpr QFixed operator*(int i) const
constexpr QFixed ceil() const
constexpr qreal toReal() const
constexpr QFixed operator/(int d) const
QFixed & operator+=(int i)
QFixed & operator-=(uint i)
QFixed & operator*=(uint i)
QFixed & operator+=(uint i)
constexpr QFixed operator+(uint i) const
QFixed & operator+=(QFixed other)
QFixed & operator-=(QFixed other)
QFixed & operator/=(int x)
constexpr int truncate() const
constexpr QFixed operator-(QFixed other) const
constexpr QFixed operator-() const