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
|
<!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::WScrollBar 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_1WScrollBar.html">WScrollBar</a>
</div>
</div>
<div class="contents">
<h1>Wt::WScrollBar Class Reference</h1><!-- doxytag: class="Wt::WScrollBar" --><!-- doxytag: inherits="Wt::WObject" -->A scrollbar attached to a scroll area.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WScrollBar></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WScrollBar:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WScrollBar__inherit__graph.png" border="0" usemap="#Wt_1_1WScrollBar__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WScrollBar__inherit__map">
<area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="12,5,108,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WScrollBar-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="bad5971aa318817e38fb85eaf33e8f1c"></a><!-- doxytag: member="Wt::WScrollBar::orientation" ref="bad5971aa318817e38fb85eaf33e8f1c" args="() const " -->
<a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WScrollBar.html#bad5971aa318817e38fb85eaf33e8f1c">orientation</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the orientation of this scrollbar. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WScrollBar.html#ad9b9a1d141c02edc2853176135a052d">setValue</a> (int value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the scrollbar value. <a href="#ad9b9a1d141c02edc2853176135a052d"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WScrollBar.html#6eb5c19029a90ae5b748411dc0dd4c89">tie</a> (<a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> *one, <a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> *two)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Ties two scrollbars together. <a href="#6eb5c19029a90ae5b748411dc0dd4c89"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WScrollBar.html#9d78abc2a0c36b6dfb707ca8d427e017">unTie</a> (<a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> *one, <a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> *two)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unties two scrollbars, that were previously tied together. <a href="#9d78abc2a0c36b6dfb707ca8d427e017"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A scrollbar attached to a scroll area.
<p>
A <a class="el" href="classWt_1_1WScrollArea.html" title="A widget that adds scrolling capabilities to its content.">WScrollArea</a> always has two scrollbars (even if they are not visible, for example when the policy is <a class="el" href="classWt_1_1WScrollArea.html#266104fe2b2f25b8f908de58e21ebbf78c3f17ce7b5a537f91f6926e98dc3aa3" title="Always show a scrollbar.">WScrollArea::ScrollBarAlwaysOff</a>). Using the <a class="el" href="classWt_1_1WScrollBar.html#6eb5c19029a90ae5b748411dc0dd4c89" title="Ties two scrollbars together.">tie(WScrollBar *one, WScrollBar *two)</a> functions, it is possible to tie to scrollbars together, so that they will scroll together.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WScrollArea.html" title="A widget that adds scrolling capabilities to its content.">WScrollArea</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6eb5c19029a90ae5b748411dc0dd4c89"></a><!-- doxytag: member="Wt::WScrollBar::tie" ref="6eb5c19029a90ae5b748411dc0dd4c89" args="(WScrollBar *one, WScrollBar *two)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WScrollBar::tie </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> * </td>
<td class="paramname"> <em>one</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> * </td>
<td class="paramname"> <em>two</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Ties two scrollbars together.
<p>
The effect of this call is that these scrollbars will keep their positions synchronised.
</div>
</div><p>
<a class="anchor" name="9d78abc2a0c36b6dfb707ca8d427e017"></a><!-- doxytag: member="Wt::WScrollBar::unTie" ref="9d78abc2a0c36b6dfb707ca8d427e017" args="(WScrollBar *one, WScrollBar *two)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WScrollBar::unTie </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> * </td>
<td class="paramname"> <em>one</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WScrollBar.html">WScrollBar</a> * </td>
<td class="paramname"> <em>two</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Unties two scrollbars, that were previously tied together.
<p>
Undo a <a class="el" href="classWt_1_1WScrollBar.html#6eb5c19029a90ae5b748411dc0dd4c89" title="Ties two scrollbars together.">tie(WScrollBar *one, WScrollBar *two)</a>;
</div>
</div><p>
<a class="anchor" name="ad9b9a1d141c02edc2853176135a052d"></a><!-- doxytag: member="Wt::WScrollBar::setValue" ref="ad9b9a1d141c02edc2853176135a052d" args="(int value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WScrollBar::setValue </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>value</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the scrollbar value.
<p>
This will move the scrollbar to the given value.
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 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>
|