Sophie

Sophie

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

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

<class name="QTextLength" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextLength.html#QTextLength()&quot;&gt;&lt;tt&gt;QTextLength&lt;/tt&gt;&lt;/a&gt; class encapsulates the different types of length used in 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;When we specify a value for the length of an element in a text document, we often need to provide some other information so that the length is used in the way we expect. For example, when we specify a table width, the value can represent a fixed number of pixels, or it can be a percentage value. This information changes both the meaning of the value and the way it is used.&lt;/p&gt;
&lt;p&gt;Generally, this class is used to specify table widths. These can be specified either as a fixed amount of pixels, as a percentage of the containing frame's width, or by a variable width that allows it to take up just the space it requires.&lt;/p&gt;

@see &lt;a href=&quot;QTextTable.html&quot;&gt;&lt;tt&gt;QTextTable&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QTextLength(com.trolltech.qt.gui.QTextLength.Type type, double value)" doc="/**
&lt;p&gt;Constructs a new length object of the given &lt;tt&gt;type&lt;/tt&gt; and &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextLength()" doc="/**
&lt;p&gt;Constructs a new length object which represents a variable size.&lt;/p&gt;
 */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final double rawValue()" doc="/**
&lt;p&gt;Returns the constraint value that is specific for the type of the length. If the length is QTextLength::PercentageLength then the raw value is in percent, in the range of 0 to 100. If the length is QTextLength::FixedLength then that fixed amount is returned. For variable lengths, zero is returned.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QTextLength.Type type()" doc="/**
&lt;p&gt;Returns the type of length.&lt;/p&gt;

@see &lt;tt&gt;QTextLength::Type&lt;/tt&gt; */"/>
    <method name="public final double value(double maximumLength)" doc="/**
&lt;p&gt;Returns the effective length, constrained by the type of the length object and the specified &lt;tt&gt;maximumLength&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextLength.html#type()&quot;&gt;&lt;tt&gt;type&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Type">
        <enum-value name="VariableLength" doc="/**
Internal. */"/>
        <enum-value name="FixedLength" doc="/**
Internal. */"/>
        <enum-value name="PercentageLength" doc="/**
Internal. */"/>
</enum>
</class>