Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2325

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QTextLayout" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextLayout.html#QTextLayout(com.trolltech.qt.gui.QTextBlock)&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt; class is used to lay out and paint a single paragraph of text.&lt;/p&gt;
&lt;p&gt;It offers most features expected from a modern text layout engine, including Unicode compliant rendering, line breaking and handling of cursor positioning. It can also produce and render device independent layout, something that is important for WYSIWYG applications.&lt;/p&gt;
&lt;p&gt;The class has a rather low level API and unless you intend to implement your own text rendering for some specialized widget, you probably won't need to use it directly.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextLayout.html#QTextLayout(com.trolltech.qt.gui.QTextBlock)&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt; can currently deal with plain text and rich text paragraphs that are part of a &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextLayout.html#QTextLayout(com.trolltech.qt.gui.QTextBlock)&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt; can be used to create a sequence of &lt;a href=&quot;QTextLine.html&quot;&gt;&lt;tt&gt;QTextLine&lt;/tt&gt;&lt;/a&gt;'s with given widths and can position them independently on the screen. Once the layout is done, these lines can be drawn on a paint device.&lt;/p&gt;
&lt;p&gt;Here's some pseudo code that presents the layout phase:&lt;/p&gt;
&lt;pre&gt;    int leading = fontMetrics.leading();
    int height = 0;
    qreal widthUsed = 0;
    textLayout.beginLayout();
    while (1) {
        QTextLine line = textLayout.createLine();
        if (!line.isValid())
            break;

        line.setLineWidth(lineWidth);
        height += leading;
        line.setPosition(QPoint(0, height));
        height += line.height();
        widthUsed = qMax(widthUsed, line.naturalTextWidth());
    }
    textLayout.endLayout();&lt;/pre&gt;
&lt;p&gt;The text can be drawn by calling the layout's &lt;a href=&quot;QTextLayout.html#draw(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QPointF, java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt;, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;draw&lt;/tt&gt;&lt;/a&gt; function:&lt;/p&gt;
&lt;pre&gt;    QPainter painter(this);
    textLayout.draw(&amp;amp;painter, QPoint(0, 0));&lt;/pre&gt;
&lt;p&gt;The text layout's text is set in the constructor or with &lt;a href=&quot;QTextLayout.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt;. The layout can be seen as a sequence of &lt;a href=&quot;QTextLine.html&quot;&gt;&lt;tt&gt;QTextLine&lt;/tt&gt;&lt;/a&gt; objects; use &lt;a href=&quot;QTextLayout.html#lineAt(int)&quot;&gt;&lt;tt&gt;lineAt&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTextLayout.html#lineForTextPosition(int)&quot;&gt;&lt;tt&gt;lineForTextPosition&lt;/tt&gt;&lt;/a&gt; to get a &lt;a href=&quot;QTextLine.html&quot;&gt;&lt;tt&gt;QTextLine&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextLayout.html#createLine()&quot;&gt;&lt;tt&gt;createLine&lt;/tt&gt;&lt;/a&gt; to create one. For a given position in the text you can find a valid cursor position with &lt;a href=&quot;QTextLayout.html#isValidCursorPosition(int)&quot;&gt;&lt;tt&gt;isValidCursorPosition&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextLayout.html#nextCursorPosition(int, com.trolltech.qt.gui.QTextLayout.CursorMode)&quot;&gt;&lt;tt&gt;nextCursorPosition&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTextLayout.html#previousCursorPosition(int, com.trolltech.qt.gui.QTextLayout.CursorMode)&quot;&gt;&lt;tt&gt;previousCursorPosition&lt;/tt&gt;&lt;/a&gt;. The layout itself can be positioned with &lt;a href=&quot;QTextLayout.html#setPosition(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt;; it has a &lt;a href=&quot;QTextLayout.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;, and a &lt;a href=&quot;QTextLayout.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QTextLayout.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt;. A text layout can be drawn on a painter device using &lt;a href=&quot;QTextLayout.html#draw(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QPointF, java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt;, com.trolltech.qt.core.QRectF)&quot;&gt;&lt;tt&gt;draw&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */">
    <method name="public QTextLayout()" doc="/**
