Sophie

Sophie

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

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::TextBox 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_1TextBox.html">TextBox</a></div>
<h1>gcn::TextBox Class Reference</h1><!-- doxytag: class="gcn::TextBox" --><!-- doxytag: inherits="gcn::Widget,gcn::MouseListener,gcn::KeyListener" --><code>#include &lt;<a class="el" href="textbox_8hpp-source.html">textbox.hpp</a>&gt;</code>
<p>
<p>Inheritance diagram for gcn::TextBox:
<p><center><img src="classgcn_1_1TextBox.png" usemap="#gcn::TextBox_map" border="0" alt=""></center>
<map name="gcn::TextBox_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_1TextBox-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> in which you can write and/or display a lines of text. 
<p>
NOTE: A plain <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> is really uggly and looks much better inside a <a class="el" href="classgcn_1_1ScrollArea.html">ScrollArea</a>. 
<p>

<p>
Definition at line <a class="el" href="textbox_8hpp-source.html#l00077">77</a> of file <a class="el" href="textbox_8hpp-source.html">textbox.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="044e6e940281e4ceaffcae8bd90840ec"></a><!-- doxytag: member="gcn::TextBox::TextBox" ref="044e6e940281e4ceaffcae8bd90840ec" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#044e6e940281e4ceaffcae8bd90840ec">TextBox</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <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_1TextBox.html#1dec245909ffce79345c5e0db8acf88c">TextBox</a> (const std::string &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#1dec245909ffce79345c5e0db8acf88c"></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_1TextBox.html#d3cb5f67a03c837562588e144a6abf14">setText</a> (const std::string &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the text.  <a href="#d3cb5f67a03c837562588e144a6abf14"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#50edf6ff72e969b456d4b006f0c3b905">getText</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the text.  <a href="#50edf6ff72e969b456d4b006f0c3b905"></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_1TextBox.html#5aa3e2cbf139934a3198dff9de2e45fe">getTextRow</a> (int row) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the row of a text.  <a href="#5aa3e2cbf139934a3198dff9de2e45fe"></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_1TextBox.html#e9f71f3fd6f8bc694c9d98bfa7591c70">setTextRow</a> (int row, const std::string &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the text of a certain row in a <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>.  <a href="#e9f71f3fd6f8bc694c9d98bfa7591c70"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#3686468329e7876134ef40a0e152ff7c">getNumberOfRows</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the number of rows in the text.  <a href="#3686468329e7876134ef40a0e152ff7c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#22d3bee0ef037ade82d01b00cb8a3190">getCaretPosition</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the caret position in the text.  <a href="#22d3bee0ef037ade82d01b00cb8a3190"></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_1TextBox.html#64d6c26220f82c38e81bbbf5850bcc09">setCaretPosition</a> (unsigned int position)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the position of the caret in the text.  <a href="#64d6c26220f82c38e81bbbf5850bcc09"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#8c873587b9f753fb1ece3704fb19156d">getCaretRow</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the row the caret is in in the text.  <a href="#8c873587b9f753fb1ece3704fb19156d"></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_1TextBox.html#d3aa6f6441a9458ed3b865dccdfd649b">setCaretRow</a> (int row)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the row the caret should be in in the text.  <a href="#d3aa6f6441a9458ed3b865dccdfd649b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#cefbe0e0fac5654bc556c9f3fadd77a0">getCaretColumn</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the column the caret is in in the text.  <a href="#cefbe0e0fac5654bc556c9f3fadd77a0"></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_1TextBox.html#3497f05fdc98486d8656e8787fa48a10">setCaretColumn</a> (int column)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the column the caret should be in in the text.  <a href="#3497f05fdc98486d8656e8787fa48a10"></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_1TextBox.html#1ec3dabc57b1a5e438626c1cf9ac6b59">setCaretRowColumn</a> (int row, int column)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the row and the column the caret should be in in the text.  <a href="#1ec3dabc57b1a5e438626c1cf9ac6b59"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a45229d09fa814fc162d9d69c7311f5b"></a><!-- doxytag: member="gcn::TextBox::scrollToCaret" ref="a45229d09fa814fc162d9d69c7311f5b" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#a45229d09fa814fc162d9d69c7311f5b">scrollToCaret</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scrolls the text to the caret if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> is in a <a class="el" href="classgcn_1_1ScrollArea.html">ScrollArea</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_1TextBox.html#2cad17294e1e009c90b3c92bd1f11e5c">isEditable</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> is editable.  <a href="#2cad17294e1e009c90b3c92bd1f11e5c"></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_1TextBox.html#50cf82589ffe457cdf9a2e5d87545741">setEditable</a> (bool editable)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> should be editable or not.  <a href="#50cf82589ffe457cdf9a2e5d87545741"></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_1TextBox.html#8d08db6568c8e74434ee2c77b1fd3fbe">addRow</a> (const std::string row)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a text row to the text.  <a href="#8d08db6568c8e74434ee2c77b1fd3fbe"></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_1TextBox.html#cf19584a872752770cd666a08a1fdba7">isOpaque</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> is opaque.  <a href="#cf19584a872752770cd666a08a1fdba7"></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_1TextBox.html#1ea6411961a6a5b0330291fb23556433">setOpaque</a> (bool opaque)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> to be opaque.  <a href="#1ea6411961a6a5b0330291fb23556433"></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_1TextBox.html#1954743485dad963ec5f2e12fea3afc3">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="#1954743485dad963ec5f2e12fea3afc3"></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_1TextBox.html#785f4105370a44ff195a03d246df4667">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="#785f4105370a44ff195a03d246df4667"></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_1TextBox.html#29c1ed6c8847641ba097e2eecd957f9c">fontChanged</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when the font has changed.  <a href="#29c1ed6c8847641ba097e2eecd957f9c"></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_1TextBox.html#80c814bfd83fc815e3acbf17a55ff10e">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="#80c814bfd83fc815e3acbf17a55ff10e"></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_1TextBox.html#9eab8217fedbe31f989514ecfa07b001">mousePress</a> (int x, int y, int button)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called when a mouse button is pressed 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="#9eab8217fedbe31f989514ecfa07b001"></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">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#662b7a3429ced864bede437c671afd06">drawCaret</a> (<a class="el" href="classgcn_1_1Graphics.html">Graphics</a> *graphics, int x, int y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws the caret.  <a href="#662b7a3429ced864bede437c671afd06"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="34793e8c07259dbc67200c0a045975bc"></a><!-- doxytag: member="gcn::TextBox::adjustSize" ref="34793e8c07259dbc67200c0a045975bc" args="()" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#34793e8c07259dbc67200c0a045975bc">adjustSize</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adjusts the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> size to fit the font size. <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="c03322332b82d67e8fcc130ad8daedb4"></a><!-- doxytag: member="gcn::TextBox::mTextRows" ref="c03322332b82d67e8fcc130ad8daedb4" args="" -->
std::vector&lt; std::string &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#c03322332b82d67e8fcc130ad8daedb4">mTextRows</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="789033722eff6479d3f6441c1b1156a6"></a><!-- doxytag: member="gcn::TextBox::mCaretColumn" ref="789033722eff6479d3f6441c1b1156a6" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#789033722eff6479d3f6441c1b1156a6">mCaretColumn</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ce359650874d392a7ed5bbb07308b4da"></a><!-- doxytag: member="gcn::TextBox::mCaretRow" ref="ce359650874d392a7ed5bbb07308b4da" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#ce359650874d392a7ed5bbb07308b4da">mCaretRow</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee85a7364f811b4362f319e2d0f4e590"></a><!-- doxytag: member="gcn::TextBox::mEditable" ref="ee85a7364f811b4362f319e2d0f4e590" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#ee85a7364f811b4362f319e2d0f4e590">mEditable</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6eda3f70f2a0b6fb9a13c9605b93971f"></a><!-- doxytag: member="gcn::TextBox::mOpaque" ref="6eda3f70f2a0b6fb9a13c9605b93971f" args="" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgcn_1_1TextBox.html#6eda3f70f2a0b6fb9a13c9605b93971f">mOpaque</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="1dec245909ffce79345c5e0db8acf88c"></a><!-- doxytag: member="gcn::TextBox::TextBox" ref="1dec245909ffce79345c5e0db8acf88c" args="(const std::string &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gcn::TextBox::TextBox           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</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>text</em>&nbsp;</td><td>the text of the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00087">87</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.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="textbox_8cpp-source.html#l00356">adjustSize()</a>, <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, <a class="el" href="textbox_8hpp-source.html#l00258">mEditable</a>, <a class="el" href="textbox_8hpp-source.html#l00259">mOpaque</a>, <a class="el" href="widget_8cpp-source.html#l00175">gcn::Widget::setBorderSize()</a>, <a class="el" href="widget_8cpp-source.html#l00215">gcn::Widget::setFocusable()</a>, and <a class="el" href="textbox_8cpp-source.html#l00104">setText()</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="8d08db6568c8e74434ee2c77b1fd3fbe"></a><!-- doxytag: member="gcn::TextBox::addRow" ref="8d08db6568c8e74434ee2c77b1fd3fbe" args="(const std::string row)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::addRow           </td>
          <td>(</td>
          <td class="paramtype">const std::string&nbsp;</td>
          <td class="paramname"> <em>row</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a text row to the text. 
<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>row</em>&nbsp;</td><td>a row. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00529">529</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00356">adjustSize()</a>, and <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="1954743485dad963ec5f2e12fea3afc3"></a><!-- doxytag: member="gcn::TextBox::draw" ref="1954743485dad963ec5f2e12fea3afc3" args="(Graphics *graphics)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::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="textbox_8cpp-source.html#l00134">134</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00176">drawCaret()</a>, <a class="el" href="graphics_8cpp-source.html#l00134">gcn::Graphics::drawText()</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#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="textbox_8cpp-source.html#l00524">isEditable()</a>, <a class="el" href="widget_8cpp-source.html#l00200">gcn::Widget::isFocused()</a>, <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, <a class="el" href="textbox_8hpp-source.html#l00259">mOpaque</a>, <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</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="785f4105370a44ff195a03d246df4667"></a><!-- doxytag: member="gcn::TextBox::drawBorder" ref="785f4105370a44ff195a03d246df4667" args="(Graphics *graphics)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::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="textbox_8cpp-source.html#l00159">159</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="classgcn_1_1Graphics.html#92af7e5f5ed6ebf692803bc1bd1d5db5">gcn::Graphics::drawLine()</a>, <a class="el" href="widget_8cpp-source.html#l00305">gcn::Widget::getBackgroundColor()</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="662b7a3429ced864bede437c671afd06"></a><!-- doxytag: member="gcn::TextBox::drawCaret" ref="662b7a3429ced864bede437c671afd06" args="(Graphics *graphics, int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::drawCaret           </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>
        </tr>
        <tr>
          <td class="paramkey"></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><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws the caret. 
<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>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>the x position. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>the y position. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00176">176</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="classgcn_1_1Graphics.html#92af7e5f5ed6ebf692803bc1bd1d5db5">gcn::Graphics::drawLine()</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>, and <a class="el" href="classgcn_1_1Graphics.html#7f438ae2b4cc09c66d77a9b9cb591e7c">gcn::Graphics::setColor()</a>.
<p>
Referenced by <a class="el" href="textbox_8cpp-source.html#l00134">draw()</a>.
</div>
</div><p>
<a class="anchor" name="29c1ed6c8847641ba097e2eecd957f9c"></a><!-- doxytag: member="gcn::TextBox::fontChanged" ref="29c1ed6c8847641ba097e2eecd957f9c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::fontChanged           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Called when the font has changed. 
<p>
If the change is global, this function will only be called if the <a class="el" href="classgcn_1_1Widget.html">Widget</a> don't have a font already set. 
<p>
Reimplemented from <a class="el" href="classgcn_1_1Widget.html#a0456eba65ee0c565e572f626780aa9d">gcn::Widget</a>.
<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00498">498</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00356">adjustSize()</a>.
</div>
</div><p>
<a class="anchor" name="cefbe0e0fac5654bc556c9f3fadd77a0"></a><!-- doxytag: member="gcn::TextBox::getCaretColumn" ref="cefbe0e0fac5654bc556c9f3fadd77a0" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int gcn::TextBox::getCaretColumn           </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 column the caret is in in the text. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the column the caret is in in the text. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00451">451</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>.
</div>
</div><p>
<a class="anchor" name="22d3bee0ef037ade82d01b00cb8a3190"></a><!-- doxytag: member="gcn::TextBox::getCaretPosition" ref="22d3bee0ef037ade82d01b00cb8a3190" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int gcn::TextBox::getCaretPosition           </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 caret position in the text. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the caret position in the text. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00396">396</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, and <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="8c873587b9f753fb1ece3704fb19156d"></a><!-- doxytag: member="gcn::TextBox::getCaretRow" ref="8c873587b9f753fb1ece3704fb19156d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int gcn::TextBox::getCaretRow           </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 row the caret is in in the text. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the row the caret is in in the text. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00431">431</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>.
</div>
</div><p>
<a class="anchor" name="3686468329e7876134ef40a0e152ff7c"></a><!-- doxytag: member="gcn::TextBox::getNumberOfRows" ref="3686468329e7876134ef40a0e152ff7c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int gcn::TextBox::getNumberOfRows           </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 number of rows in the text. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the number of rows in the text. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00473">473</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="50edf6ff72e969b456d4b006f0c3b905"></a><!-- doxytag: member="gcn::TextBox::getText" ref="50edf6ff72e969b456d4b006f0c3b905" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string gcn::TextBox::getText           </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 text. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the text of the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00478">478</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="5aa3e2cbf139934a3198dff9de2e45fe"></a><!-- doxytag: member="gcn::TextBox::getTextRow" ref="5aa3e2cbf139934a3198dff9de2e45fe" args="(int row) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::string &amp; gcn::TextBox::getTextRow           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the row of a text. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the text of a certain row in the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00456">456</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="2cad17294e1e009c90b3c92bd1f11e5c"></a><!-- doxytag: member="gcn::TextBox::isEditable" ref="2cad17294e1e009c90b3c92bd1f11e5c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcn::TextBox::isEditable           </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_1TextBox.html">TextBox</a> is editable. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>true it the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> is editable. </dd></dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00524">524</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00258">mEditable</a>.
<p>
Referenced by <a class="el" href="textbox_8cpp-source.html#l00134">draw()</a>.
</div>
</div><p>
<a class="anchor" name="cf19584a872752770cd666a08a1fdba7"></a><!-- doxytag: member="gcn::TextBox::isOpaque" ref="cf19584a872752770cd666a08a1fdba7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gcn::TextBox::isOpaque           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

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

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00535">535</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00259">mOpaque</a>.
</div>
</div><p>
<a class="anchor" name="80c814bfd83fc815e3acbf17a55ff10e"></a><!-- doxytag: member="gcn::TextBox::keyPress" ref="80c814bfd83fc815e3acbf17a55ff10e" args="(const Key &amp;key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::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="textbox_8cpp-source.html#l00197">197</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00356">adjustSize()</a>, <a class="el" href="basiccontainer_8cpp-source.html#l00131">gcn::BasicContainer::getChildrenArea()</a>, <a class="el" href="widget_8cpp-source.html#l00564">gcn::Widget::getFont()</a>, <a class="el" href="classgcn_1_1Font.html#a270d8934a16d4065143e3617b1fa926">gcn::Font::getHeight()</a>, <a class="el" href="widget_8cpp-source.html#l00119">gcn::Widget::getParent()</a>, <a class="el" href="key_8cpp-source.html#l00148">gcn::Key::getValue()</a>, <a class="el" href="rectangle_8hpp-source.html#l00114">gcn::Rectangle::height</a>, <a class="el" href="key_8cpp-source.html#l00073">gcn::Key::isCharacter()</a>, <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, <a class="el" href="textbox_8hpp-source.html#l00258">mEditable</a>, <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>, <a class="el" href="textbox_8cpp-source.html#l00503">scrollToCaret()</a>, and <a class="el" href="textbox_8cpp-source.html#l00414">setCaretRow()</a>.
</div>
</div><p>
<a class="anchor" name="9eab8217fedbe31f989514ecfa07b001"></a><!-- doxytag: member="gcn::TextBox::mousePress" ref="9eab8217fedbe31f989514ecfa07b001" args="(int x, int y, int button)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::mousePress           </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><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 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>
NOTE: A mouse press is NOT equal to a mouse click. Use mouseClickMessage to check for mouse clicks.<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 pressed. </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classgcn_1_1MouseListener.html#fa7ee9263cc25be685cfddcc0a61b162">gcn::MouseListener</a>.
<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00182">182</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="widget_8cpp-source.html#l00564">gcn::Widget::getFont()</a>, <a class="el" href="classgcn_1_1Font.html#a270d8934a16d4065143e3617b1fa926">gcn::Font::getHeight()</a>, <a class="el" href="font_8cpp-source.html#l00067">gcn::Font::getStringIndexAt()</a>, <a class="el" href="widget_8cpp-source.html#l00210">gcn::Widget::hasMouse()</a>, <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, and <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="3497f05fdc98486d8656e8787fa48a10"></a><!-- doxytag: member="gcn::TextBox::setCaretColumn" ref="3497f05fdc98486d8656e8787fa48a10" args="(int column)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setCaretColumn           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the column the caret should be in in the text. 
<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>column</em>&nbsp;</td><td>the column number. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00436">436</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, and <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
<p>
Referenced by <a class="el" href="textbox_8cpp-source.html#l00414">setCaretRow()</a>, <a class="el" href="textbox_8cpp-source.html#l00408">setCaretRowColumn()</a>, and <a class="el" href="textbox_8cpp-source.html#l00461">setTextRow()</a>.
</div>
</div><p>
<a class="anchor" name="64d6c26220f82c38e81bbbf5850bcc09"></a><!-- doxytag: member="gcn::TextBox::setCaretPosition" ref="64d6c26220f82c38e81bbbf5850bcc09" args="(unsigned int position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setCaretPosition           </td>
          <td>(</td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>position</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the position of the caret in the text. 
<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>position</em>&nbsp;</td><td>the positon of the caret. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00373">373</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, and <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
</div>
</div><p>
<a class="anchor" name="d3aa6f6441a9458ed3b865dccdfd649b"></a><!-- doxytag: member="gcn::TextBox::setCaretRow" ref="d3aa6f6441a9458ed3b865dccdfd649b" args="(int row)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setCaretRow           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the row the caret should be in in the text. 
<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>row</em>&nbsp;</td><td>the row number. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00414">414</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>, and <a class="el" href="textbox_8cpp-source.html#l00436">setCaretColumn()</a>.
<p>
Referenced by <a class="el" href="textbox_8cpp-source.html#l00197">keyPress()</a>, and <a class="el" href="textbox_8cpp-source.html#l00408">setCaretRowColumn()</a>.
</div>
</div><p>
<a class="anchor" name="1ec3dabc57b1a5e438626c1cf9ac6b59"></a><!-- doxytag: member="gcn::TextBox::setCaretRowColumn" ref="1ec3dabc57b1a5e438626c1cf9ac6b59" args="(int row, int column)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setCaretRowColumn           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</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>
Sets the row and the column the caret should be in in the text. 
<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>row</em>&nbsp;</td><td>the row number. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>column</em>&nbsp;</td><td>the column number. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00408">408</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00436">setCaretColumn()</a>, and <a class="el" href="textbox_8cpp-source.html#l00414">setCaretRow()</a>.
</div>
</div><p>
<a class="anchor" name="50cf82589ffe457cdf9a2e5d87545741"></a><!-- doxytag: member="gcn::TextBox::setEditable" ref="50cf82589ffe457cdf9a2e5d87545741" args="(bool editable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setEditable           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>editable</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> should be editable or not. 
<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>editable</em>&nbsp;</td><td>true if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> should be editable. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00519">519</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00258">mEditable</a>.
</div>
</div><p>
<a class="anchor" name="1ea6411961a6a5b0330291fb23556433"></a><!-- doxytag: member="gcn::TextBox::setOpaque" ref="1ea6411961a6a5b0330291fb23556433" args="(bool opaque)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setOpaque           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>opaque</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_1TextBox.html">TextBox</a> to be opaque. 
<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>opaque</em>&nbsp;</td><td>true if the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a> should be opaque. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00540">540</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8hpp-source.html#l00259">mOpaque</a>.
</div>
</div><p>
<a class="anchor" name="d3cb5f67a03c837562588e144a6abf14"></a><!-- doxytag: member="gcn::TextBox::setText" ref="d3cb5f67a03c837562588e144a6abf14" args="(const std::string &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setText           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>text</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the text. 
<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>text</em>&nbsp;</td><td>the text of the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00104">104</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00356">adjustSize()</a>, <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, and <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>.
<p>
Referenced by <a class="el" href="textbox_8cpp-source.html#l00071">TextBox()</a>.
</div>
</div><p>
<a class="anchor" name="e9f71f3fd6f8bc694c9d98bfa7591c70"></a><!-- doxytag: member="gcn::TextBox::setTextRow" ref="e9f71f3fd6f8bc694c9d98bfa7591c70" args="(int row, const std::string &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gcn::TextBox::setTextRow           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>text</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>
Sets the text of a certain row in a <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>. 
<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>row</em>&nbsp;</td><td>the row number. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>the text of a certain row in the <a class="el" href="classgcn_1_1TextBox.html">TextBox</a>. </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="textbox_8cpp-source.html#l00461">461</a> of file <a class="el" href="textbox_8cpp-source.html">textbox.cpp</a>.
<p>
References <a class="el" href="textbox_8cpp-source.html#l00356">adjustSize()</a>, <a class="el" href="textbox_8hpp-source.html#l00256">mCaretColumn</a>, <a class="el" href="textbox_8hpp-source.html#l00257">mCaretRow</a>, <a class="el" href="textbox_8hpp-source.html#l00255">mTextRows</a>, and <a class="el" href="textbox_8cpp-source.html#l00436">setCaretColumn()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="textbox_8hpp-source.html">textbox.hpp</a><li><a class="el" href="textbox_8cpp-source.html">textbox.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>