File: classWt_1_1WVBoxLayout.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (94 lines) | stat: -rw-r--r-- 7,516 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
<!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::WVBoxLayout 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WVBoxLayout.html">WVBoxLayout</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WVBoxLayout Class Reference</h1><!-- doxytag: class="Wt::WVBoxLayout" --><!-- doxytag: inherits="Wt::WBoxLayout" -->A layout manager which arranges widgets vertically.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WVBoxLayout&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WVBoxLayout:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WVBoxLayout__inherit__graph.png" border="0" usemap="#Wt_1_1WVBoxLayout__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WVBoxLayout__inherit__map">
<area shape="rect" href="classWt_1_1WBoxLayout.html" title="A layout manager which arranges widgets horizontally or vertically." alt="" coords="73,155,193,181"><area shape="rect" href="classWt_1_1WLayout.html" title="An abstract base class for layout managers." alt="" coords="85,80,181,107"><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"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="152,5,248,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WVBoxLayout-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVBoxLayout.html#5ef82f7bc3fdaa19498a38245117dd93">WVBoxLayout</a> (<a class="el" href="classWt_1_1WWidget.html">WWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new vertical box layout.  <a href="#5ef82f7bc3fdaa19498a38245117dd93"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A layout manager which arranges widgets vertically. 
<p>
This convenience class creates a vertical box layout, laying contained widgets out from top to bottom.<p>
See <a class="el" href="classWt_1_1WBoxLayout.html" title="A layout manager which arranges widgets horizontally or vertically.">WBoxLayout</a> for available member methods and more information.<p>
Usage example: <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>(<span class="keyword">this</span>);
 w-&gt;<a class="code" href="classWt_1_1WWebWidget.html#e1b84e31581405358b6d57ec14505234" title="Resizes the widget.">resize</a>(<a class="code" href="classWt_1_1WLength.html#0cf39ca4225776879d56ade60320c31a" title="An &amp;#39;auto&amp;#39; length.">WLength::Auto</a>, 600);

 <a class="code" href="classWt_1_1WVBoxLayout.html" title="A layout manager which arranges widgets vertically.">Wt::WVBoxLayout</a> *layout = <span class="keyword">new</span> <a class="code" href="classWt_1_1WVBoxLayout.html" title="A layout manager which arranges widgets vertically.">Wt::WVBoxLayout</a>();
 layout-&gt;<a class="code" href="classWt_1_1WBoxLayout.html#7c1ec58e25d0b7add93f5f4342844db6" title="Adds a widget to the layout.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"One"</span>));
 layout-&gt;<a class="code" href="classWt_1_1WBoxLayout.html#7c1ec58e25d0b7add93f5f4342844db6" title="Adds a widget to the layout.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Two"</span>));
 layout-&gt;<a class="code" href="classWt_1_1WBoxLayout.html#7c1ec58e25d0b7add93f5f4342844db6" title="Adds a widget to the layout.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Three"</span>));
 layout-&gt;<a class="code" href="classWt_1_1WBoxLayout.html#7c1ec58e25d0b7add93f5f4342844db6" title="Adds a widget to the layout.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Four"</span>));

 w-&gt;<a class="code" href="classWt_1_1WContainerWidget.html#1c84e0ffe330d4798f0ce217f75be08c" title="Sets a layout manager for the container.">setLayout</a>(layout);
</pre></div><p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>First consider if you can achieve your layout using CSS !</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WHBoxLayout.html" title="A layout manager which arranges widgets horizontally.">WHBoxLayout</a> </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="5ef82f7bc3fdaa19498a38245117dd93"></a><!-- doxytag: member="Wt::WVBoxLayout::WVBoxLayout" ref="5ef82f7bc3fdaa19498a38245117dd93" args="(WWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WVBoxLayout::WVBoxLayout           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a new vertical box layout. 
<p>
Use <code>parent=0</code> to created a layout manager that can be nested inside other layout managers. 
</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&nbsp;<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>