Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QFixedPoint Struct Reference

#include <qfixed_p.h>

Public Functions

 QFixedPoint ()
 
 QFixedPoint (const QFixed &_x, const QFixed &_y)
 
QPointF toPointF () const
 

Static Public Functions

static QFixedPoint fromPointF (const QPointF &p)
 

Public Variables

QFixed x
 
QFixed y
 

Detailed Description

Definition at line 189 of file qfixed_p.h.

Constructors and Destructors

◆ QFixedPoint() [1/2]

QFixedPoint::QFixedPoint ( )
inline

Definition at line 192 of file qfixed_p.h.

192 {}

◆ QFixedPoint() [2/2]

QFixedPoint::QFixedPoint ( const QFixed _x,
const QFixed _y 
)
inline

Definition at line 193 of file qfixed_p.h.

193 : x(_x), y(_y) {}
QFixed y
Definition: qfixed_p.h:191
QFixed x
Definition: qfixed_p.h:190

Functions

◆ fromPointF()

static QFixedPoint QFixedPoint::fromPointF ( const QPointF p)
inlinestatic

Definition at line 195 of file qfixed_p.h.

Referenced by QPainter::drawGlyphRun(), and QTextDocumentLayoutPrivate::hitTest().

195  {
196  return QFixedPoint(QFixed::fromReal(p.x()), QFixed::fromReal(p.y()));
197  }
static QFixed fromReal(qreal r)
Definition: qfixed_p.h:70
qreal x() const
Returns the x-coordinate of this point.
Definition: qpoint.h:282
qreal y() const
Returns the y-coordinate of this point.
Definition: qpoint.h:287

◆ toPointF()

QPointF QFixedPoint::toPointF ( ) const
inline

Properties

◆ x

QFixed QFixedPoint::x

◆ y

QFixed QFixedPoint::y

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