<class name="QAbstractTextDocumentLayout_Selection" doc="/** <p>The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.</p> <p>A selection can be used to specify a part of a document that should be rendere when drawing custom layouts for QTextDocuments with the QAbstractTextDocumentLayout::draw() function, and is specified by a <a href="QAbstractTextDocumentLayout_Selection.html#cursor()">cursor</tt></a> and a <a href="QAbstractTextDocumentLayout_Selection.html#format()">format</tt></a>.</p> @see <a href="QAbstractTextDocumentLayout.html"><tt>QAbstractTextDocumentLayout</tt></a> @see <tt>PaintContext</tt> */"> <method name="public QAbstractTextDocumentLayout_Selection()"/> <method name="public final com.trolltech.qt.gui.QTextCursor cursor()" doc="/** <p>Returns the selection's cursor.</p> <p>The default value is a null cursor.</p> @see <a href="QAbstractTextDocumentLayout_Selection.html#setCursor(com.trolltech.qt.gui.QTextCursor)"><tt>setCursor</tt></a> */"/> <method name="public final void setCursor(com.trolltech.qt.gui.QTextCursor cursor)" doc="/** <p>Sets the selection's cursor to <tt>cursor</tt>.</p> <p>The default value is a null cursor.</p> @see <a href="QAbstractTextDocumentLayout_Selection.html#cursor()"><tt>cursor</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QTextCharFormat format()" doc="/** <p>Returns the format of the selection.</p> <p>The default value is QTextFormat::InvalidFormat.</p> @see <a href="QAbstractTextDocumentLayout_Selection.html#setFormat(com.trolltech.qt.gui.QTextCharFormat)"><tt>setFormat</tt></a> */"/> <method name="public final void setFormat(com.trolltech.qt.gui.QTextCharFormat format)" doc="/** <p>Sets the format of the selection to <tt>format</tt>.</p> <p>The default value is QTextFormat::InvalidFormat.</p> @see <a href="QAbstractTextDocumentLayout_Selection.html#format()"><tt>format</tt></a> */"/> </class>