<class name="QTextInlineObject" doc="/** <p>The <a href="QTextInlineObject.html#QTextInlineObject()"><tt>QTextInlineObject</tt></a> class represents an inline object in a <a href="QTextLayout.html"><tt>QTextLayout</tt></a>.</p> <p>This class is only used if the text layout is used to lay out parts of a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>.</p> <p>The inline object has various attributes that can be set, for example using, <a href="QTextInlineObject.html#setWidth(double)"><tt>setWidth</tt></a>, <a href="QTextInlineObject.html#setAscent(double)"><tt>setAscent</tt></a>, and <a href="QTextInlineObject.html#setDescent(double)"><tt>setDescent</tt></a>. The rectangle it occupies is given by <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a>, and its direction by isRightToLeft(). Its position in the text layout is given by at(), and its format is given by <a href="QTextInlineObject.html#format()"><tt>format</tt></a>.</p> */"> <method name="public QTextInlineObject()" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public final double ascent()" doc="/** <p>Returns the inline object's ascent.</p> @see <a href="QTextInlineObject.html#setAscent(double)"><tt>setAscent</tt></a> @see <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> <method name="public final double descent()" doc="/** <p>Returns the inline object's descent.</p> @see <a href="QTextInlineObject.html#setDescent(double)"><tt>setDescent</tt></a> @see <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QTextFormat format()" doc="/** <p>Returns format of the inline object within the text layout.</p> */"/> <method name="public final int formatIndex()" doc="/** <p>Returns an integer describing the format of the inline object within the text layout.</p> */"/> <method name="public final double height()" doc="/** <p>Returns the inline object's total height. This is equal to <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> + <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> + 1.</p> @see <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> @see <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> <method name="public final boolean isValid()" doc="/** <p>Returns true if this inline object is valid; otherwise returns false.</p> */"/> <method name="public final com.trolltech.qt.core.QRectF rect()" doc="/** <p>Returns the inline object's rectangle.</p> @see <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> @see <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> */"/> <method name="public final void setAscent(double a)" doc="/** <p>Sets the inline object's ascent to <tt>a</tt>.</p> @see <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> @see <a href="QTextInlineObject.html#setDescent(double)"><tt>setDescent</tt></a> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> <method name="public final void setDescent(double d)" doc="/** <p>Sets the inline object's decent to <tt>d</tt>.</p> @see <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> @see <a href="QTextInlineObject.html#setAscent(double)"><tt>setAscent</tt></a> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> <method name="public final void setWidth(double w)" doc="/** <p>Sets the inline object's width to <tt>w</tt>.</p> @see <a href="QTextInlineObject.html#width()"><tt>width</tt></a> @see <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> @see <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.LayoutDirection textDirection()" doc="/** <p>Returns if the object should be laid out right-to-left or left-to-right.</p> */"/> <method name="public final int textPosition()" doc="/** <p>The position of the inline object within the text layout.</p> */"/> <method name="public final double width()" doc="/** <p>Returns the inline object's width.</p> @see <a href="QTextInlineObject.html#setWidth(double)"><tt>setWidth</tt></a> @see <a href="QTextInlineObject.html#ascent()"><tt>ascent</tt></a> @see <a href="QTextInlineObject.html#descent()"><tt>descent</tt></a> @see <a href="QTextInlineObject.html#rect()"><tt>rect</tt></a> */"/> </class>