Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
BorderPaginator Struct Reference
+ Collaboration diagram for BorderPaginator:

Public Member Functions

 BorderPaginator (QTextDocument *document, const QRectF &rect, qreal topMarginAfterPageBreak, qreal bottomMargin, qreal border)
 
QRectF clipRect (int page) const
 

Public Attributes

qreal pageHeight
 
int topPage
 
int bottomPage
 
QRectF rect
 
qreal topMarginAfterPageBreak
 
qreal bottomMargin
 
qreal border
 

Detailed Description

Definition at line 860 of file qtextdocumentlayout.cpp.

Constructor & Destructor Documentation

◆ BorderPaginator()

BorderPaginator::BorderPaginator ( QTextDocument document,
const QRectF rect,
qreal  topMarginAfterPageBreak,
qreal  bottomMargin,
qreal  border 
)
inline

Definition at line 862 of file qtextdocumentlayout.cpp.

Member Function Documentation

◆ clipRect()

QRectF BorderPaginator::clipRect ( int  page) const
inline

Definition at line 871 of file qtextdocumentlayout.cpp.

References QRectF::bottom(), bottomMargin, bottomPage, page, pageHeight, qMax(), qMin(), rect, QRectF::setBottom(), QRectF::setTop(), QRectF::top(), topMarginAfterPageBreak, topPage, and QRectF::toRect().

Referenced by QTextDocumentLayoutPrivate::drawBorder(), and QTextDocumentLayoutPrivate::drawTableCellBorder().

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

Member Data Documentation

◆ border

qreal BorderPaginator::border

Definition at line 892 of file qtextdocumentlayout.cpp.

◆ bottomMargin

qreal BorderPaginator::bottomMargin

Definition at line 891 of file qtextdocumentlayout.cpp.

Referenced by clipRect().

◆ bottomPage

int BorderPaginator::bottomPage

◆ pageHeight

qreal BorderPaginator::pageHeight

Definition at line 886 of file qtextdocumentlayout.cpp.

Referenced by clipRect().

◆ rect

QRectF BorderPaginator::rect

Definition at line 889 of file qtextdocumentlayout.cpp.

Referenced by clipRect().

◆ topMarginAfterPageBreak

qreal BorderPaginator::topMarginAfterPageBreak

Definition at line 890 of file qtextdocumentlayout.cpp.

Referenced by clipRect().

◆ topPage

int BorderPaginator::topPage

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