<class name="QTextImageFormat" doc="/** <p>The <a href="QTextImageFormat.html#QTextImageFormat()"><tt>QTextImageFormat</tt></a> class provides formatting information for images in a <a href="QTextDocument.html"><tt>QTextDocument</tt></a>.</p> <p>Inline images are represented by an object replacement character (0xFFFC in Unicode) which has an associated <a href="QTextImageFormat.html#QTextImageFormat()"><tt>QTextImageFormat</tt></a>. The image format specifies a name with <a href="QTextImageFormat.html#setName(java.lang.String)"><tt>setName</tt></a> that is used to locate the image. The size of the rectangle that the image will occupy is specified using <a href="QTextImageFormat.html#setWidth(double)"><tt>setWidth</tt></a> and <a href="QTextImageFormat.html#setHeight(double)"><tt>setHeight</tt></a>.</p> */"> <method name="public QTextImageFormat()" doc="/** <p>Creates a new image format object.</p> */"/> <method name="public final double height()" doc="/** <p>Returns the height of the rectangle occupied by the image.</p> @see <a href="QTextImageFormat.html#width()"><tt>width</tt></a> @see <a href="QTextImageFormat.html#setHeight(double)"><tt>setHeight</tt></a> */"/> <method name="public final boolean isValid()" doc="/** <p>Returns true if this image format is valid; otherwise returns false.</p> */"/> <method name="public final java.lang.String name()" doc="/** <p>Returns the name of the image. The name refers to an entry in the application's resources file.</p> @see <a href="QTextImageFormat.html#setName(java.lang.String)"><tt>setName</tt></a> */"/> <method name="public final void setHeight(double height)" doc="/** <p>Sets the <tt>height</tt> of the rectangle occupied by the image.</p> @see <a href="QTextImageFormat.html#height()"><tt>height</tt></a> @see <a href="QTextImageFormat.html#setWidth(double)"><tt>setWidth</tt></a> */"/> <method name="public final void setName(java.lang.String name)" doc="/** <p>Sets the <tt>name</tt> of the image. The <tt>name</tt> is used to locate the image in the application's resources.</p> @see <a href="QTextImageFormat.html#name()"><tt>name</tt></a> */"/> <method name="public final void setWidth(double width)" doc="/** <p>Sets the <tt>width</tt> of the rectangle occupied by the image.</p> @see <a href="QTextImageFormat.html#width()"><tt>width</tt></a> @see <a href="QTextImageFormat.html#setHeight(double)"><tt>setHeight</tt></a> */"/> <method name="public final double width()" doc="/** <p>Returns the width of the rectangle occupied by the image.</p> @see <a href="QTextImageFormat.html#height()"><tt>height</tt></a> @see <a href="QTextImageFormat.html#setWidth(double)"><tt>setWidth</tt></a> */"/> </class>