<class name="QTextLength" doc="/** <p>The <a href="QTextLength.html#QTextLength()"><tt>QTextLength</tt></a> class encapsulates the different types of length used in a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>.</p> <p>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.</p> <p>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.</p> @see <a href="QTextTable.html"><tt>QTextTable</tt></a> */"> <method name="public QTextLength(com.trolltech.qt.gui.QTextLength.Type type, double value)" doc="/** <p>Constructs a new length object of the given <tt>type</tt> and <tt>value</tt>.</p> */"/> <method name="public QTextLength()" doc="/** <p>Constructs a new length object which represents a variable size.</p> */"/> <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="/** <p>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.</p> */"/> <method name="public final com.trolltech.qt.gui.QTextLength.Type type()" doc="/** <p>Returns the type of length.</p> @see <tt>QTextLength::Type</tt> */"/> <method name="public final double value(double maximumLength)" doc="/** <p>Returns the effective length, constrained by the type of the length object and the specified <tt>maximumLength</tt>.</p> @see <a href="QTextLength.html#type()"><tt>type</tt></a> */"/> <enum name="Type"> <enum-value name="VariableLength" doc="/** Internal. */"/> <enum-value name="FixedLength" doc="/** Internal. */"/> <enum-value name="PercentageLength" doc="/** Internal. */"/> </enum> </class>