QtBase  v6.3.1
Classes | Macros | Functions
qfixed_p.h File Reference
#include <QtGui/private/qtguiglobal_p.h>
#include "QtCore/qdebug.h"
#include "QtCore/qpoint.h"
#include "QtCore/qsize.h"
Include dependency graph for qfixed_p.h:

Go to the source code of this file.

Classes

struct  QFixed
 
struct  QFixedPoint
 
struct  QFixedSize
 

Macros

#define QFIXED_MAX   (INT_MAX/256)
 

Functions

 Q_DECLARE_TYPEINFO (QFixed, Q_PRIMITIVE_TYPE)
 
constexpr int qRound (const QFixed &f)
 
constexpr int qFloor (const QFixed &f)
 
constexpr QFixed operator* (int i, const QFixed &d)
 
constexpr QFixed operator+ (int i, const QFixed &d)
 
constexpr QFixed operator- (int i, const QFixed &d)
 
constexpr QFixed operator* (uint i, const QFixed &d)
 
constexpr QFixed operator+ (uint i, const QFixed &d)
 
constexpr QFixed operator- (uint i, const QFixed &d)
 
constexpr bool operator== (const QFixed &f, int i)
 
constexpr bool operator== (int i, const QFixed &f)
 
constexpr bool operator!= (const QFixed &f, int i)
 
constexpr bool operator!= (int i, const QFixed &f)
 
constexpr bool operator<= (const QFixed &f, int i)
 
constexpr bool operator<= (int i, const QFixed &f)
 
constexpr bool operator>= (const QFixed &f, int i)
 
constexpr bool operator>= (int i, const QFixed &f)
 
constexpr bool operator< (const QFixed &f, int i)
 
constexpr bool operator< (int i, const QFixed &f)
 
constexpr bool operator> (const QFixed &f, int i)
 
constexpr bool operator> (int i, const QFixed &f)
 
QDebugoperator<< (QDebug &dbg, const QFixed &f)
 
 Q_DECLARE_TYPEINFO (QFixedPoint, Q_PRIMITIVE_TYPE)
 
constexpr QFixedPoint operator- (const QFixedPoint &p1, const QFixedPoint &p2)
 
constexpr QFixedPoint operator+ (const QFixedPoint &p1, const QFixedPoint &p2)
 
 Q_DECLARE_TYPEINFO (QFixedSize, Q_PRIMITIVE_TYPE)
 

Macro Definition Documentation

◆ QFIXED_MAX

#define QFIXED_MAX   (INT_MAX/256)

Definition at line 159 of file qfixed_p.h.

Function Documentation

◆ operator!=() [1/2]

constexpr bool operator!= ( const QFixed f,
int  i 
)
inlineconstexpr

Definition at line 174 of file qfixed_p.h.

◆ operator!=() [2/2]

constexpr bool operator!= ( int  i,
const QFixed f 
)
inlineconstexpr

Definition at line 175 of file qfixed_p.h.

◆ operator*() [1/2]

constexpr QFixed operator* ( int  i,
const QFixed d 
)
inlineconstexpr

Definition at line 164 of file qfixed_p.h.

◆ operator*() [2/2]

constexpr QFixed operator* ( uint  i,
const QFixed d 
)
inlineconstexpr

Definition at line 167 of file qfixed_p.h.

◆ operator+() [1/3]

constexpr QFixedPoint operator+ ( const QFixedPoint p1,
const QFixedPoint p2 
)
inlineconstexpr

Definition at line 208 of file qfixed_p.h.

◆ operator+() [2/3]

constexpr QFixed operator+ ( int  i,
const QFixed d 
)
inlineconstexpr

Definition at line 165 of file qfixed_p.h.

◆ operator+() [3/3]

constexpr QFixed operator+ ( uint  i,
const QFixed d 
)
inlineconstexpr

Definition at line 168 of file qfixed_p.h.

◆ operator-() [1/3]

constexpr QFixedPoint operator- ( const QFixedPoint p1,
const QFixedPoint p2 
)
inlineconstexpr

Definition at line 206 of file qfixed_p.h.

◆ operator-() [2/3]

constexpr QFixed operator- ( int  i,
const QFixed d 
)
inlineconstexpr

Definition at line 166 of file qfixed_p.h.

◆ operator-() [3/3]

constexpr QFixed operator- ( uint  i,
const QFixed d 
)
inlineconstexpr

Definition at line 169 of file qfixed_p.h.

◆ operator<() [1/2]

constexpr bool operator< ( const QFixed f,
int  i 
)
inlineconstexpr

Definition at line 180 of file qfixed_p.h.

◆ operator<() [2/2]

constexpr bool operator< ( int  i,
const QFixed f 
)
inlineconstexpr

Definition at line 181 of file qfixed_p.h.

◆ operator<<()

QDebug& operator<< ( QDebug dbg,
const QFixed f 
)
inline

Definition at line 186 of file qfixed_p.h.

◆ operator<=() [1/2]

constexpr bool operator<= ( const QFixed f,
int  i 
)
inlineconstexpr

Definition at line 176 of file qfixed_p.h.

◆ operator<=() [2/2]

constexpr bool operator<= ( int  i,
const QFixed f 
)
inlineconstexpr

Definition at line 177 of file qfixed_p.h.

◆ operator==() [1/2]

constexpr bool operator== ( const QFixed f,
int  i 
)
inlineconstexpr

Definition at line 172 of file qfixed_p.h.

◆ operator==() [2/2]

constexpr bool operator== ( int  i,
const QFixed f 
)
inlineconstexpr

Definition at line 173 of file qfixed_p.h.

◆ operator>() [1/2]

constexpr bool operator> ( const QFixed f,
int  i 
)
inlineconstexpr

Definition at line 182 of file qfixed_p.h.

◆ operator>() [2/2]

constexpr bool operator> ( int  i,
const QFixed f 
)
inlineconstexpr

Definition at line 183 of file qfixed_p.h.

◆ operator>=() [1/2]

constexpr bool operator>= ( const QFixed f,
int  i 
)
inlineconstexpr

Definition at line 178 of file qfixed_p.h.

◆ operator>=() [2/2]

constexpr bool operator>= ( int  i,
const QFixed f 
)
inlineconstexpr

Definition at line 179 of file qfixed_p.h.

◆ Q_DECLARE_TYPEINFO() [1/3]

Q_DECLARE_TYPEINFO ( QFixed  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/3]

Q_DECLARE_TYPEINFO ( QFixedPoint  ,
Q_PRIMITIVE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [3/3]

Q_DECLARE_TYPEINFO ( QFixedSize  ,
Q_PRIMITIVE_TYPE   
)

◆ qFloor()

constexpr int qFloor ( const QFixed f)
inlineconstexpr

Definition at line 162 of file qfixed_p.h.

◆ qRound()

constexpr int qRound ( const QFixed f)
inlineconstexpr

Definition at line 161 of file qfixed_p.h.