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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WWidgetItem Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WWidgetItem.html">WWidgetItem</a>
</div>
</div>
<div class="contents">
<h1>Wt::WWidgetItem Class Reference</h1><!-- doxytag: class="Wt::WWidgetItem" --><!-- doxytag: inherits="Wt::WLayoutItem" -->A layout item that holds a single widget.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WWidgetItem></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WWidgetItem:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WWidgetItem__inherit__graph.png" border="0" usemap="#Wt_1_1WWidgetItem__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WWidgetItem__inherit__map">
<area shape="rect" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout." alt="" coords="5,5,128,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WWidgetItem-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fac1f02e9f79bcc2d3584dbe0a80df77"></a><!-- doxytag: member="Wt::WWidgetItem::WWidgetItem" ref="fac1f02e9f79bcc2d3584dbe0a80df77" args="(WWidget *widget)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#fac1f02e9f79bcc2d3584dbe0a80df77">WWidgetItem</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new item for the given <em>widget</em>. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#5f1319ce853b78703399d6d80748ef52">widget</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the widget that is held by this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>. <a href="#5f1319ce853b78703399d6d80748ef52"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WLayout.html">WLayout</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#eec342fa9330656ade0094be78d5fa34">layout</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the layout that implements this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>. <a href="#eec342fa9330656ade0094be78d5fa34"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="33a7815c88694af6c9c5b214725f0c4e"></a><!-- doxytag: member="Wt::WWidgetItem::parentLayout" ref="33a7815c88694af6c9c5b214725f0c4e" args="() const " -->
virtual <a class="el" href="classWt_1_1WLayout.html">WLayout</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#33a7815c88694af6c9c5b214725f0c4e">parentLayout</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the layout in which this item is contained. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WWidgetItem.html">WWidgetItem</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#997b036f16e7667db3f8c59e310ad98c">findWidgetItem</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *widget)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Finds the widget item corresponding to the given <em>widget</em>. <a href="#997b036f16e7667db3f8c59e310ad98c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WLayoutItemImpl.html">WLayoutItemImpl</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#d17fab03e099007600e9d39dd017b9b4">impl</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the implementation for this layout item. <a href="#d17fab03e099007600e9d39dd017b9b4"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="25705ebf891a25b0e91c090397fc72e7"></a><!-- doxytag: member="Wt::WWidgetItem::setParent" ref="25705ebf891a25b0e91c090397fc72e7" args="(WWidget *parent)" -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#25705ebf891a25b0e91c090397fc72e7">setParent</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internal method. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5054aa92fe5d6ec40057e4d6662ae5e2"></a><!-- doxytag: member="Wt::WWidgetItem::setParentLayout" ref="5054aa92fe5d6ec40057e4d6662ae5e2" args="(WLayout *layout)" -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#5054aa92fe5d6ec40057e4d6662ae5e2">setParentLayout</a> (<a class="el" href="classWt_1_1WLayout.html">WLayout</a> *layout)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internal method. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A layout item that holds a single widget.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#886d2ec4b6b97524ba3dff93252e6540" title="Adds the given widget to the layout.">WLayout::addWidget(WWidget *)</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5f1319ce853b78703399d6d80748ef52"></a><!-- doxytag: member="Wt::WWidgetItem::widget" ref="5f1319ce853b78703399d6d80748ef52" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classWt_1_1WWidget.html">WWidget</a>* Wt::WWidgetItem::widget </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the widget that is held by this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>.
<p>
This implements a type-safe upcasting mechanism to a <a class="el" href="classWt_1_1WWidgetItem.html" title="A layout item that holds a single widget.">WWidgetItem</a>.
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#06b127060eaf8a0b87a994b483d493e1">Wt::WLayoutItem</a>.</p>
</div>
</div><p>
<a class="anchor" name="eec342fa9330656ade0094be78d5fa34"></a><!-- doxytag: member="Wt::WWidgetItem::layout" ref="eec342fa9330656ade0094be78d5fa34" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classWt_1_1WLayout.html">WLayout</a>* Wt::WWidgetItem::layout </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the layout that implements this <a class="el" href="classWt_1_1WLayoutItem.html" title="An abstract base class for items that can participate in a layout.">WLayoutItem</a>.
<p>
This implements a type-safe upcasting mechanism to a <a class="el" href="classWt_1_1WLayout.html" title="An abstract base class for layout managers.">WLayout</a>.
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#3f81b4d198401ae493276a61be6784cf">Wt::WLayoutItem</a>.</p>
</div>
</div><p>
<a class="anchor" name="997b036f16e7667db3f8c59e310ad98c"></a><!-- doxytag: member="Wt::WWidgetItem::findWidgetItem" ref="997b036f16e7667db3f8c59e310ad98c" args="(WWidget *widget)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WWidgetItem.html">WWidgetItem</a> * Wt::WWidgetItem::findWidgetItem </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td>
<td class="paramname"> <em>widget</em> </td>
<td> ) </td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Finds the widget item corresponding to the given <em>widget</em>.
<p>
The widget is searched for recursively inside nested layouts.
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#95f14880009c9121d2f2d06cdf3204f0">Wt::WLayoutItem</a>.</p>
</div>
</div><p>
<a class="anchor" name="d17fab03e099007600e9d39dd017b9b4"></a><!-- doxytag: member="Wt::WWidgetItem::impl" ref="d17fab03e099007600e9d39dd017b9b4" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WLayoutItemImpl.html">WLayoutItemImpl</a>* Wt::WWidgetItem::impl </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the implementation for this layout item.
<p>
The implementation of a layout item depends on the kind of container for which the layout does layout management.
<p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#b2f17122cf9589657bc0e6fa5e3ea560">Wt::WLayoutItem</a>.</p>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|