Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 5389723cfaa070fa83dde30f5cb260be > files > 111

compat-guichan05-devel-0.5.0-11.fc15.i686.rpm

<!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>Guichan: gcn::CheckBox Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</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="nav">
<a class="el" href="namespacegcn.html">gcn</a>::<a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a></div>
<h1>gcn::CheckBox Class Reference</h1><!-- doxytag: class="gcn::CheckBox" --><!-- doxytag: inherits="gcn::Widget,gcn::MouseListener,gcn::KeyListener" --><code>#include &lt;<a class="el" href="checkbox_8hpp-source.html">checkbox.hpp</a>&gt;</code>
<p>
<p>Inheritance diagram for gcn::CheckBox:
<p><center><img src="classgcn_1_1CheckBox.png" usemap="#gcn::CheckBox_map" border="0" alt=""></center>
<map name="gcn::CheckBox_map">
<area href="classgcn_1_1Widget.html" alt="gcn::Widget" shape="rect" coords="0,0,122,24">
<area href="classgcn_1_1MouseListener.html" alt="gcn::MouseListener" shape="rect" coords="132,0,254,24">
<area href="classgcn_1_1KeyListener.html" alt="gcn::KeyListener" shape="rect" coords="264,0,386,24">
</map>
<a href="classgcn_1_1CheckBox-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A regular <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a>. 
<p>
It can be checked and unchecked. 
<p>

<p>
Definition at line <a class="el" href="checkbox_8hpp-source.html#l00072">72</a> of file <a class="el" href="checkbox_8hpp-source.html">checkbox.hpp</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="0e81d7b6fd1e6b0d196c8d800a8e2610"></a><!-- doxytag: member="gcn::CheckBox::CheckBox" ref="0e81d7b6fd1e6b0d196c8d800a8e2610" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#0e81d7b6fd1e6b0d196c8d800a8e2610">CheckBox</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Contructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#cabd8206c7997114b4f9ac7bcf272d96">CheckBox</a> (const std::string &amp;caption, bool marked=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#cabd8206c7997114b4f9ac7bcf272d96"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec8d239efd70e47dcb4fdf7684d747e3"></a><!-- doxytag: member="gcn::CheckBox::~CheckBox" ref="ec8d239efd70e47dcb4fdf7684d747e3" args="()" -->
virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#ec8d239efd70e47dcb4fdf7684d747e3">~CheckBox</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#b2aad0c0ee5a68d446aeb582143fac01">drawBox</a> (<a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *graphics)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws the box i.a not the caption.  <a href="#b2aad0c0ee5a68d446aeb582143fac01"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#2a1f6bb054c4fc5c6aa4d435193c61d1">isMarked</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> is marked.  <a href="#2a1f6bb054c4fc5c6aa4d435193c61d1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#cdc2935c48b2b023387b51f86476903e">setMarked</a> (bool marked)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> to be marked.  <a href="#cdc2935c48b2b023387b51f86476903e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#e8fa88932da62ef67d0d4f6b39bbaf15">getCaption</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption.  <a href="#e8fa88932da62ef67d0d4f6b39bbaf15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#155f63ad8ffcf2f8200c3ffef274247d">setCaption</a> (const std::string &amp;caption)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption.  <a href="#155f63ad8ffcf2f8200c3ffef274247d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="18dd39feee57e6bfcef69fc9f5b00d08"></a><!-- doxytag: member="gcn::CheckBox::adjustSize" ref="18dd39feee57e6bfcef69fc9f5b00d08" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#18dd39feee57e6bfcef69fc9f5b00d08">adjustSize</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adjusts the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> size to fit the font size. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#cd76dee289dcd7cc07ade85ce74c7d7c">draw</a> (<a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *graphics)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws the <a class="el" href="classgcn_1_1Widget.html">Widget</a>.  <a href="#cd76dee289dcd7cc07ade85ce74c7d7c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#385eb0b9601f128646dc28b0e34c0293">drawBorder</a> (<a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *graphics)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws the <a class="el" href="classgcn_1_1Widget.html">Widget</a> border.  <a href="#385eb0b9601f128646dc28b0e34c0293"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#ac28146c99d4fedd649e0a03342176b9">keyPress</a> (const <a class="el" href="classgcn_1_1Key.html">Key</a> &amp;key)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called if a key is pressed when the widget has keyboard focus.  <a href="#ac28146c99d4fedd649e0a03342176b9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#48f4a1d45b5bba0efde4d0cc5d4f7e0f">mouseClick</a> (int x, int y, int button, int count)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when a mouse button is pressed and released (clicked) when the mouse is in the <a class="el" href="classgcn_1_1Widget.html">Widget</a> area or if the <a class="el" href="classgcn_1_1Widget.html">Widget</a> has focus.  <a href="#48f4a1d45b5bba0efde4d0cc5d4f7e0f"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ea295390b68d34dbce7c8453a79306be"></a><!-- doxytag: member="gcn::CheckBox::toggle" ref="ea295390b68d34dbce7c8453a79306be" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#ea295390b68d34dbce7c8453a79306be">toggle</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Toggles between marked and unmarked. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="76c52e6854288da317c5bc9a2bd962f5"></a><!-- doxytag: member="gcn::CheckBox::mMarked" ref="76c52e6854288da317c5bc9a2bd962f5" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#76c52e6854288da317c5bc9a2bd962f5">mMarked</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="09a931daf166102f459b169d19840484"></a><!-- doxytag: member="gcn::CheckBox::mCaption" ref="09a931daf166102f459b169d19840484" args="" -->
std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1CheckBox.html#09a931daf166102f459b169d19840484">mCaption</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="cabd8206c7997114b4f9ac7bcf272d96"></a><!-- doxytag: member="gcn::CheckBox::CheckBox" ref="cabd8206c7997114b4f9ac7bcf272d96" args="(const std::string &amp;caption, bool marked=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcn::CheckBox::CheckBox           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>caption</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>marked</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>caption</em>&nbsp;</td><td>the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>marked</em>&nbsp;</td><td>true if the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> should be marked. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00080">80</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="widget_8cpp-source.html#l00341">gcn::Widget::addKeyListener()</a>, <a class="el" href="widget_8cpp-source.html#l00351">gcn::Widget::addMouseListener()</a>, <a class="el" href="checkbox_8cpp-source.html#l00205">adjustSize()</a>, <a class="el" href="checkbox_8cpp-source.html#l00183">setCaption()</a>, <a class="el" href="widget_8cpp-source.html#l00215">gcn::Widget::setFocusable()</a>, and <a class="el" href="checkbox_8cpp-source.html#l00173">setMarked()</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="cd76dee289dcd7cc07ade85ce74c7d7c"></a><!-- doxytag: member="gcn::CheckBox::draw" ref="cd76dee289dcd7cc07ade85ce74c7d7c" args="(Graphics *graphics)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::draw           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *&nbsp;</td>
          <td class="paramname"> <em>graphics</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws the <a class="el" href="classgcn_1_1Widget.html">Widget</a>. 
