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

#include <qfixed_p.h>

Public Functions

QSizeF toSizeF () const
 

Static Public Functions

static QFixedSize fromSizeF (const QSizeF &s)
 

Public Variables

QFixed height
 
QFixed width
 

Detailed Description

Definition at line 206 of file qfixed_p.h.

Functions

◆ fromSizeF()

static QFixedSize QFixedSize::fromSizeF ( const QSizeF s)
inlinestatic

Definition at line 210 of file qfixed_p.h.

Referenced by QTextDocumentLayout::resizeInlineObject().

210  {
211  QFixedSize size;
212  size.width = QFixed::fromReal(s.width());
213  size.height = QFixed::fromReal(s.height());
214  return size;
215  }
qreal width() const
Returns the width.
Definition: qsize.h:284
qreal height() const
Returns the height.
Definition: qsize.h:287
static QFixed fromReal(qreal r)
Definition: qfixed_p.h:70
QFixed width
Definition: qfixed_p.h:207
QFixed height
Definition: qfixed_p.h:208

◆ toSizeF()

QSizeF QFixedSize::toSizeF ( ) const
inline

Definition at line 209 of file qfixed_p.h.

Referenced by QTextDocumentLayout::draw(), QTextDocumentLayoutPrivate::drawFrame(), and QTextDocumentLayoutPrivate::layoutFlow().

209 { return QSizeF(width.toReal(), height.toReal()); }
The QSizeF class defines the size of a two-dimensional object using floating point precision...
Definition: qsize.h:202
QFixed width
Definition: qfixed_p.h:207
qreal toReal() const
Definition: qfixed_p.h:77
QFixed height
Definition: qfixed_p.h:208

Properties

◆ height

QFixed QFixedSize::height

◆ width

QFixed QFixedSize::width

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