Qt 6.x
The Qt SDK
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
 
void clampMargins (const QMarginsF &margins)
 
QMarginsF margins (QPageLayout::Unit units) const
 
QMargins 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 90 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 136 of file qpagelayout.cpp.

References setDefaultMargins().

+ Here is the call graph for this function:

◆ ~QPageLayoutPrivate()

QPageLayoutPrivate::~QPageLayoutPrivate ( )

Definition at line 149 of file qpagelayout.cpp.

Member Function Documentation

◆ clampMargins()

void QPageLayoutPrivate::clampMargins ( const QMarginsF margins)

Definition at line 176 of file qpagelayout.cpp.

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

Referenced by setDefaultMargins().

+ 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 216 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 221 of file qpagelayout.cpp.

References fullRect().

+ Here is the call graph for this function:

◆ fullRectPixels()

QRect QPageLayoutPrivate::fullRectPixels ( int  resolution) const

Definition at line 234 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 226 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 163 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 171 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 184 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 194 of file qpagelayout.cpp.

References marginsPoints(), and qt_pixelMultiplier().

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

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

◆ marginsPoints()

QMargins QPageLayoutPrivate::marginsPoints ( ) const

Definition at line 189 of file qpagelayout.cpp.

References QPageLayout::Point, qt_convertMargins(), and QMarginsF::toMargins().

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 153 of file qpagelayout.cpp.

References other().

+ Here is the call graph for this function:

◆ paintRect()

QRectF QPageLayoutPrivate::paintRect ( ) const

Definition at line 242 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 199 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 122 of file qpagelayout.cpp.


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