&lt;p&gt;Constructs an empty text layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QTextLayout(java.lang.String text, com.trolltech.qt.gui.QFont font, com.trolltech.qt.gui.QPaintDeviceInterface paintdevice)" doc="/**
&lt;p&gt;Constructs a text layout to lay out the given &lt;tt&gt;text&lt;/tt&gt; with the specified &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;All the metric and layout calculations will be done in terms of the paint device, &lt;tt&gt;paintdevice&lt;/tt&gt;. If &lt;tt&gt;paintdevice&lt;/tt&gt; is 0 the calculations will be done in screen metrics.&lt;/p&gt;
 */"/>
    <method name="public QTextLayout(java.lang.String text, com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextLayout.html#QTextLayout(com.trolltech.qt.gui.QTextBlock)&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;text&lt;/tt&gt;, &lt;tt&gt;font&lt;/tt&gt;, 0). */"/>
    <method name="public QTextLayout(java.lang.String text)" doc="/**
&lt;p&gt;Constructs a text layout to lay out the given &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextLayout(com.trolltech.qt.gui.QTextBlock b)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt; additionalFormats()" doc="/**
&lt;p&gt;Returns the list of additional formats supported by the text layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setAdditionalFormats(java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt;)&quot;&gt;&lt;tt&gt;setAdditionalFormats&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#clearAdditionalFormats()&quot;&gt;&lt;tt&gt;clearAdditionalFormats&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void beginLayout()" doc="/**
&lt;p&gt;Begins the layout process.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRectF boundingRect()" doc="/**
&lt;p&gt;The smallest rectangle that contains all the lines in the layout.&lt;/p&gt;
 */"/>
    <method name="public final boolean cacheEnabled()" doc="/**
&lt;p&gt;Returns true if the complete layout information is cached; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setCacheEnabled(boolean)&quot;&gt;&lt;tt&gt;setCacheEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearAdditionalFormats()" doc="/**
&lt;p&gt;Clears the list of additional formats supported by the text layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#additionalFormats()&quot;&gt;&lt;tt&gt;additionalFormats&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#setAdditionalFormats(java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt;)&quot;&gt;&lt;tt&gt;setAdditionalFormats&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextLine createLine()" doc="/**
&lt;p&gt;Returns a new text line to be laid out if there is text to be inserted into the layout; otherwise returns an invalid text line.&lt;/p&gt;
&lt;p&gt;The text layout creates a new line object that starts after the last line in the layout, or at the beginning if the layout is empty. The layout maintains an internal cursor, and each line is filled with text from the cursor position onwards when the QTextLine::setLineWidth() function is called.&lt;/p&gt;
&lt;p&gt;Once QTextLine::setLineWidth() is called, a new line can be created and filled with text. Repeating this process will lay out the whole block of text contained in the &lt;a href=&quot;QTextLayout.html#QTextLayout(com.trolltech.qt.gui.QTextBlock)&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt;. If there is no text left to be inserted into the layout, the &lt;a href=&quot;QTextLine.html&quot;&gt;&lt;tt&gt;QTextLine&lt;/tt&gt;&lt;/a&gt; returned will not be valid (isValid() will return false).&lt;/p&gt;
 */"/>
    <method name="public final void draw(com.trolltech.qt.gui.QPainter p, com.trolltech.qt.core.QPointF pos, java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt; selections, com.trolltech.qt.core.QRectF clip)" doc="/**
&lt;p&gt;Draws the whole layout on the painter &lt;tt&gt;p&lt;/tt&gt; at the position specified by &lt;tt&gt;pos&lt;/tt&gt;. The rendered layout includes the given &lt;tt&gt;selections&lt;/tt&gt; and is clipped within the rectangle specified by &lt;tt&gt;clip&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void draw(com.trolltech.qt.gui.QPainter p, com.trolltech.qt.core.QPointF pos, java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt; selections)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextLayout.html#draw(com.trolltech.qt.gui.QPainter, com.trolltech.qt.core.QPointF, java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt;, com.trolltech.qt.core.QRectF)&quot;&gt;draw&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;p&lt;/tt&gt;, &lt;tt&gt;pos&lt;/tt&gt;, &lt;tt&gt;selections&lt;/tt&gt;, QRectF()). */"/>
    <method name="public final void drawCursor(com.trolltech.qt.gui.QPainter p, com.trolltech.qt.core.QPointF pos, int cursorPosition, int width)" doc="/**
