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
QAbstractTextDocumentLayout::PaintContext Class Reference

\reentrant \inmodule QtGui More...

#include <qabstracttextdocumentlayout.h>

+ Collaboration diagram for QAbstractTextDocumentLayout::PaintContext:

Public Member Functions

 PaintContext ()
 

Public Attributes

int cursorPosition
 
QPalette palette
 
QRectF clip
 
QList< Selectionselections
 

Detailed Description

\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.

See also
QAbstractTextDocumentLayout

Definition at line 37 of file qabstracttextdocumentlayout.h.

Constructor & Destructor Documentation

◆ PaintContext()

QAbstractTextDocumentLayout::PaintContext::PaintContext ( )
inline

Definition at line 39 of file qabstracttextdocumentlayout.h.

Member Data Documentation

◆ clip

QRectF QAbstractTextDocumentLayout::PaintContext::clip

Definition at line 44 of file qabstracttextdocumentlayout.h.

◆ cursorPosition

int QAbstractTextDocumentLayout::PaintContext::cursorPosition

Definition at line 42 of file qabstracttextdocumentlayout.h.

◆ palette

QPalette QAbstractTextDocumentLayout::PaintContext::palette

Definition at line 43 of file qabstracttextdocumentlayout.h.

◆ selections

QList<Selection> QAbstractTextDocumentLayout::PaintContext::selections

Definition at line 45 of file qabstracttextdocumentlayout.h.

Referenced by QTextDocumentLayoutPrivate::drawFlow().


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