Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1807

wt-doc-3.2.3-1.fc18.noarch.rpm

<!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::WImage 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
   &#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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_1WImage.html">WImage</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WImage Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WImage" --><!-- doxytag: inherits="Wt::WInteractWidget" -->
<p>A widget that displays an image.  
 <a href="classWt_1_1WImage.html#details">More...</a></p>

<p><code>#include &lt;Wt/WImage&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WImage:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WImage__inherit__graph.png" border="0" usemap="#Wt_1_1WImage_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WImage_inherit__map" id="Wt_1_1WImage_inherit__map">
<area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="5,229,149,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,141,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="28,80,127,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="29,5,125,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WImage-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="aa3566a1fb818f5a57c4cc0d298cc71c7"></a><!-- doxytag: member="Wt::WImage::WImage" ref="aa3566a1fb818f5a57c4cc0d298cc71c7" args="(WContainerWidget *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#aa3566a1fb818f5a57c4cc0d298cc71c7">WImage</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty image widget. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#afc840db28ace1e07c9f7329ccc5b84f5">WImage</a> (const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;imageLink, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an image widget with a given image link.  <a href="#afc840db28ace1e07c9f7329ccc5b84f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#a899c336ba2c4c2da272230cabb954ce5">WImage</a> (const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;imageLink, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;altText, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an image widget with a given image link and alternate text.  <a href="#a899c336ba2c4c2da272230cabb954ce5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#afa619104c48e0152f5847d72a5397fc3">setAlternateText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an alternate text.  <a href="#afa619104c48e0152f5847d72a5397fc3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#afb3144944ad2203d35d08c29bab7111a">alternateText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the alternate text.  <a href="#afb3144944ad2203d35d08c29bab7111a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca">setImageLink</a> (const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;link)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the image link.  <a href="#ab3b0e9034aefca28cbda7d8943738aca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#ae68e0ae2813fd3937876bc86538bd952">imageLink</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the image link.  <a href="#ae68e0ae2813fd3937876bc86538bd952"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#acea9ce518f4eec6b19fd4bacc44a52e8">setImageRef</a> (const std::string &amp;url)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the image URL (<b>deprecated</b>).  <a href="#acea9ce518f4eec6b19fd4bacc44a52e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#ae3a7a79cd15e7aa7e4e7c3a72873bc68">imageRef</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the image URL (<b>deprecated</b>).  <a href="#ae3a7a79cd15e7aa7e4e7c3a72873bc68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#a509a0636d08916dc14bc1d6eefa79c58">setResource</a> (<a class="el" href="classWt_1_1WResource.html">WResource</a> *resource)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the image resource (<b>deprecated</b>).  <a href="#a509a0636d08916dc14bc1d6eefa79c58"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WResource.html">WResource</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#aba1438bdf7c11c8b8444b9375bec0597">resource</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the image resource (<b>deprecated</b>.  <a href="#aba1438bdf7c11c8b8444b9375bec0597"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#aa5737b44a5161b8494b2691c20315417">addArea</a> (<a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *area)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds an interactive area.  <a href="#aa5737b44a5161b8494b2691c20315417"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#a32baad2b361ff4660a8354a98e998535">insertArea</a> (int index, <a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *area)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Inserts an interactive area.  <a href="#a32baad2b361ff4660a8354a98e998535"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#a79b9dedd023e423b1b2575588ed7ff51">removeArea</a> (<a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *area)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes an interactive area.  <a href="#a79b9dedd023e423b1b2575588ed7ff51"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#ad1900179902128ddd3d26922c33a3b97">area</a> (int index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interactive area at the given index.  <a href="#ad1900179902128ddd3d26922c33a3b97"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::vector<br class="typebreak"/>
&lt; <a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#ae2dca02b06799eacebc7474569c234b5">areas</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interactive areas set for this widget.  <a href="#ae2dca02b06799eacebc7474569c234b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54258a16b4ff221694fd79701ce8cd98"></a><!-- doxytag: member="Wt::WImage::imageLoaded" ref="a54258a16b4ff221694fd79701ce8cd98" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WImage.html#a54258a16b4ff221694fd79701ce8cd98">imageLoaded</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Event emitted when the image was loaded. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A widget that displays an image. </p>
<p>The image may be specified either as a URL, or may be dynamically generated by a <a class="el" href="classWt_1_1WResource.html" title="An object which can be rendered in the HTTP protocol.">WResource</a>.</p>
<p>You may listen to events by attaching event listeners to signals such as <a class="el" href="classWt_1_1WInteractWidget.html#ae11e050cce0d4a8f742afa3ef92bfe8c" title="Event signal emitted when a mouse key was clicked on this widget.">clicked()</a>. Since mouse events pass the coordinates through a <a class="el" href="classWt_1_1WMouseEvent.html" title="A class providing details for a mouse event.">WMouseEvent</a> object, it is possible to react to clicks in specific parts of the image. An alternative is to define interactive areas on the image using <a class="el" href="classWt_1_1WImage.html#aa5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">addArea()</a>, which in addition allows to have customized tool tips for certain image areas (using <a class="el" href="classWt_1_1WAbstractArea.html#a310e8e1d6360d22bf8bf0e484a52b8f9" title="Sets the tooltip.">WAbstractArea::setToolTip()</a>).</p>
<p>Usage example: </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> *img = <span class="keyword">new</span> <a class="code" href="classWt_1_1WImage.html#aa3566a1fb818f5a57c4cc0d298cc71c7" title="Creates an empty image widget.">Wt::WImage</a>(<span class="stringliteral">&quot;images/johnny_cash.png&quot;</span>, <span class="keyword">this</span>);
 img-&gt;<a class="code" href="classWt_1_1WImage.html#afa619104c48e0152f5847d72a5397fc3" title="Sets an alternate text.">setAlternateText</a>(<span class="stringliteral">&quot;Johnny Cash sings a song&quot;</span>);
</pre></div><p>WImage is an <a class="el" href="classWt_1_1WWidget.html#ac78e3af143883334c82031790c87416e">inline </a> widget.</p>
<h3>CSS</h3>
<p>The widget corresponds to the HTML <code>&lt;img&gt;</code> tag and does not provide styling. It can be styled using inline or external CSS as appropriate.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WResource.html" title="An object which can be rendered in the HTTP protocol.">WResource</a>, <a class="el" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics.">WPaintedWidget</a> </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afc840db28ace1e07c9f7329ccc5b84f5"></a><!-- doxytag: member="Wt::WImage::WImage" ref="afc840db28ace1e07c9f7329ccc5b84f5" args="(const WLink &amp;imageLink, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WImage::WImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;&#160;</td>
          <td class="paramname"><em>imageLink</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates an image widget with a given image link. </p>
<p>The <code>imageLink</code> may link to a URL or resource. </p>

</div>
</div>
<a class="anchor" id="a899c336ba2c4c2da272230cabb954ce5"></a><!-- doxytag: member="Wt::WImage::WImage" ref="a899c336ba2c4c2da272230cabb954ce5" args="(const WLink &amp;imageLink, const WString &amp;altText, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WImage::WImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;&#160;</td>
          <td class="paramname"><em>imageLink</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>altText</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates an image widget with a given image link and alternate text. </p>
<p>The <code>imageLink</code> may link to a URL or resource. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa5737b44a5161b8494b2691c20315417"></a><!-- doxytag: member="Wt::WImage::addArea" ref="aa5737b44a5161b8494b2691c20315417" args="(WAbstractArea *area)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::addArea </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *&#160;</td>
          <td class="paramname"><em>area</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds an interactive area. </p>
<p>Adds the <code>area</code> which listens to events in a specific region of the image. Areas are organized in an indexed list, to which the given <code>area</code> is appended. When areas overlap, the area with the lowest index receives the event.</p>
<p>Ownership of the <code>area</code> is transferred to the image.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#a32baad2b361ff4660a8354a98e998535" title="Inserts an interactive area.">insertArea(int, WAbstractArea *)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afb3144944ad2203d35d08c29bab7111a"></a><!-- doxytag: member="Wt::WImage::alternateText" ref="afb3144944ad2203d35d08c29bab7111a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>&amp; Wt::WImage::alternateText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the alternate text. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#afa619104c48e0152f5847d72a5397fc3" title="Sets an alternate text.">setAlternateText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad1900179902128ddd3d26922c33a3b97"></a><!-- doxytag: member="Wt::WImage::area" ref="ad1900179902128ddd3d26922c33a3b97" args="(int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> * Wt::WImage::area </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the interactive area at the given index. </p>
<p>Returns <code>0</code> if <code>index</code> was invalid.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#a32baad2b361ff4660a8354a98e998535" title="Inserts an interactive area.">insertArea(int, WAbstractArea *)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae2dca02b06799eacebc7474569c234b5"></a><!-- doxytag: member="Wt::WImage::areas" ref="ae2dca02b06799eacebc7474569c234b5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt; <a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> * &gt; Wt::WImage::areas </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the interactive areas set for this widget. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#aa5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">addArea()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae68e0ae2813fd3937876bc86538bd952"></a><!-- doxytag: member="Wt::WImage::imageLink" ref="ae68e0ae2813fd3937876bc86538bd952" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WLink.html">WLink</a>&amp; Wt::WImage::imageLink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the image link. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>setLink() </dd></dl>

</div>
</div>
<a class="anchor" id="ae3a7a79cd15e7aa7e4e7c3a72873bc68"></a><!-- doxytag: member="Wt::WImage::imageRef" ref="ae3a7a79cd15e7aa7e4e7c3a72873bc68" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string Wt::WImage::imageRef </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the image URL (<b>deprecated</b>). </p>
<p>When the image is specified as a resource, this returns the current resource URL.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000043">Deprecated:</a></b></dt><dd>Use <a class="el" href="classWt_1_1WImage.html#ae68e0ae2813fd3937876bc86538bd952" title="Returns the image link.">imageLink()</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a32baad2b361ff4660a8354a98e998535"></a><!-- doxytag: member="Wt::WImage::insertArea" ref="a32baad2b361ff4660a8354a98e998535" args="(int index, WAbstractArea *area)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::insertArea </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *&#160;</td>
          <td class="paramname"><em>area</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Inserts an interactive area. </p>
<p>Inserts the <code>area</code> which listens to events in the coresponding area of the image. Areas are organized in a list, and the <em>area</em> is inserted at index <code>index</code>. When areas overlap, the area with the lowest index receives the event.</p>
<p>Ownership of the <code>area</code> is transferred to the image.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#aa5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">addArea(WAbstractArea *)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a79b9dedd023e423b1b2575588ed7ff51"></a><!-- doxytag: member="Wt::WImage::removeArea" ref="a79b9dedd023e423b1b2575588ed7ff51" args="(WAbstractArea *area)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::removeArea </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *&#160;</td>
          <td class="paramname"><em>area</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes an interactive area. </p>
<p>Removes the <code>area</code> from this widget, and also returns the ownership.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#aa5737b44a5161b8494b2691c20315417" title="Adds an interactive area.">addArea(WAbstractArea *)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aba1438bdf7c11c8b8444b9375bec0597"></a><!-- doxytag: member="Wt::WImage::resource" ref="aba1438bdf7c11c8b8444b9375bec0597" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WResource.html">WResource</a> * Wt::WImage::resource </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the image resource (<b>deprecated</b>. </p>
<p>Returns <code>0</code> if no image resource was set.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000045">Deprecated:</a></b></dt><dd>Use <a class="el" href="classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca" title="Sets the image link.">setImageLink()</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="afa619104c48e0152f5847d72a5397fc3"></a><!-- doxytag: member="Wt::WImage::setAlternateText" ref="afa619104c48e0152f5847d72a5397fc3" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::setAlternateText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets an alternate text. </p>
<p>The alternate text should provide a fallback for browsers that do not display an image. If no sensible fallback text can be provided, an empty text is preferred over nonsense.</p>
<p>This should not be confused with <a class="el" href="classWt_1_1WWebWidget.html#adfc08f865ae4abdcfaff8b863c628fd8" title="Returns the tooltip.">toolTip()</a> text, which provides additional information that is displayed when the mouse hovers over the image.</p>
<p>The default alternate text is an empty text ("").</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WImage.html#afb3144944ad2203d35d08c29bab7111a" title="Returns the alternate text.">alternateText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab3b0e9034aefca28cbda7d8943738aca"></a><!-- doxytag: member="Wt::WImage::setImageLink" ref="ab3b0e9034aefca28cbda7d8943738aca" args="(const WLink &amp;link)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::setImageLink </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLink.html">WLink</a> &amp;&#160;</td>
          <td class="paramname"><em>link</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the image link. </p>
<p>The image may be specified as a URL or as a resource. A resource specifies application-dependent content, which may be used to generate an image on demand. </p>

</div>
</div>
<a class="anchor" id="acea9ce518f4eec6b19fd4bacc44a52e8"></a><!-- doxytag: member="Wt::WImage::setImageRef" ref="acea9ce518f4eec6b19fd4bacc44a52e8" args="(const std::string &amp;url)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::setImageRef </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the image URL (<b>deprecated</b>). </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000042">Deprecated:</a></b></dt><dd>Use <a class="el" href="classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca" title="Sets the image link.">setImageLink()</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a509a0636d08916dc14bc1d6eefa79c58"></a><!-- doxytag: member="Wt::WImage::setResource" ref="a509a0636d08916dc14bc1d6eefa79c58" args="(WResource *resource)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WImage::setResource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WResource.html">WResource</a> *&#160;</td>
          <td class="paramname"><em>resource</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the image resource (<b>deprecated</b>). </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000044">Deprecated:</a></b></dt><dd>Use <a class="el" href="classWt_1_1WImage.html#ab3b0e9034aefca28cbda7d8943738aca" title="Sets the image link.">setImageLink()</a> instead. </dd></dl>

</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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</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&nbsp;<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>