<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Wt: Wt::WWidgetItem Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Wt  <span id="projectnumber">3.2.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.5.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <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> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a> </li> <li class="navelem"><a class="el" href="classWt_1_1WWidgetItem.html">WWidgetItem</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pri-methods">Private Member Functions</a> </div> <div class="headertitle"> <div class="title">Wt::WWidgetItem Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="Wt::WWidgetItem" --><!-- doxytag: inherits="Wt::WLayoutItem" --> <p>A layout item that holds a single widget. <a href="classWt_1_1WWidgetItem.html#details">More...</a></p> <p><code>#include <Wt/WWidgetItem></code></p> <div class="dynheader"> Inheritance diagram for Wt::WWidgetItem:</div> <div class="dyncontent"> <div class="center"><img src="classWt_1_1WWidgetItem__inherit__graph.png" border="0" usemap="#Wt_1_1WWidgetItem_inherit__map" alt="Inheritance graph"/></div> <map name="Wt_1_1WWidgetItem_inherit__map" id="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="7,5,129,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classWt_1_1WWidgetItem-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afac1f02e9f79bcc2d3584dbe0a80df77"></a><!-- doxytag: member="Wt::WWidgetItem::WWidgetItem" ref="afac1f02e9f79bcc2d3584dbe0a80df77" args="(WWidget *widget)" -->  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#afac1f02e9f79bcc2d3584dbe0a80df77">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" 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#a5f1319ce853b78703399d6d80748ef52">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="#a5f1319ce853b78703399d6d80748ef52"></a><br/></td></tr> <tr><td class="memItemLeft" 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#aeec342fa9330656ade0094be78d5fa34">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="#aeec342fa9330656ade0094be78d5fa34"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a33a7815c88694af6c9c5b214725f0c4e"></a><!-- doxytag: member="Wt::WWidgetItem::parentLayout" ref="a33a7815c88694af6c9c5b214725f0c4e" 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#a33a7815c88694af6c9c5b214725f0c4e">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" 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#a997b036f16e7667db3f8c59e310ad98c">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="#a997b036f16e7667db3f8c59e310ad98c"></a><br/></td></tr> <tr><td class="memItemLeft" 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#ad17fab03e099007600e9d39dd017b9b4">impl</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the implementation for this layout item. <a href="#ad17fab03e099007600e9d39dd017b9b4"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pri-methods"></a> Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24ecf01aff4bc52ac0482c1c202a9bc8"></a><!-- doxytag: member="Wt::WWidgetItem::setParentWidget" ref="a24ecf01aff4bc52ac0482c1c202a9bc8" args="(WWidget *parent)" --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#a24ecf01aff4bc52ac0482c1c202a9bc8">setParentWidget</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" align="right" valign="top"><a class="anchor" id="a5054aa92fe5d6ec40057e4d6662ae5e2"></a><!-- doxytag: member="Wt::WWidgetItem::setParentLayout" ref="a5054aa92fe5d6ec40057e4d6662ae5e2" args="(WLayout *layout)" --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WWidgetItem.html#a5054aa92fe5d6ec40057e4d6662ae5e2">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" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A layout item that holds a single widget. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLayout.html#a886d2ec4b6b97524ba3dff93252e6540" title="Adds the given widget to the layout.">WLayout::addWidget(WWidget *)</a> </dd></dl> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a997b036f16e7667db3f8c59e310ad98c"></a><!-- doxytag: member="Wt::WWidgetItem::findWidgetItem" ref="a997b036f16e7667db3f8c59e310ad98c" 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> <p>The widget is searched for recursively inside nested layouts. </p> <p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#a95f14880009c9121d2f2d06cdf3204f0">Wt::WLayoutItem</a>.</p> </div> </div> <a class="anchor" id="ad17fab03e099007600e9d39dd017b9b4"></a><!-- doxytag: member="Wt::WWidgetItem::impl" ref="ad17fab03e099007600e9d39dd017b9b4" 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> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the implementation for this layout item. </p> <p>The implementation of a layout item depends on the kind of container for which the layout does layout management. </p> <p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#ab2f17122cf9589657bc0e6fa5e3ea560">Wt::WLayoutItem</a>.</p> </div> </div> <a class="anchor" id="aeec342fa9330656ade0094be78d5fa34"></a><!-- doxytag: member="Wt::WWidgetItem::layout" ref="aeec342fa9330656ade0094be78d5fa34" 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> [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> <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> <p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#a3f81b4d198401ae493276a61be6784cf">Wt::WLayoutItem</a>.</p> </div> </div> <a class="anchor" id="a5f1319ce853b78703399d6d80748ef52"></a><!-- doxytag: member="Wt::WWidgetItem::widget" ref="a5f1319ce853b78703399d6d80748ef52" 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> [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> <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> <p>Implements <a class="el" href="classWt_1_1WLayoutItem.html#a06b127060eaf8a0b87a994b483d493e1">Wt::WLayoutItem</a>.</p> </div> </div> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr size="1"><address style="text-align: right; margin: 3px"><small> Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the C++ Web Toolkit (Wt)</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" border="0" style="vertical-align: middle; display: inline-block; height: 2em"></a> 1.7.5.1</small></address> </body> </html>