<p>
It is called by the parent widget when it is time for the <a class="el" href="classgcn_1_1Widget.html">Widget</a> to draw itself. The graphics object is set up so that all drawing is relative to the <a class="el" href="classgcn_1_1Widget.html">Widget</a>, i.e coordinate (0,0) is the top-left corner of the <a class="el" href="classgcn_1_1Widget.html">Widget</a>. It is not possible to draw outside of a Widgets dimension.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>graphics</em>&nbsp;</td><td>a <a class="el" href="classgcn_1_1Graphics.html">Graphics</a> object to draw with. </td></tr>
  </table>
</dl>

<p>
Implements <a class="el" href="classgcn_1_1Widget.html#cc595221d6a2d1afe1043c16dc37d212">gcn::Widget</a>.
<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00092">92</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="checkbox_8cpp-source.html#l00133">drawBox()</a>, <a class="el" href="classgcn_1_1Graphics.html#8ffb254f53931ce3809a6f10307fcbf2">gcn::Graphics::drawRectangle()</a>, <a class="el" href="graphics_8cpp-source.html#l00134">gcn::Graphics::drawText()</a>, <a class="el" href="checkbox_8cpp-source.html#l00178">getCaption()</a>, <a class="el" href="widget_8cpp-source.html#l00564">gcn::Widget::getFont()</a>, <a class="el" href="widget_8cpp-source.html#l00295">gcn::Widget::getForegroundColor()</a>, <a class="el" href="widget_8cpp-source.html#l00139">gcn::Widget::getHeight()</a>, <a class="el" href="widget_8cpp-source.html#l00129">gcn::Widget::getWidth()</a>, <a class="el" href="widget_8cpp-source.html#l00200">gcn::Widget::isFocused()</a>, <a class="el" href="classgcn_1_1Graphics.html#7f438ae2b4cc09c66d77a9b9cb591e7c">gcn::Graphics::setColor()</a>, and <a class="el" href="graphics_8cpp-source.html#l00129">gcn::Graphics::setFont()</a>.
</div>
</div><p>
<a class="anchor" name="385eb0b9601f128646dc28b0e34c0293"></a><!-- doxytag: member="gcn::CheckBox::drawBorder" ref="385eb0b9601f128646dc28b0e34c0293" args="(Graphics *graphics)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::drawBorder           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *&nbsp;</td>
          <td class="paramname"> <em>graphics</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws the <a class="el" href="classgcn_1_1Widget.html">Widget</a> border. 
