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
|
<!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::WCircleArea 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_1WCircleArea.html">WCircleArea</a>
</div>
</div>
<div class="contents">
<h1>Wt::WCircleArea Class Reference</h1><!-- doxytag: class="Wt::WCircleArea" --><!-- doxytag: inherits="Wt::WAbstractArea" -->A interactive area in a widget, specified by a circle.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WCircleArea></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WCircleArea:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WCircleArea__inherit__graph.png" border="0" usemap="#Wt_1_1WCircleArea__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WCircleArea__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_1WCircleArea-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_1WCircleArea.html#60514d5a3a2da148a684b0a0b3a5b235">WCircleArea</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#60514d5a3a2da148a684b0a0b3a5b235"></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_1WCircleArea.html#e2d43a04099e8d29a317700570828365">WCircleArea</a> (int x, int y, int radius)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a circular area with given geometry. <a href="#e2d43a04099e8d29a317700570828365"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="10932e173eef6c9531c8086324b7ced8"></a><!-- doxytag: member="Wt::WCircleArea::setCenter" ref="10932e173eef6c9531c8086324b7ced8" args="(const WPoint &point)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#10932e173eef6c9531c8086324b7ced8">setCenter</a> (const <a class="el" href="classWt_1_1WPoint.html">WPoint</a> &point)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the center. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="604bd32d585d03c2ea509b57f71412f3"></a><!-- doxytag: member="Wt::WCircleArea::setCenter" ref="604bd32d585d03c2ea509b57f71412f3" args="(const WPointF &point)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#604bd32d585d03c2ea509b57f71412f3">setCenter</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &point)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the center. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="939c6645039059067b6924466a477c6c"></a><!-- doxytag: member="Wt::WCircleArea::setCenter" ref="939c6645039059067b6924466a477c6c" args="(int x, int y)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#939c6645039059067b6924466a477c6c">setCenter</a> (int x, int y)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the center. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34a758fe81f9f9705e2bd1c9c4d46c41"></a><!-- doxytag: member="Wt::WCircleArea::centerX" ref="34a758fe81f9f9705e2bd1c9c4d46c41" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#34a758fe81f9f9705e2bd1c9c4d46c41">centerX</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the center X coordinate. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="044104f691997c0238b3abfb95217ee2"></a><!-- doxytag: member="Wt::WCircleArea::centerY" ref="044104f691997c0238b3abfb95217ee2" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#044104f691997c0238b3abfb95217ee2">centerY</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the center Y coordinate. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="69d4391565a8cb7c707d951362fe22bf"></a><!-- doxytag: member="Wt::WCircleArea::setRadius" ref="69d4391565a8cb7c707d951362fe22bf" args="(int radius)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#69d4391565a8cb7c707d951362fe22bf">setRadius</a> (int radius)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the radius. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe7fed59edd0636ca23771400a63d7f4"></a><!-- doxytag: member="Wt::WCircleArea::radius" ref="fe7fed59edd0636ca23771400a63d7f4" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCircleArea.html#fe7fed59edd0636ca23771400a63d7f4">radius</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the radius. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A interactive area in a widget, specified by a circle.
<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 circular area of the image. The circle is specified in pixel coordinates.<p>
Usage example: <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/events.png"</span>, <span class="keyword">this</span>);
<a class="code" href="classWt_1_1WCircleArea.html" title="A interactive area in a widget, specified by a circle.">Wt::WCircleArea</a> *area = <span class="keyword">new</span> <a class="code" href="classWt_1_1WCircleArea.html" title="A interactive area in a widget, specified by a circle.">Wt::WCircleArea</a>(20, 30, 15);
image-><a class="code" href="classWt_1_1WImage.html#a5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">addArea</a>(area);
area-><a class="code" href="classWt_1_1WAbstractArea.html#cc47a02510ddcc77db551fa51e1479bf" title="Event signal emitted when a mouse key was clicked on this widget.">clicked</a>().connect(SLOT(<span class="keyword">this</span>, MyWidget::areaClicked));
</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_1WRectArea.html" title="A interactive area in a widget, specified by a rectangle.">WRectArea</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="60514d5a3a2da148a684b0a0b3a5b235"></a><!-- doxytag: member="Wt::WCircleArea::WCircleArea" ref="60514d5a3a2da148a684b0a0b3a5b235" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WCircleArea::WCircleArea </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Default constructor.
<p>
Specifies a circular area with center (0, 0) and radius 0.
</div>
</div><p>
<a class="anchor" name="e2d43a04099e8d29a317700570828365"></a><!-- doxytag: member="Wt::WCircleArea::WCircleArea" ref="e2d43a04099e8d29a317700570828365" args="(int x, int y, int radius)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WCircleArea::WCircleArea </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>radius</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 circular area with given geometry.
<p>
The arguments are in pixel units.
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:06 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>
|