1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>XmHTML Programmers Manual: XmHTMLImageUpdate</TITLE>
<META HTTP-EQUIV="Keywords" CONTENT="XmHTML, HTML, Motif, Widget, eXode, XntHelp, Linux">
<META HTTP-EQUIV="Reply-to" CONTENT="ripley@xs4all.nl">
<META HTTP-EQUIV="Description" CONTENT="XmHTMLImageUpdate - update an image with new information.">
<META NAME="Author" CONTENT="Koen D'Hondt">
<META NAME="Copyright" content="1995-1997 by Ripley Software Development">
<META NAME="Source" content="$Source$">
<META NAME="Revision" content="$Revision$">
<META NAME="Font" content="helvetica">
<link rev="made" href="mailto:ripley@xs4all.nl">
<link rel="home" href="index.html">
<link rel="previous" href="ImReplac.html">
<link rel="next" href="Redispla.html">
<link rel="up" href="../man.html">
<link rel="copyright" href="copyrights.html">
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<h3><font face="helvetica,arial">Name</font></h3>
<blockquote>
XmHTMLImageUpdate - update an image with new information.
</blockquote>
<h3><font face="helvetica,arial">Synopsis</font></h3>
<blockquote>
XmImageStatus XmHTMLImageUpdate(Widget w, XmImageInfo *image)
</blockquote>
<h3><font face="helvetica,arial">Description</font></h3>
<blockquote>
The XmHTMLImageUpdate function can be used to inform a XmHTML widget
that the contents of an image have changed and that the display should
be updated.
<p>
This function allows one to perform dynamic updating of an image
without having to reload the entire document. Examples of images that
could require frequent updating are: network statistics, weather reports,
financial data, advertisements or even a clock to display how long a
document is being viewed.
<p>
<dl>
<dt>w
<dd>Specifies the parent Widget ID, which must be of class
xmHTMLWidgetClass.
<dt>*image
<dd>the updated image data.
</dl>
<p>
Please note that the <i>*image</i> argument <b>must</b> represent a
valid XmImageInfo structure, e.i., one that was returned to a XmHTML
widget in response to the function installed on the XmNimageProc resource.
</blockquote>
<h3><font face="helvetica,arial">Return Value</font></h3>
<blockquote>
Any of the following values:
</blockquote>
<pre>
typedef enum{
XmIMAGE_ERROR /* unknown error occured */
XmIMAGE_BAD /* bad function call: missing arguments */
XmIMAGE_UNKNOWN /* provided XmImageInfo structure unknown/unbound */
XmIMAGE_ALMOST /* action completed, further response necessary */
XmIMAGE_OK /* action completed. */
}XmImageStatus;
</pre>
<blockquote>
A return value of XmIMAGE_ALMOST indicates that a redisplay of the
current document is necessary (this value can be returned if the
dimensions of the image have changed).
</blockquote>
<h3><font face="helvetica,arial">See Also</font></h3>
<blockquote>
XmHTML(3X), XmHTMLImageDefaultProc(3X), XmHTMLImageReplace(3X),
XmHTMLRedisplay(3X), XmImageInfo(3X)
</blockquote>
<hr noshade size="2" width="25%">
<i><font size="-1">
XmHTML, June 4, 1998
</font></i>
</body>
</html>
|