![]() |
Qt 6.x
The Qt SDK
|
\reentrant \inmodule QtGui More...
#include <qabstracttextdocumentlayout.h>
Public Member Functions | |
PaintContext () | |
Public Attributes | |
int | cursorPosition |
QPalette | palette |
QRectF | clip |
QList< Selection > | selections |
\reentrant \inmodule QtGui
The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters used when painting a document's layout.
A paint context is used when rendering custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function. It is specified by a \l {cursorPosition}{cursor position}, \l {palette}{default text color}, \l clip rectangle and a collection of \l selections.
Definition at line 37 of file qabstracttextdocumentlayout.h.
|
inline |
Definition at line 39 of file qabstracttextdocumentlayout.h.
QRectF QAbstractTextDocumentLayout::PaintContext::clip |
Definition at line 44 of file qabstracttextdocumentlayout.h.
Referenced by cellClipTest(), and QTextDocumentLayoutPrivate::drawTableCell().
int QAbstractTextDocumentLayout::PaintContext::cursorPosition |
Definition at line 42 of file qabstracttextdocumentlayout.h.
QPalette QAbstractTextDocumentLayout::PaintContext::palette |
Definition at line 43 of file qabstracttextdocumentlayout.h.
Definition at line 45 of file qabstracttextdocumentlayout.h.
Referenced by adjustContextSelectionsForCell(), and QTextDocumentLayoutPrivate::drawFlow().