QAbstractTextDocumentLayout.PaintContext

Detailed Description

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 cursor position , default text color , clip rectangle and a collection of selections .

class PySide.QtGui.QAbstractTextDocumentLayout.PaintContext
class PySide.QtGui.QAbstractTextDocumentLayout.PaintContext(PaintContext)
Parameters:PaintContextPySide.QtGui.QAbstractTextDocumentLayout::PaintContext
PySide.QtGui.QAbstractTextDocumentLayout.PaintContext.palette
PySide.QtGui.QAbstractTextDocumentLayout.PaintContext.cursorPosition
PySide.QtGui.QAbstractTextDocumentLayout.PaintContext.clip