File: qimageconsumer.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (110 lines) | stat: -rw-r--r-- 6,162 bytes parent folder | download
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
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QImageConsumer Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QImageConsumer Class Reference</h1><br clear="all">
<p>
An abstraction used by <a href="qimagedecoder.html">QImageDecoder</a>.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qasyncimageio-h.html">qasyncimageio.h</a>&gt;</code>
<p><a href="qimageconsumer-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn">virtualvoid<a href="#0c9f60"><b>end</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#83d1c2"><b>changed</b></a>(constQRect&amp;)</div>
<li><div class="fn">virtualvoid<a href="#2ed76f"><b>frameDone</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#8d3d21"><b>frameDone</b></a>(constQPoint&amp;, constQRect&amp;)</div>
<li><div class="fn">virtualvoid<a href="#987443"><b>setLooping</b></a>(int)</div>
<li><div class="fn">virtualvoid<a href="#bb8720"><b>setFramePeriod</b></a>(int)</div>
<li><div class="fn">virtualvoid<a href="#40e113"><b>setSize</b></a>(int, int)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
An abstraction used by <a href="qimagedecoder.html">QImageDecoder</a>.
<p>
A QImageConsumer consumes information about changes to the <a href="qimage.html">QImage</a>
maintained by a QImageDecoder.  It represents the a view of the
image which the decoder produces.
<p>See also  <a href="qimagedecoder.html">QImageDecoder</a>.

<hr><h2>Member Function Documentation</h2>
<h3 class="fn">void<a name="83d1c2"></a>QImageConsumer::changed(const<a href="qrect.html">QRect</a>&amp;) <code>[virtual]</code></h3>
<p>Called when the given area of the image has changed.
<h3 class="fn">void<a name="0c9f60"></a>QImageConsumer::end() <code>[virtual]</code></h3>
<p>Called when all data of all frames has been decoded and revealed
as <a href="#83d1c2">changed</a>().
<h3 class="fn">void<a name="2ed76f"></a>QImageConsumer::frameDone() <code>[virtual]</code></h3>
<p>One of the two frameDone() functions will be called
when a frame of an animated image has ended and been revealed
as <a href="#83d1c2">changed</a>().
<p>When this function is called, the current image should be displayed.
<p>The decoder will not make
any further changes to the image until the next call to
<a href="qimageformat.html#3d77dc">QImageFormat::decode</a>().
<h3 class="fn">void<a name="8d3d21"></a>QImageConsumer::frameDone(const<a href="qpoint.html">QPoint</a>&amp;offset, const<a href="qrect.html">QRect</a>&amp;rect) <code>[virtual]</code></h3>
<p>One of the two <a href="#2ed76f">frameDone</a>() functions will be called
when a frame of an animated image has ended and been revealed
as <a href="#83d1c2">changed</a>().
<p>When this function is called, the area <em>rect</em> in the current image
should be moved by <em>offset</em> and displayed.
<p>The decoder will not make
any further changes to the image until the next call to
<a href="qimageformat.html#3d77dc">QImageFormat::decode</a>().
<h3 class="fn">void<a name="bb8720"></a>QImageConsumer::setFramePeriod(intmilliseconds) <code>[virtual]</code></h3>
<p>Notes that the frame about to be decoded should not be displayed until
the given number of <em>milliseconds</em> after the time that this function
is called.  Of course, the image may not have been decoded by then, in
which case the frame should not be displayed until it is complete.
A value of -1 (the assumed default) indicates that the image should
be displayed even while it is only partially loaded.
<h3 class="fn">void<a name="987443"></a>QImageConsumer::setLooping(int<a href="n.html">n</a>) <code>[virtual]</code></h3>
<p>Called to indicate that the sequence of frames in the image
should be repeated <em><a href="n.html">n</a></em> times, including the sequence during
decoding.
<p><ul>
<li> 0 = Forever
<li> 1 = Only display frames the first time through
<li> 2 = Repeat once after first pass through images
<li> etc.
</ul>
<p>To make the <a href="qimagedecoder.html">QImageDecoder</a>
do this just delete it and pass the information to it again
for decoding (setLooping() will be called again of course, but
that can be ignored), or keep copies of the
changed areas at the ends of frames.
<h3 class="fn">void<a name="40e113"></a>QImageConsumer::setSize(int, int) <code>[virtual]</code></h3>
<p>This function is called as soon as the size of the image has
been determined.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>