Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPageLayoutPrivate Class Reference
+ Inheritance diagram for QPageLayoutPrivate:
+ Collaboration diagram for QPageLayoutPrivate:

Public Member Functions

 QPageLayoutPrivate (const QPageSize &pageSize, QPageLayout::Orientation orientation, const QMarginsF &margins, QPageLayout::Unit units, const QMarginsF &minMargins)
 
 ~QPageLayoutPrivate ()
 
bool operator== (const QPageLayoutPrivate &other) const
 
bool isEquivalentTo (const QPageLayoutPrivate &other) const
 
bool isValid () const
 
QMarginsF clampMargins (const QMarginsF &margins) const
 
QMarginsF margins (QPageLayout::Unit units) const
 
QMarginsF marginsPoints () const
 
QMargins marginsPixels (int resolution) const
 
void setDefaultMargins (const QMarginsF &minMargins)
 
QSizeF paintSize () const
 
QRectF fullRect () const
 
QRectF fullRect (QPageLayout::Unit units) const
 
QRect fullRectPoints () const
 
QRect fullRectPixels (int resolution) const
 
QRectF paintRect () const
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Friends

class QPageLayout
 

Additional Inherited Members

- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 68 of file qpagelayout.cpp.

Constructor & Destructor Documentation

◆ QPageLayoutPrivate()

QPageLayoutPrivate::QPageLayoutPrivate ( const QPageSize & pageSize,
QPageLayout::Orientation orientation,
const QMarginsF & margins,
QPageLayout::Unit units,
const QMarginsF & minMargins )

Definition at line 114 of file qpagelayout.cpp.

References setDefaultMargins().

+ Here is the call graph for this function:

◆ ~QPageLayoutPrivate()

QPageLayoutPrivate::~QPageLayoutPrivate ( )

Definition at line 127 of file qpagelayout.cpp.

Member Function Documentation

◆ clampMargins()

QMarginsF QPageLayoutPrivate::clampMargins ( const QMarginsF & margins) const

Definition at line 154 of file qpagelayout.cpp.

References QMarginsF::bottom(), QMarginsF::left(), margins(), qBound(), QMarginsF::right(), and QMarginsF::top().

Referenced by setDefaultMargins(), and QPageLayout::setMargins().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fullRect() [1/2]

QRectF QPageLayoutPrivate::fullRect ( ) const

Definition at line 194 of file qpagelayout.cpp.

Referenced by QPageLayout::fullRect(), fullRect(), QPageLayout::fullRect(), paintRect(), and QPageLayout::paintRect().

+ Here is the caller graph for this function:

◆ fullRect() [2/2]

QRectF QPageLayoutPrivate::fullRect ( QPageLayout::Unit units) const

Definition at line 199 of file qpagelayout.cpp.

References fullRect().

+ Here is the call graph for this function:

◆ fullRectPixels()

QRect QPageLayoutPrivate::fullRectPixels ( int resolution) const

Definition at line 212 of file qpagelayout.cpp.

References QPageLayout::Landscape, QPageSize::sizePixels(), and QSize::transposed().

Referenced by QPageLayout::fullRectPixels(), and QPageLayout::paintRectPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fullRectPoints()

QRect QPageLayoutPrivate::fullRectPoints ( ) const

Definition at line 204 of file qpagelayout.cpp.

References QPageLayout::Landscape, QPageSize::sizePoints(), and QSize::transposed().

Referenced by QPageLayout::fullRectPoints(), and QPageLayout::paintRectPoints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isEquivalentTo()

bool QPageLayoutPrivate::isEquivalentTo ( const QPageLayoutPrivate & other) const

Definition at line 141 of file qpagelayout.cpp.

References QPageSize::isEquivalentTo(), other(), QPageLayout::Point, and qt_convertMargins().

Referenced by QPageLayout::isEquivalentTo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isValid()

bool QPageLayoutPrivate::isValid ( ) const

Definition at line 149 of file qpagelayout.cpp.

References QPageSize::isValid().

Referenced by QPageLayout::isValid().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ margins()

QMarginsF QPageLayoutPrivate::margins ( QPageLayout::Unit units) const

Definition at line 162 of file qpagelayout.cpp.

References qt_convertMargins().

Referenced by clampMargins(), QPageLayout::margins(), and QPageLayout::paintRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ marginsPixels()

QMargins QPageLayoutPrivate::marginsPixels ( int resolution) const

Definition at line 172 of file qpagelayout.cpp.

References marginsPoints(), qt_pixelMultiplier(), and QMarginsF::toMargins().

Referenced by QPageLayout::marginsPixels(), and QPageLayout::paintRectPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ marginsPoints()

QMarginsF QPageLayoutPrivate::marginsPoints ( ) const

Definition at line 167 of file qpagelayout.cpp.

References QPageLayout::Point, and qt_convertMargins().

Referenced by marginsPixels(), QPageLayout::marginsPoints(), and QPageLayout::paintRectPoints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool QPageLayoutPrivate::operator== ( const QPageLayoutPrivate & other) const

Definition at line 131 of file qpagelayout.cpp.

References other().

+ Here is the call graph for this function:

◆ paintRect()

QRectF QPageLayoutPrivate::paintRect ( ) const

Definition at line 220 of file qpagelayout.cpp.

References QPageLayout::FullPageMode, and fullRect().

Referenced by QPageLayout::paintRect(), and QPageLayout::paintRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ paintSize()

QSizeF QPageLayoutPrivate::paintSize ( ) const

◆ setDefaultMargins()

void QPageLayoutPrivate::setDefaultMargins ( const QMarginsF & minMargins)

Definition at line 177 of file qpagelayout.cpp.

References QMarginsF::bottom(), clampMargins(), QSizeF::height(), QMarginsF::left(), qMax(), QMarginsF::right(), QPageLayout::StandardMode, QMarginsF::top(), and QSizeF::width().

Referenced by QPageLayoutPrivate(), QPageLayout::setMinimumMargins(), and QPageLayout::setPageSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QPageLayout

friend class QPageLayout
friend

Definition at line 100 of file qpagelayout.cpp.


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