<class name="QAbstractTextDocumentLayout_PaintContext" doc="/**
&lt;p&gt;The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters of a painter context.&lt;/p&gt;
&lt;p&gt;A painter context is used when rendering custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function, and is specified by a &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#cursorPosition()&quot;&gt;cursor position&lt;/tt&gt;&lt;/a&gt;, a &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#palette()&quot;&gt;default text color&lt;/tt&gt;&lt;/a&gt;, a &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#clip()&quot;&gt;clip&lt;/tt&gt;&lt;/a&gt; rectangle and a collection of &lt;a href=&quot;%2E%2E/model-view-convenience.html#selections&quot;&gt;selections&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout.html&quot;&gt;&lt;tt&gt;QAbstractTextDocumentLayout&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QAbstractTextDocumentLayout_PaintContext()" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPalette palette()" doc="/**
&lt;p&gt;Returns the default color that is used for the text, when no color is specified in the text..&lt;/p&gt;
&lt;p&gt;The default value of this variable uses the application's default palette.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#setPalette(com.trolltech.qt.gui.QPalette)&quot;&gt;&lt;tt&gt;setPalette&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPalette(com.trolltech.qt.gui.QPalette palette)" doc="/**
&lt;p&gt;Sets the default color that is used for the text, when no color is specified in the text. to &lt;tt&gt;palette&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value of this variable uses the application's default palette.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#palette()&quot;&gt;&lt;tt&gt;palette&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int cursorPosition()" doc="/**
&lt;p&gt;Returns the position within the document, where the cursor line should be drawn..&lt;/p&gt;
&lt;p&gt;The default value is -1.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#setCursorPosition(int)&quot;&gt;&lt;tt&gt;setCursorPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCursorPosition(int cursorPosition)" doc="/**
&lt;p&gt;Sets the position within the document, where the cursor line should be drawn. to &lt;tt&gt;cursorPosition&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is -1.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#cursorPosition()&quot;&gt;&lt;tt&gt;cursorPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRectF clip()" doc="/**
&lt;p&gt;Returns a hint to the layout avoiding that paragraphs, frames or text that are clearly outside the specified rectangle, are drawn.&lt;/p&gt;
&lt;p&gt;Specifying a clip rectangle can speed up drawing of large documents significantly. Note that the clip rectangle is in document coordinates (i.e&amp;#x2e;, not in viewport coordinates), and that it is not a substitute for a clip region set on the painter.&lt;/p&gt;
&lt;p&gt;The default value is a null rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#setClip(com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;setClip&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setClip(com.trolltech.qt.core.QRectF clip)" doc="/**
&lt;p&gt;Sets a hint to the layout avoiding that paragraphs, frames or text that are clearly outside the specified rectangle, are drawn to &lt;tt&gt;clip&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Specifying a clip rectangle can speed up drawing of large documents significantly. Note that the clip rectangle is in document coordinates (i.e&amp;#x2e;, not in viewport coordinates), and that it is not a substitute for a clip region set on the painter.&lt;/p&gt;
&lt;p&gt;The default value is a null rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_PaintContext.html#clip()&quot;&gt;&lt;tt&gt;clip&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