&lt;p&gt;Draws a text cursor with the current pen and the specified &lt;tt&gt;width&lt;/tt&gt; at the given &lt;tt&gt;pos&lt;/tt&gt; using the &lt;tt&gt;p&lt;/tt&gt; specified. The corresponding position within the text is specified by &lt;tt&gt;cursorPosition&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void drawCursor(com.trolltech.qt.gui.QPainter p, com.trolltech.qt.core.QPointF pos, int cursorPosition)" doc="/**
&lt;p&gt;Draws a text cursor with the current pen at the given &lt;tt&gt;pos&lt;/tt&gt; using the &lt;tt&gt;p&lt;/tt&gt; specified. The corresponding position within the text is specified by &lt;tt&gt;cursorPosition&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void endLayout()" doc="/**
&lt;p&gt;Ends the layout process.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the current font that is used for the layout, or a default font if none is set.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValidCursorPosition(int pos)" doc="/**
&lt;p&gt;Returns true if position &lt;tt&gt;pos&lt;/tt&gt; is a valid cursor position.&lt;/p&gt;
&lt;p&gt;In a Unicode context some positions in the text are not valid cursor positions, because the position is inside a Unicode surrogate or a grapheme cluster.&lt;/p&gt;
&lt;p&gt;A grapheme cluster is a sequence of two or more Unicode characters that form one indivisible entity on the screen. For example the latin character `&amp;Auml;' can be represented in Unicode by two characters, `A' (0x41), and the combining diaresis (0x308). A text cursor can only validly be positioned before or after these two characters, never between them since that wouldn't make sense. In indic languages every syllable forms a grapheme cluster.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextLine lineAt(int i)" doc="/**
&lt;p&gt;Returns the &lt;tt&gt;i&lt;/tt&gt;-th line of text in this text layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#lineCount()&quot;&gt;&lt;tt&gt;lineCount&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#lineForTextPosition(int)&quot;&gt;&lt;tt&gt;lineForTextPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int lineCount()" doc="/**
&lt;p&gt;Returns the number of lines in this text layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#lineAt(int)&quot;&gt;&lt;tt&gt;lineAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextLine lineForTextPosition(int pos)" doc="/**
&lt;p&gt;Returns the line that contains the cursor position specified by &lt;tt&gt;pos&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#isValidCursorPosition(int)&quot;&gt;&lt;tt&gt;isValidCursorPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#lineAt(int)&quot;&gt;&lt;tt&gt;lineAt&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double maximumWidth()" doc="/**
&lt;p&gt;The maximum width the layout could expand to; this is essentially the width of the entire text.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function only returns a valid value after the layout has been done.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double minimumWidth()" doc="/**
&lt;p&gt;The minimum width the layout needs. This is the width of the layout's smallest non-breakable substring.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function only returns a valid value after the layout has been done.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int nextCursorPosition(int oldPos, com.trolltech.qt.gui.QTextLayout.CursorMode mode)" doc="/**
&lt;p&gt;Returns the next valid cursor position after &lt;tt&gt;oldPos&lt;/tt&gt; that respects the given cursor &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#isValidCursorPosition(int)&quot;&gt;&lt;tt&gt;isValidCursorPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#previousCursorPosition(int, com.trolltech.qt.gui.QTextLayout.CursorMode)&quot;&gt;&lt;tt&gt;previousCursorPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int nextCursorPosition(int oldPos)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextLayout.html#nextCursorPosition(int, com.trolltech.qt.gui.QTextLayout.CursorMode)&quot;&gt;&lt;tt&gt;nextCursorPosition&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;oldPos&lt;/tt&gt;, SkipCharacters). */"/>
    <method name="public final com.trolltech.qt.core.QPointF position()" doc="/**
