1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qabstractlayout.cpp:1521 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QGLayoutIterator Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QGLayoutIterator Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QGLayoutIterator class is an abstract base class of internal layout iterators.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qlayout-h.html">qlayout.h</a>></tt>
|
---|
37 | <p><a href="qglayoutiterator-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn>virtual <a href="#~QGLayoutIterator"><b>~QGLayoutIterator</b></a> ()</li>
|
---|
41 | <li class=fn>virtual QLayoutItem * <a href="#next"><b>next</b></a> () = 0</li>
|
---|
42 | <li class=fn>virtual QLayoutItem * <a href="#current"><b>current</b></a> () = 0</li>
|
---|
43 | <li class=fn>virtual QLayoutItem * <a href="#takeCurrent"><b>takeCurrent</b></a> () = 0</li>
|
---|
44 | </ul>
|
---|
45 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
46 |
|
---|
47 |
|
---|
48 | The QGLayoutIterator class is an abstract base class of internal layout iterators.
|
---|
49 | <p>
|
---|
50 |
|
---|
51 | <p> (This class is <em>not</em> OpenGL related, it just happens to start with
|
---|
52 | the letters <a href="qgl.html">QGL</a>...)
|
---|
53 | <p> Subclass this class to create a custom layout. The functions that
|
---|
54 | must be implemented are <a href="#next">next</a>(), <a href="#current">current</a>(), and <a href="#takeCurrent">takeCurrent</a>().
|
---|
55 | <p> The QGLayoutIterator implements the functionality of
|
---|
56 | <a href="qlayoutiterator.html">QLayoutIterator</a>. Each subclass of <a href="qlayout.html">QLayout</a> needs a
|
---|
57 | QGLayoutIterator subclass.
|
---|
58 | <p>See also <a href="appearance.html">Widget Appearance and Style</a> and <a href="geomanagement.html">Layout Management</a>.
|
---|
59 |
|
---|
60 | <hr><h2>Member Function Documentation</h2>
|
---|
61 | <h3 class=fn><a name="~QGLayoutIterator"></a>QGLayoutIterator::~QGLayoutIterator ()<tt> [virtual]</tt>
|
---|
62 | </h3>
|
---|
63 | Destroys the iterator
|
---|
64 |
|
---|
65 | <h3 class=fn><a href="qlayoutitem.html">QLayoutItem</a> * <a name="current"></a>QGLayoutIterator::current ()<tt> [pure virtual]</tt>
|
---|
66 | </h3>
|
---|
67 |
|
---|
68 | <p> Implemented in subclasses to return the current item, or 0 if
|
---|
69 | there is no current item.
|
---|
70 |
|
---|
71 | <p>Examples: <a href="customlayout-example.html#x1486">customlayout/border.cpp</a>, <a href="customlayout-example.html#x1508">customlayout/card.cpp</a>, and <a href="customlayout-example.html#x1464">customlayout/flow.cpp</a>.
|
---|
72 | <h3 class=fn><a href="qlayoutitem.html">QLayoutItem</a> * <a name="next"></a>QGLayoutIterator::next ()<tt> [pure virtual]</tt>
|
---|
73 | </h3>
|
---|
74 |
|
---|
75 | <p> Implemented in subclasses to move the iterator to the next item
|
---|
76 | and return that item, or 0 if there is no next item.
|
---|
77 |
|
---|
78 | <p>Examples: <a href="customlayout-example.html#x1487">customlayout/border.cpp</a>, <a href="customlayout-example.html#x1509">customlayout/card.cpp</a>, and <a href="customlayout-example.html#x1465">customlayout/flow.cpp</a>.
|
---|
79 | <h3 class=fn><a href="qlayoutitem.html">QLayoutItem</a> * <a name="takeCurrent"></a>QGLayoutIterator::takeCurrent ()<tt> [pure virtual]</tt>
|
---|
80 | </h3>
|
---|
81 |
|
---|
82 | <p> Implemented in subclasses. The function must remove the current
|
---|
83 | item from the layout without deleting it, move the iterator to the
|
---|
84 | next item and return the removed item, or 0 if no item was
|
---|
85 | removed.
|
---|
86 |
|
---|
87 | <p>Examples: <a href="customlayout-example.html#x1488">customlayout/border.cpp</a>, <a href="customlayout-example.html#x1510">customlayout/card.cpp</a>, and <a href="customlayout-example.html#x1466">customlayout/flow.cpp</a>.
|
---|
88 | <!-- eof -->
|
---|
89 | <hr><p>
|
---|
90 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
91 | Copyright © 1995-2007
|
---|
92 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
93 | <table width=100% cellspacing=0 border=0><tr>
|
---|
94 | <td>Copyright © 2007
|
---|
95 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
96 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
97 | </table></div></address></body>
|
---|
98 | </html>
|
---|