<class name="QTextOption" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextOption.html#QTextOption(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;QTextOption&lt;/tt&gt;&lt;/a&gt; class provides a description of general rich text properties.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextOption.html#QTextOption(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;QTextOption&lt;/tt&gt;&lt;/a&gt; is used to encapsulate common rich text properties in a single object. It contains information about text alignment, layout direction, word wrapping, and other standard properties associated with text rendering and layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextCursor.html&quot;&gt;&lt;tt&gt;QTextCursor&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTextOption(com.trolltech.qt.gui.QTextOption o)" doc="/**
&lt;p&gt;Construct a copy of the &lt;tt&gt;o&lt;/tt&gt; text option.&lt;/p&gt;
 */"/>
    <method name="public QTextOption()" doc="/**
&lt;p&gt;Constructs a text option with default properties for text.&lt;/p&gt;
 */"/>
    <method name="public QTextOption(com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Constructs a text option with the given &lt;tt&gt;alignment&lt;/tt&gt; for text.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment alignment()" doc="/**
&lt;p&gt;Returns the text alignment defined by the option.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextOption.Flags flags()" doc="/**
&lt;p&gt;Returns the flags associated with the option.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setFlags(com.trolltech.qt.gui.QTextOption.Flags)&quot;&gt;&lt;tt&gt;setFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAlignment(com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Sets the option's text alignment to the specified &lt;tt&gt;alignment&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#alignment()&quot;&gt;&lt;tt&gt;alignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFlags(com.trolltech.qt.gui.QTextOption.Flags flags)" doc="/**
&lt;p&gt;Sets the flags associated with the option to the given &lt;tt&gt;flags&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#flags()&quot;&gt;&lt;tt&gt;flags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabArray(java.util.List&lt;java.lang.Double&gt; tabStops)" doc="/**
&lt;p&gt;Sets the tab positions for the text layout to those specified by &lt;tt&gt;tabStops&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#tabArray()&quot;&gt;&lt;tt&gt;tabArray&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextOption.html#setTabStop(double)&quot;&gt;&lt;tt&gt;setTabStop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTabStop(double tabStop)" doc="/**
&lt;p&gt;Sets the distance in device units between tab stops to the value specified by &lt;tt&gt;tabStop&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#tabStop()&quot;&gt;&lt;tt&gt;tabStop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextOption.html#setTabArray(java.util.List&lt;java.lang.Double&gt;)&quot;&gt;&lt;tt&gt;setTabArray&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTextDirection(com.trolltech.qt.core.Qt.LayoutDirection aDirection)" doc="/**
&lt;p&gt;Sets the direction of the text layout defined by the option to the given &lt;tt&gt;aDirection&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#textDirection()&quot;&gt;&lt;tt&gt;textDirection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUseDesignMetrics(boolean b)" doc="/**
&lt;p&gt;If &lt;tt&gt;b&lt;/tt&gt; is true then the layout will use design metrics; otherwise it will use the metrics of the paint device (which is the default behavior).&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#useDesignMetrics()&quot;&gt;&lt;tt&gt;useDesignMetrics&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWrapMode(com.trolltech.qt.gui.QTextOption.WrapMode wrap)" doc="/**
&lt;p&gt;Sets the option's text wrap mode to the given &lt;tt&gt;wrap&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#wrapMode()&quot;&gt;&lt;tt&gt;wrapMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.Double&gt; tabArray()" doc="/**
&lt;p&gt;Returns a list of tab positions defined for the text layout.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setTabArray(java.util.List&lt;java.lang.Double&gt;)&quot;&gt;&lt;tt&gt;setTabArray&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextOption.html#tabStop()&quot;&gt;&lt;tt&gt;tabStop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double tabStop()" doc="/**
&lt;p&gt;Returns the distance in device units between tab stops.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setTabStop(double)&quot;&gt;&lt;tt&gt;setTabStop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextOption.html#tabArray()&quot;&gt;&lt;tt&gt;tabArray&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.LayoutDirection textDirection()" doc="/**
&lt;p&gt;Returns the direction of the text layout defined by the option.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setTextDirection(com.trolltech.qt.core.Qt.LayoutDirection)&quot;&gt;&lt;tt&gt;setTextDirection&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean useDesignMetrics()" doc="/**
&lt;p&gt;Returns true if the layout uses design rather than device metrics; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setUseDesignMetrics(boolean)&quot;&gt;&lt;tt&gt;setUseDesignMetrics&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QTextOption.WrapMode wrapMode()" doc="/**
&lt;p&gt;Returns the text wrap mode defined by the option.&lt;/p&gt;

@see &lt;a href=&quot;QTextOption.html#setWrapMode(com.trolltech.qt.gui.QTextOption.WrapMode)&quot;&gt;&lt;tt&gt;setWrapMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Flag">
        <enum-value name="IncludeTrailingSpaces" doc="/**
Internal. */"/>
</enum>
    <enum name="WrapMode" doc="/**
&lt;p&gt;This enum describes how text is wrapped in a document.&lt;/p&gt;
 */">
        <enum-value name="NoWrap" doc="/**
&lt;p&gt;Text is not wrapped at all.&lt;/p&gt;
 */"/>
        <enum-value name="WordWrap" doc="/**
&lt;p&gt;Text is wrapped at word boundaries.&lt;/p&gt;
 */"/>
        <enum-value name="ManualWrap" doc="/**
&lt;p&gt;Wrapping occurs at a manually specified length from the start of the line.&lt;/p&gt;
 */"/>
        <enum-value name="WrapAnywhere" doc="/**
&lt;p&gt;Text can be wrapped at any point on a line, even if it occurs in the middle of a word.&lt;/p&gt;
 */"/>
        <enum-value name="WrapAtWordBoundaryOrAnywhere" doc="/**
&lt;p&gt;If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.&lt;/p&gt;
 */"/>
</enum>
</class>