<p>
A border is drawn around a <a class="el" href="classgcn_1_1Widget.html">Widget</a>. The width and height of the border is therefore the Widgets height+2*bordersize. Think of a painting that has a certain size, the border surrounds the painting.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>graphics</em>&nbsp;</td><td>a <a class="el" href="classgcn_1_1Graphics.html">Graphics</a> object to draw with. </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1Widget.html#58c3b2f513d8e029e321fd88a974f5c4">gcn::Widget</a>.
<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00109">109</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="color_8hpp-source.html#l00161">gcn::Color::a</a>, <a class="el" href="classgcn_1_1Graphics.html#92af7e5f5ed6ebf692803bc1bd1d5db5">gcn::Graphics::drawLine()</a>, <a class="el" href="widget_8cpp-source.html#l00285">gcn::Widget::getBaseColor()</a>, <a class="el" href="widget_8cpp-source.html#l00180">gcn::Widget::getBorderSize()</a>, <a class="el" href="widget_8cpp-source.html#l00139">gcn::Widget::getHeight()</a>, <a class="el" href="widget_8cpp-source.html#l00129">gcn::Widget::getWidth()</a>, and <a class="el" href="classgcn_1_1Graphics.html#7f438ae2b4cc09c66d77a9b9cb591e7c">gcn::Graphics::setColor()</a>.
</div>
</div><p>
<a class="anchor" name="b2aad0c0ee5a68d446aeb582143fac01"></a><!-- doxytag: member="gcn::CheckBox::drawBox" ref="b2aad0c0ee5a68d446aeb582143fac01" args="(Graphics *graphics)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::drawBox           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *&nbsp;</td>
          <td class="paramname"> <em>graphics</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws the box i.a not the caption. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>graphics</em>&nbsp;</td><td>a <a class="el" href="classgcn_1_1Graphics.html">Graphics</a> object to draw with. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00133">133</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="color_8hpp-source.html#l00161">gcn::Color::a</a>, <a class="el" href="classgcn_1_1Graphics.html#92af7e5f5ed6ebf692803bc1bd1d5db5">gcn::Graphics::drawLine()</a>, <a class="el" href="classgcn_1_1Graphics.html#5caac226a94ecf8fdfee1da7cd14f0df">gcn::Graphics::fillRectangle()</a>, <a class="el" href="widget_8cpp-source.html#l00305">gcn::Widget::getBackgroundColor()</a>, <a class="el" href="widget_8cpp-source.html#l00285">gcn::Widget::getBaseColor()</a>, <a class="el" href="widget_8cpp-source.html#l00295">gcn::Widget::getForegroundColor()</a>, <a class="el" href="widget_8cpp-source.html#l00139">gcn::Widget::getHeight()</a>, <a class="el" href="checkbox_8hpp-source.html#l00161">mMarked</a>, and <a class="el" href="classgcn_1_1Graphics.html#7f438ae2b4cc09c66d77a9b9cb591e7c">gcn::Graphics::setColor()</a>.
