English
Kamil Dudka

GED 2006 (C++)

Detail souboru

Jméno:StáhnoutclassTextCmd.html [Stáhnout]
Umístění: ged2006 > doc > classes
Velikost:11.6 KB
Poslední změna:2022-09-09 13:06

Zdrojový kód

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>GED 2006: TextCmd 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.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="classes.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="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <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>
<h1>TextCmd Class Reference</h1><!-- doxytag: class="TextCmd" --><!-- doxytag: inherits="SlowUndoSelectCmd" --><code>#include &lt;<a class="el" href="draw_8h-source.html">draw.h</a>&gt;</code>
<p>
<p>Inheritance diagram for TextCmd:
<p><center><img src="classTextCmd.png" usemap="#TextCmd_map" border="0" alt=""></center>
<map name="TextCmd_map">
<area href="classSlowUndoSelectCmd.html" alt="SlowUndoSelectCmd" shape="rect" coords="0,56,128,80">
<area href="classCmd.html" alt="Cmd" shape="rect" coords="0,0,128,24">
</map>
<a href="classTextCmd-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextCmd.html#7ec212044aa6d7a0ada839f459a17a3d">TextCmd</a> (<a class="el" href="classFrameBuffer.html">FrameBuffer</a> *pFB, <a class="el" href="structDrawContext.html">DrawContext</a> dc, <a class="el" href="structPoint.html">Point</a> position, const char *szText)</td></tr>
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextCmd.html#5b21c88907521aa5040b164ef0079fed">exec</a> ()</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Command execution. This should save undo informations.  <a href="#5b21c88907521aa5040b164ef0079fed"></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="classTextCmd.html#04f61260709b9a70483188a0410760dc">name</a> ()</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Command identification. This will appear in config file.  <a href="#04f61260709b9a70483188a0410760dc"></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="classTextCmd.html#81a0bf34b3bb2498f86e090a7265a38b">args</a> ()</td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Command export to text string. Needed for macro saving.  <a href="#81a0bf34b3bb2498f86e090a7265a38b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextCmd.html#ad55bda8ce2dd3f99f73feb6cf1a991b">TextCmd</a> (<a class="el" href="classFrameBuffer.html">FrameBuffer</a> *pFB, const std::string &amp;args)</td></tr>
 
<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextCmd.html#e2ebe13b76ea3b864a6e3741029bcdc4">szCmdName</a></td></tr>
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Command id string.  <a href="#e2ebe13b76ea3b864a6e3741029bcdc4"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTextCmd_1_1ErrFreeType.html">ErrFreeType</a></td></tr>
 
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Text command class. Design pattern command. 
<p>
 
<p>
Definition at line <a class="el" href="draw_8h-source.html#l00304">304</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="7ec212044aa6d7a0ada839f459a17a3d"></a><!-- doxytag: member="TextCmd::TextCmd" ref="7ec212044aa6d7a0ada839f459a17a3d" args="(FrameBuffer *pFB, DrawContext dc, Point position, const char *szText)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TextCmd::TextCmd           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classFrameBuffer.html">FrameBuffer</a> *&nbsp;</td>
          <td class="paramname"> <em>pFB</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structDrawContext.html">DrawContext</a>&nbsp;</td>
          <td class="paramname"> <em>dc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPoint.html">Point</a>&nbsp;</td>
          <td class="paramname"> <em>position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>szText</em></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>
Construct text command. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pFB</em>&nbsp;</td><td>Pointer to framebuffer to work with. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>position</em>&nbsp;</td><td>Left-bottom corner of text. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dc</em>&nbsp;</td><td>Current draw context. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>szText</em>&nbsp;</td><td>Text string to draw. </td></tr>
  </table>
</dl>
 
</div>
</div><p>
<a class="anchor" name="ad55bda8ce2dd3f99f73feb6cf1a991b"></a><!-- doxytag: member="TextCmd::TextCmd" ref="ad55bda8ce2dd3f99f73feb6cf1a991b" args="(FrameBuffer *pFB, const std::string &amp;args)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TextCmd::TextCmd           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classFrameBuffer.html">FrameBuffer</a> *&nbsp;</td>
          <td class="paramname"> <em>pFB</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>args</em></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>
Import text command. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pFB</em>&nbsp;</td><td>Pointer to frame buffer to work with. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>args</em>&nbsp;</td><td>Data to import -- previously returned by <a class="el" href="classTextCmd.html#81a0bf34b3bb2498f86e090a7265a38b" title="Command export to text string. Needed for macro saving.">TextCmd::args()</a> method. </td></tr>
  </table>
</dl>
 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="5b21c88907521aa5040b164ef0079fed"></a><!-- doxytag: member="TextCmd::exec" ref="5b21c88907521aa5040b164ef0079fed" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void TextCmd::exec           </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>
Command execution. This should save undo informations. 
<p>
 
<p>
Reimplemented from <a class="el" href="classSlowUndoSelectCmd.html#302b2114591a5469e70c5b32225cd67e">SlowUndoSelectCmd</a>.
</div>
</div><p>
<a class="anchor" name="04f61260709b9a70483188a0410760dc"></a><!-- doxytag: member="TextCmd::name" ref="04f61260709b9a70483188a0410760dc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string TextCmd::name           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Command identification. This will appear in config file. 
<p>
 
<p>
Implements <a class="el" href="classSlowUndoSelectCmd.html#ee3bd5a915a80da8d81d1e5934639ad2">SlowUndoSelectCmd</a>.
<p>
Definition at line <a class="el" href="draw_8h-source.html#l00316">316</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.
<p>
References <a class="el" href="draw_8h-source.html#l00333">szCmdName</a>.
</div>
</div><p>
<a class="anchor" name="81a0bf34b3bb2498f86e090a7265a38b"></a><!-- doxytag: member="TextCmd::args" ref="81a0bf34b3bb2498f86e090a7265a38b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string TextCmd::args           </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>
Command export to text string. Needed for macro saving. 
<p>
 
<p>
Implements <a class="el" href="classSlowUndoSelectCmd.html#af48c2bf9ed3365817682dcf8594a550">SlowUndoSelectCmd</a>.
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="e2ebe13b76ea3b864a6e3741029bcdc4"></a><!-- doxytag: member="TextCmd::szCmdName" ref="e2ebe13b76ea3b864a6e3741029bcdc4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* const <a class="el" href="classTextCmd.html#e2ebe13b76ea3b864a6e3741029bcdc4">TextCmd::szCmdName</a><code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">
 
<p>
Command id string. 
<p>
 
<p>
Definition at line <a class="el" href="draw_8h-source.html#l00333">333</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.
<p>
Referenced by <a class="el" href="draw_8h-source.html#l00316">name()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="draw_8h-source.html">draw.h</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>