Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QAbstractTextDocumentLayout.PaintContext Class Reference

The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters used when painting a document's layout. More...

Inheritance diagram for QtGui.QAbstractTextDocumentLayout.PaintContext:
Collaboration diagram for QtGui.QAbstractTextDocumentLayout.PaintContext:

Public Member Functions

 PaintContext ()
 
 PaintContext (QAbstractTextDocumentLayout.PaintContext copy)
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Protected Member Functions

 PaintContext (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 
new QRectF Clip [get, set]
 
 
new int CursorPosition [get, set]
 
 
new QPalette Palette [get, set]
 
 
new
System.Collections.Generic.List
< QAbstractTextDocumentLayout.Selection
Selections [get, set]
 
 

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.

See also QAbstractTextDocumentLayout.

Constructor & Destructor Documentation

QtGui.QAbstractTextDocumentLayout.PaintContext.PaintContext ( System.Type  dummy)
protected
QtGui.QAbstractTextDocumentLayout.PaintContext.PaintContext ( )
QtGui.QAbstractTextDocumentLayout.PaintContext.PaintContext ( QAbstractTextDocumentLayout.PaintContext  copy)

Member Function Documentation

virtual void QtGui.QAbstractTextDocumentLayout.PaintContext.CreateProxy ( )
virtual
new void QtGui.QAbstractTextDocumentLayout.PaintContext.Dispose ( )

Member Data Documentation

SmokeInvocation QtGui.QAbstractTextDocumentLayout.PaintContext.interceptor
protected

Property Documentation

new QRectF QtGui.QAbstractTextDocumentLayout.PaintContext.Clip
getset

This variable holds a hint to the layout specifying the area around paragraphs, frames or text require painting.

Everything outside of this rectangle does not need to be painted.

Specifying a clip rectangle can speed up drawing of large documents significantly. Note that the clip rectangle is in document coordinates (not in viewport coordinates). It is not a substitute for a clip region set on the painter but merely a hint.

The default value is a null rectangle indicating everything needs to be painted.

new int QtGui.QAbstractTextDocumentLayout.PaintContext.CursorPosition
getset

This variable holds the position within the document, where the cursor line should be drawn.

The default value is -1.

new QPalette QtGui.QAbstractTextDocumentLayout.PaintContext.Palette
getset

This variable holds the default color that is used for the text, when no color is specified.

The default value is the application's default palette.

new System.Collections.Generic.List<QAbstractTextDocumentLayout.Selection> QtGui.QAbstractTextDocumentLayout.PaintContext.Selections
getset

This variable holds the collection of selections that will be rendered when passing this paint context to QAbstractTextDocumentLayout's draw() function.

The default value is an empty vector indicating no selection.

virtual System.IntPtr QtGui.QAbstractTextDocumentLayout.PaintContext.SmokeObject
getset