<p>
Referenced by <a class="el" href="checkbox_8cpp-source.html#l00092">draw()</a>.
</div>
</div><p>
<a class="anchor" name="e8fa88932da62ef67d0d4f6b39bbaf15"></a><!-- doxytag: member="gcn::CheckBox::getCaption" ref="e8fa88932da62ef67d0d4f6b39bbaf15" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; gcn::CheckBox::getCaption           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption. </dd></dl>

<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00178">178</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="checkbox_8hpp-source.html#l00162">mCaption</a>.
<p>
Referenced by <a class="el" href="checkbox_8cpp-source.html#l00092">draw()</a>.
</div>
</div><p>
<a class="anchor" name="2a1f6bb054c4fc5c6aa4d435193c61d1"></a><!-- doxytag: member="gcn::CheckBox::isMarked" ref="2a1f6bb054c4fc5c6aa4d435193c61d1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcn::CheckBox::isMarked           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Checks if the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> is marked. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>true if the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> is marked. </dd></dl>

<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00168">168</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="checkbox_8hpp-source.html#l00161">mMarked</a>.
</div>
</div><p>
<a class="anchor" name="ac28146c99d4fedd649e0a03342176b9"></a><!-- doxytag: member="gcn::CheckBox::keyPress" ref="ac28146c99d4fedd649e0a03342176b9" args="(const Key &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::keyPress           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classgcn_1_1Key.html">Key</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>key</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Called if a key is pressed when the widget has keyboard focus. 
<p>
If a key is held down the widget will generate multiple key presses.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>the key pressed. </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1KeyListener.html#dfe017c04383219f11055f4ee468407b">gcn::KeyListener</a>.
<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00188">188</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="key_8cpp-source.html#l00148">gcn::Key::getValue()</a>, and <a class="el" href="checkbox_8cpp-source.html#l00213">toggle()</a>.
</div>
</div><p>
<a class="anchor" name="48f4a1d45b5bba0efde4d0cc5d4f7e0f"></a><!-- doxytag: member="gcn::CheckBox::mouseClick" ref="48f4a1d45b5bba0efde4d0cc5d4f7e0f" args="(int x, int y, int button, int count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::mouseClick           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>button</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>count</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Called when a mouse button is pressed and released (clicked) when the mouse is in the <a class="el" href="classgcn_1_1Widget.html">Widget</a> area or if the <a class="el" href="classgcn_1_1Widget.html">Widget</a> has focus. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x coordinate of the mouse relative to the <a class="el" href="classgcn_1_1Widget.html">Widget</a> itself. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y coordinate of the mouse relative to the <a class="el" href="classgcn_1_1Widget.html">Widget</a> itself. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>button</em>&nbsp;</td><td>the button clicked. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>the number of clicks. </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1MouseListener.html#6cc0d220bc407594e831f839b054c637">gcn::MouseListener</a>.
<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00197">197</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="checkbox_8cpp-source.html#l00213">toggle()</a>.
</div>
</div><p>
<a class="anchor" name="155f63ad8ffcf2f8200c3ffef274247d"></a><!-- doxytag: member="gcn::CheckBox::setCaption" ref="155f63ad8ffcf2f8200c3ffef274247d" args="(const std::string &amp;caption)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::setCaption           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>caption</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>caption</em>&nbsp;</td><td>the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> caption. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00183">183</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="checkbox_8hpp-source.html#l00162">mCaption</a>.
<p>
Referenced by <a class="el" href="checkbox_8cpp-source.html#l00080">CheckBox()</a>.
</div>
</div><p>
<a class="anchor" name="cdc2935c48b2b023387b51f86476903e"></a><!-- doxytag: member="gcn::CheckBox::setMarked" ref="cdc2935c48b2b023387b51f86476903e" args="(bool marked)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::CheckBox::setMarked           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>marked</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> to be marked. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>marked</em>&nbsp;</td><td>true if the <a class="el" href="classgcn_1_1CheckBox.html">CheckBox</a> should be marked. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="checkbox_8cpp-source.html#l00173">173</a> of file <a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a>.
<p>
References <a class="el" href="checkbox_8hpp-source.html#l00161">mMarked</a>.
<p>
Referenced by <a class="el" href="checkbox_8cpp-source.html#l00071">CheckBox()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="checkbox_8hpp-source.html">checkbox.hpp</a><li><a class="el" href="checkbox_8cpp-source.html">checkbox.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Jul 29 19:38:49 2006 for Guichan by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>