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>.
|
\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.
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 QTextDocumentLayoutPrivate::drawFlow().