Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QFixed Struct Reference

#include <qfixed_p.h>

Collaboration diagram for QFixed:

Public Member Functions

constexpr QFixed ()
constexpr QFixed (int i)
constexpr QFixed (long i)
constexpr QFixed (long long i)
constexpr int value () const
void setValue (int value)
constexpr int toInt () const
constexpr qreal toReal () const
constexpr int truncate () const
constexpr QFixed round () const
constexpr QFixed floor () const
constexpr QFixed ceil () const
constexpr QFixed operator+ (int i) const
constexpr QFixed operator+ (uint i) const
constexpr QFixed operator+ (QFixed other) const
QFixedoperator+= (int i)
QFixedoperator+= (uint i)
QFixedoperator+= (QFixed other)
constexpr QFixed operator- (int i) const
constexpr QFixed operator- (uint i) const
constexpr QFixed operator- (QFixed other) const
QFixedoperator-= (int i)
QFixedoperator-= (uint i)
QFixedoperator-= (QFixed other)
constexpr QFixed operator- () const
constexpr bool operator! () const
QFixedoperator/= (int x)
QFixedoperator/= (QFixed o)
constexpr QFixed operator/ (int d) const
QFixed operator/ (QFixed b) const
QFixed operator>> (int d) const
QFixedoperator*= (int i)
QFixedoperator*= (uint i)
QFixedoperator*= (QFixed o)
constexpr QFixed operator* (int i) const
constexpr QFixed operator* (uint i) const
QFixed operator* (QFixed o) const

Static Public Member Functions

static constexpr QFixed fromReal (qreal r)
static constexpr QFixed fromFixed (int fixed)

Detailed Description

Definition at line 27 of file qfixed_p.h.

Constructor & Destructor Documentation

◆ QFixed() [1/4]

QFixed::QFixed ( )
inlineconstexpr

Definition at line 31 of file qfixed_p.h.

◆ QFixed() [2/4]

QFixed::QFixed ( int i)
inlineconstexpr

Definition at line 32 of file qfixed_p.h.

◆ QFixed() [3/4]

QFixed::QFixed ( long i)
inlineconstexpr

Definition at line 33 of file qfixed_p.h.

◆ QFixed() [4/4]

QFixed::QFixed ( long long i)
inlineconstexpr

Definition at line 34 of file qfixed_p.h.

Member Function Documentation

◆ ceil()

QFixed QFixed::ceil ( ) const
inlineconstexpr

Definition at line 48 of file qfixed_p.h.

◆ floor()

QFixed QFixed::floor ( ) const
inlineconstexpr

Definition at line 47 of file qfixed_p.h.

◆ fromFixed()

constexpr QFixed QFixed::fromFixed ( int fixed)
inlinestaticconstexpr

Definition at line 37 of file qfixed_p.h.

◆ fromReal()

constexpr QFixed QFixed::fromReal ( qreal r)
inlinestaticconstexpr

Definition at line 36 of file qfixed_p.h.

◆ operator!()

bool QFixed::operator! ( ) const
inlineconstexpr

Definition at line 75 of file qfixed_p.h.

◆ operator*() [1/3]

QFixed QFixed::operator* ( int i) const
inlineconstexpr

Definition at line 110 of file qfixed_p.h.

◆ operator*() [2/3]

QFixed QFixed::operator* ( QFixed o) const
inline

Definition at line 112 of file qfixed_p.h.

◆ operator*() [3/3]

QFixed QFixed::operator* ( uint i) const
inlineconstexpr

Definition at line 111 of file qfixed_p.h.

◆ operator*=() [1/3]

QFixed & QFixed::operator*= ( int i)
inline

Definition at line 97 of file qfixed_p.h.

◆ operator*=() [2/3]

QFixed & QFixed::operator*= ( QFixed o)
inline

Definition at line 99 of file qfixed_p.h.

◆ operator*=() [3/3]

QFixed & QFixed::operator*= ( uint i)
inline

Definition at line 98 of file qfixed_p.h.

◆ operator+() [1/3]

QFixed QFixed::operator+ ( int i) const
inlineconstexpr

Definition at line 50 of file qfixed_p.h.

◆ operator+() [2/3]

QFixed QFixed::operator+ ( QFixed other) const
inlineconstexpr

Definition at line 52 of file qfixed_p.h.

◆ operator+() [3/3]

QFixed QFixed::operator+ ( uint i) const
inlineconstexpr

Definition at line 51 of file qfixed_p.h.

◆ operator+=() [1/3]

QFixed & QFixed::operator+= ( int i)
inline

Definition at line 53 of file qfixed_p.h.

◆ operator+=() [2/3]

QFixed & QFixed::operator+= ( QFixed other)
inline

Definition at line 55 of file qfixed_p.h.

◆ operator+=() [3/3]

QFixed & QFixed::operator+= ( uint i)
inline

Definition at line 54 of file qfixed_p.h.

◆ operator-() [1/4]

QFixed QFixed::operator- ( ) const
inlineconstexpr

Definition at line 62 of file qfixed_p.h.

◆ operator-() [2/4]

QFixed QFixed::operator- ( int i) const
inlineconstexpr

Definition at line 56 of file qfixed_p.h.

◆ operator-() [3/4]

QFixed QFixed::operator- ( QFixed other) const
inlineconstexpr

Definition at line 58 of file qfixed_p.h.

◆ operator-() [4/4]

QFixed QFixed::operator- ( uint i) const
inlineconstexpr

Definition at line 57 of file qfixed_p.h.

◆ operator-=() [1/3]

QFixed & QFixed::operator-= ( int i)
inline

Definition at line 59 of file qfixed_p.h.

◆ operator-=() [2/3]

QFixed & QFixed::operator-= ( QFixed other)
inline

Definition at line 61 of file qfixed_p.h.

◆ operator-=() [3/3]

QFixed & QFixed::operator-= ( uint i)
inline

Definition at line 60 of file qfixed_p.h.

◆ operator/() [1/2]

QFixed QFixed::operator/ ( int d) const
inlineconstexpr

Definition at line 94 of file qfixed_p.h.

◆ operator/() [2/2]

QFixed QFixed::operator/ ( QFixed b) const
inline

Definition at line 95 of file qfixed_p.h.

◆ operator/=() [1/2]

QFixed & QFixed::operator/= ( int x)
inline

Definition at line 77 of file qfixed_p.h.

◆ operator/=() [2/2]

QFixed & QFixed::operator/= ( QFixed o)
inline

Definition at line 78 of file qfixed_p.h.

◆ operator>>()

QFixed QFixed::operator>> ( int d) const
inline

Definition at line 96 of file qfixed_p.h.

◆ round()

QFixed QFixed::round ( ) const
inlineconstexpr

Definition at line 46 of file qfixed_p.h.

◆ setValue()

void QFixed::setValue ( int value)
inline

Definition at line 40 of file qfixed_p.h.

◆ toInt()

int QFixed::toInt ( ) const
inlineconstexpr

Definition at line 42 of file qfixed_p.h.

◆ toReal()

qreal QFixed::toReal ( ) const
inlineconstexpr

Definition at line 43 of file qfixed_p.h.

◆ truncate()

int QFixed::truncate ( ) const
inlineconstexpr

Definition at line 45 of file qfixed_p.h.

◆ value()

int QFixed::value ( ) const
inlineconstexpr

Definition at line 39 of file qfixed_p.h.


The documentation for this struct was generated from the following file: