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 178 179 180 181 182 183 184 185 186 187 188 189
|
<!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::WRectArea 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_1WRectArea.html">WRectArea</a>
</div>
</div>
<div class="contents">
<h1>Wt::WRectArea Class Reference</h1><!-- doxytag: class="Wt::WRectArea" --><!-- doxytag: inherits="Wt::WAbstractArea" -->A interactive area in a widget, specified by a rectangle.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WRectArea></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WRectArea:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WRectArea__inherit__graph.png" border="0" usemap="#Wt_1_1WRectArea__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WRectArea__inherit__map">
<area shape="rect" href="classWt_1_1WAbstractArea.html" title="Abstract base class for interactive areas in a widget." alt="" coords="5,80,136,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="23,5,119,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WRectArea-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#56e72183f3e07a8161bd2795baaa9fc2">WRectArea</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#56e72183f3e07a8161bd2795baaa9fc2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#d0eaa4bb51b94b7f695fddde8df3adee">WRectArea</a> (int x, int y, int width, int height)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a rectangular area with given geometry. <a href="#d0eaa4bb51b94b7f695fddde8df3adee"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#44f5f1b92b79e2355998a54cea5257c1">WRectArea</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &rect)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a rectangular area with given geometry. <a href="#44f5f1b92b79e2355998a54cea5257c1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="14c6788e518a2db3a3128110763695b8"></a><!-- doxytag: member="Wt::WRectArea::setX" ref="14c6788e518a2db3a3128110763695b8" args="(int x)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#14c6788e518a2db3a3128110763695b8">setX</a> (int x)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the top-left X coordinate. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="47b5e476e13e51c1c98c9d72017e9d56"></a><!-- doxytag: member="Wt::WRectArea::x" ref="47b5e476e13e51c1c98c9d72017e9d56" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#47b5e476e13e51c1c98c9d72017e9d56">x</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the top-left X coordinate. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0e19203a36ccf624d85be131f3b1ac30"></a><!-- doxytag: member="Wt::WRectArea::setY" ref="0e19203a36ccf624d85be131f3b1ac30" args="(int y)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#0e19203a36ccf624d85be131f3b1ac30">setY</a> (int y)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the top-left Y coordinate. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="020c4bd1576ca7a5c138f5ecccaa0592"></a><!-- doxytag: member="Wt::WRectArea::y" ref="020c4bd1576ca7a5c138f5ecccaa0592" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#020c4bd1576ca7a5c138f5ecccaa0592">y</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the top-left Y coordinate. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="07614d6f30cbe7ae69b8aa562ebe0922"></a><!-- doxytag: member="Wt::WRectArea::setWidth" ref="07614d6f30cbe7ae69b8aa562ebe0922" args="(int width)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#07614d6f30cbe7ae69b8aa562ebe0922">setWidth</a> (int width)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the width. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="930186d9bf4721d3b65b4a64032c7c74"></a><!-- doxytag: member="Wt::WRectArea::width" ref="930186d9bf4721d3b65b4a64032c7c74" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#930186d9bf4721d3b65b4a64032c7c74">width</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the width. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6ed26185f1c92c5fc9e3f80f2a7733b2"></a><!-- doxytag: member="Wt::WRectArea::setHeight" ref="6ed26185f1c92c5fc9e3f80f2a7733b2" args="(int height)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#6ed26185f1c92c5fc9e3f80f2a7733b2">setHeight</a> (int height)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the height. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7dba50020eb443edbf16c0389c99bdf0"></a><!-- doxytag: member="Wt::WRectArea::height" ref="7dba50020eb443edbf16c0389c99bdf0" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectArea.html#7dba50020eb443edbf16c0389c99bdf0">height</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the height. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A interactive area in a widget, specified by a rectangle.
<p>
The area may be added to a <a class="el" href="classWt_1_1WImage.html" title="A widget that displays an image.">WImage</a> or <a class="el" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics.">WPaintedWidget</a> to provide interactivity on a rectangular area of the image. The rectangle is specified in pixel coordinates.<p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WImage.html" title="A widget that displays an image.">Wt::WImage</a> *image = <span class="keyword">new</span> <a class="code" href="classWt_1_1WImage.html" title="A widget that displays an image.">Wt::WImage</a>(<span class="stringliteral">"images/family.jpg"</span>);
<a class="code" href="classWt_1_1WRectArea.html" title="A interactive area in a widget, specified by a rectangle.">Wt::WRectArea</a> *face = <span class="keyword">new</span> <a class="code" href="classWt_1_1WRectArea.html" title="A interactive area in a widget, specified by a rectangle.">Wt::WRectArea</a>(100, 120, 200, 130);
face-><a class="code" href="classWt_1_1WAbstractArea.html#310e8e1d6360d22bf8bf0e484a52b8f9" title="Sets the tooltip.">setToolTip</a>(<span class="stringliteral">"Uncle Frank"</span>);
image-><a class="code" href="classWt_1_1WImage.html#a5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">addArea</a>(face);
</pre></div><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#a5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">WImage::addArea()</a>, <a class="el" href="classWt_1_1WPaintedWidget.html#c4c031c7ab47e85f27aac09b7fc37bea" title="Adds an interactive area.">WPaintedWidget::addArea()</a> <p>
<a class="el" href="classWt_1_1WCircleArea.html" title="A interactive area in a widget, specified by a circle.">WCircleArea</a>, <a class="el" href="classWt_1_1WPolygonArea.html" title="An interactive area in a widget, specified by a polygon.">WPolygonArea</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="56e72183f3e07a8161bd2795baaa9fc2"></a><!-- doxytag: member="Wt::WRectArea::WRectArea" ref="56e72183f3e07a8161bd2795baaa9fc2" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WRectArea::WRectArea </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Default constructor.
<p>
The default constructor creates a rectangular area spans the whole widget.
</div>
</div><p>
<a class="anchor" name="d0eaa4bb51b94b7f695fddde8df3adee"></a><!-- doxytag: member="Wt::WRectArea::WRectArea" ref="d0eaa4bb51b94b7f695fddde8df3adee" args="(int x, int y, int width, int height)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WRectArea::WRectArea </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>y</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>height</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a rectangular area with given geometry.
<p>
The arguments are in pixel units.
</div>
</div><p>
<a class="anchor" name="44f5f1b92b79e2355998a54cea5257c1"></a><!-- doxytag: member="Wt::WRectArea::WRectArea" ref="44f5f1b92b79e2355998a54cea5257c1" args="(const WRectF &rect)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WRectArea::WRectArea </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> & </td>
<td class="paramname"> <em>rect</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a rectangular area with given geometry.
<p>
The <code>rect</code> argument is in pixel units.
</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>
|