<class name="QAbstractTextDocumentLayout_Selection" doc="/**
&lt;p&gt;The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection.&lt;/p&gt;
&lt;p&gt;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 &lt;a href=&quot;QAbstractTextDocumentLayout_Selection.html#cursor()&quot;&gt;cursor&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QAbstractTextDocumentLayout_Selection.html#format()&quot;&gt;format&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;
@see &lt;tt&gt;PaintContext&lt;/tt&gt; */">
    <method name="public QAbstractTextDocumentLayout_Selection()"/>
    <method name="public final com.trolltech.qt.gui.QTextCursor cursor()" doc="/**
&lt;p&gt;Returns the selection's cursor.&lt;/p&gt;
&lt;p&gt;The default value is a null cursor.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_Selection.html#setCursor(com.trolltech.qt.gui.QTextCursor)&quot;&gt;&lt;tt&gt;setCursor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCursor(com.trolltech.qt.gui.QTextCursor cursor)" doc="/**
&lt;p&gt;Sets the selection's cursor to &lt;tt&gt;cursor&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is a null cursor.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_Selection.html#cursor()&quot;&gt;&lt;tt&gt;cursor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextCharFormat format()" doc="/**
&lt;p&gt;Returns the format of the selection.&lt;/p&gt;
&lt;p&gt;The default value is QTextFormat::InvalidFormat.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractTextDocumentLayout_Selection.html#setFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFormat(com.trolltech.qt.gui.QTextCharFormat format)" doc="/**
&lt;p&gt;Sets the format of the selection to &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is QTextFormat::InvalidFormat.&lt;/p&gt;

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