&lt;p&gt;The global position of the layout. This is independent of the bounding rectangle and of the layout process.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setPosition(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;setPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int preeditAreaPosition()" doc="/**
&lt;p&gt;Returns the position of the area in the text layout that will be processed before editing occurs.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String preeditAreaText()" doc="/**
&lt;p&gt;Returns the text that is inserted in the layout before editing occurs.&lt;/p&gt;
 */"/>
    <method name="public final int previousCursorPosition(int oldPos, com.trolltech.qt.gui.QTextLayout.CursorMode mode)" doc="/**
&lt;p&gt;Returns the first valid cursor position before &lt;tt&gt;oldPos&lt;/tt&gt; that respects the given cursor &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#isValidCursorPosition(int)&quot;&gt;&lt;tt&gt;isValidCursorPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#nextCursorPosition(int, com.trolltech.qt.gui.QTextLayout.CursorMode)&quot;&gt;&lt;tt&gt;nextCursorPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int previousCursorPosition(int oldPos)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextLayout.html#previousCursorPosition(int, com.trolltech.qt.gui.QTextLayout.CursorMode)&quot;&gt;&lt;tt&gt;previousCursorPosition&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;oldPos&lt;/tt&gt;, SkipCharacters). */"/>
    <method name="public final void setAdditionalFormats(java.util.List&lt;com.trolltech.qt.gui.QTextLayout_FormatRange&gt; overrides)" doc="/**
&lt;p&gt;Sets the additional formats supported by the text layout to &lt;tt&gt;overrides&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#additionalFormats()&quot;&gt;&lt;tt&gt;additionalFormats&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#clearAdditionalFormats()&quot;&gt;&lt;tt&gt;clearAdditionalFormats&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCacheEnabled(boolean enable)" doc="/**
&lt;p&gt;Enables caching of the complete layout information if &lt;tt&gt;enable&lt;/tt&gt; is true; otherwise disables layout caching. Usually &lt;a href=&quot;QTextLayout.html#QTextLayout(com.trolltech.qt.gui.QTextBlock)&quot;&gt;&lt;tt&gt;QTextLayout&lt;/tt&gt;&lt;/a&gt; throws most of the layouting information away after a call to &lt;a href=&quot;QTextLayout.html#endLayout()&quot;&gt;&lt;tt&gt;endLayout&lt;/tt&gt;&lt;/a&gt; to reduce memory consumption. If you however want to draw the laid out text directly afterwards enabling caching might speed up drawing significantly.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#cacheEnabled()&quot;&gt;&lt;tt&gt;cacheEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont f)" doc="/**
&lt;p&gt;Sets the layout's font to the given &lt;tt&gt;f&lt;/tt&gt;. The layout is invalidated and must be laid out again.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextLayout.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPosition(com.trolltech.qt.core.QPointF p)" doc="/**
&lt;p&gt;Moves the text layout to point &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#position()&quot;&gt;&lt;tt&gt;position&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPreeditArea(int position, java.lang.String text)" doc="/**
&lt;p&gt;Sets the &lt;tt&gt;position&lt;/tt&gt; and &lt;tt&gt;text&lt;/tt&gt; of the area in the layout that is processed before editing occurs.&lt;/p&gt;
 */"/>
    <method name="public final void setText(java.lang.String string)" doc="/**
&lt;p&gt;Sets the layout's text to the given &lt;tt&gt;string&lt;/tt&gt;. The layout is invalidated and must be laid out again.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTextOption(com.trolltech.qt.gui.QTextOption option)" doc="/**
&lt;p&gt;Sets the text option structure that controls the layout process to the given &lt;tt&gt;option&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#textOption()&quot;&gt;&lt;tt&gt;textOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextOption.html&quot;&gt;&lt;tt&gt;QTextOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the layout's text.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextOption textOption()" doc="/**
&lt;p&gt;Returns the current text option used to control the layout process.&lt;/p&gt;

@see &lt;a href=&quot;QTextLayout.html#setTextOption(com.trolltech.qt.gui.QTextOption)&quot;&gt;&lt;tt&gt;setTextOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextOption.html&quot;&gt;&lt;tt&gt;QTextOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="CursorMode">
        <enum-value name="SkipCharacters" doc="/**
Internal. */"/>
        <enum-value name="SkipWords" doc="/**
Internal. */"/>
</enum>
</class>