<class name="QAbstractTextDocumentLayout_PaintContext" doc="/** <p>The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters of a painter context.</p> <p>A painter context is used when rendering custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function, and is specified by a <a href="QAbstractTextDocumentLayout_PaintContext.html#cursorPosition()">cursor position</tt></a>, a <a href="QAbstractTextDocumentLayout_PaintContext.html#palette()">default text color</tt></a>, a <a href="QAbstractTextDocumentLayout_PaintContext.html#clip()">clip</tt></a> rectangle and a collection of <a href="%2E%2E/model-view-convenience.html#selections">selections</tt></a>.</p> @see <a href="QAbstractTextDocumentLayout.html"><tt>QAbstractTextDocumentLayout</tt></a> */"> <method name="public QAbstractTextDocumentLayout_PaintContext()" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public final com.trolltech.qt.gui.QPalette palette()" doc="/** <p>Returns the default color that is used for the text, when no color is specified in the text..</p> <p>The default value of this variable uses the application's default palette.</p> @see <a href="QAbstractTextDocumentLayout_PaintContext.html#setPalette(com.trolltech.qt.gui.QPalette)"><tt>setPalette</tt></a> */"/> <method name="public final void setPalette(com.trolltech.qt.gui.QPalette palette)" doc="/** <p>Sets the default color that is used for the text, when no color is specified in the text. to <tt>palette</tt>.</p> <p>The default value of this variable uses the application's default palette.</p> @see <a href="QAbstractTextDocumentLayout_PaintContext.html#palette()"><tt>palette</tt></a> */"/> <method name="public final int cursorPosition()" doc="/** <p>Returns the position within the document, where the cursor line should be drawn..</p> <p>The default value is -1.</p> @see <a href="QAbstractTextDocumentLayout_PaintContext.html#setCursorPosition(int)"><tt>setCursorPosition</tt></a> */"/> <method name="public final void setCursorPosition(int cursorPosition)" doc="/** <p>Sets the position within the document, where the cursor line should be drawn. to <tt>cursorPosition</tt>.</p> <p>The default value is -1.</p> @see <a href="QAbstractTextDocumentLayout_PaintContext.html#cursorPosition()"><tt>cursorPosition</tt></a> */"/> <method name="public final com.trolltech.qt.core.QRectF clip()" doc="/** <p>Returns a hint to the layout avoiding that paragraphs, frames or text that are clearly outside the specified rectangle, are drawn.</p> <p>Specifying a clip rectangle can speed up drawing of large documents significantly. Note that the clip rectangle is in document coordinates (i.e&#x2e;, not in viewport coordinates), and that it is not a substitute for a clip region set on the painter.</p> <p>The default value is a null rectangle.</p> @see <a href="QAbstractTextDocumentLayout_PaintContext.html#setClip(com.trolltech.qt.core.QRectF)"><tt>setClip</tt></a> */"/> <method name="public final void setClip(com.trolltech.qt.core.QRectF clip)" doc="/** <p>Sets a hint to the layout avoiding that paragraphs, frames or text that are clearly outside the specified rectangle, are drawn to <tt>clip</tt>.</p> <p>Specifying a clip rectangle can speed up drawing of large documents significantly. Note that the clip rectangle is in document coordinates (i.e&#x2e;, not in viewport coordinates), and that it is not a substitute for a clip region set on the painter.</p> <p>The default value is a null rectangle.</p> @see <a href="QAbstractTextDocumentLayout_PaintContext.html#clip()"><tt>clip</tt></a> */"/> </class>