GED 2006 (C++)
Detail souboru
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: RectCmd 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 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 List</span></a></li>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<h1>RectCmd Class Reference</h1><!-- doxytag: class="RectCmd" --><!-- doxytag: inherits="PlacementCmd" --><code>#include <<a class="el" href="draw_8h-source.html">draw.h</a>></code>
<p>
<p>Inheritance diagram for RectCmd:
<p><center><img src="classRectCmd.png" usemap="#RectCmd_map" border="0" alt=""></center>
<map name="RectCmd_map">
<area href="classPlacementCmd.html" alt="PlacementCmd" shape="rect" coords="0,112,128,136">
<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="classRectCmd-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRectCmd.html#cbc69ea12be429e2713c79ba4a0e0842">RectCmd</a> (<a class="el" href="classFrameBuffer.html">FrameBuffer</a> *pFB, <a class="el" href="structRect.html">Rect</a> placement, <a class="el" href="structDrawContext.html">DrawContext</a> dc, bool bBack=false)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classRectCmd.html#4a793d0fd3fd35130bd423e2a58f9c5a">exec</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Command execution. This should save undo informations. <a href="#4a793d0fd3fd35130bd423e2a58f9c5a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classRectCmd.html#b31c7748e026418c4684c436190e64ae">name</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Command identification. This will appear in config file. <a href="#b31c7748e026418c4684c436190e64ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classRectCmd.html#52b16ce14fbd6250f82d756a1d5f608e">RectCmd</a> (<a class="el" href="classFrameBuffer.html">FrameBuffer</a> *pFB, const std::string &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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classRectCmd.html#54ccf18c93982033ac8f3adcea72da53">szCmdName</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">command id string <a href="#54ccf18c93982033ac8f3adcea72da53"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Rectangle draw command class. Design pattern command.
<p>
<p>
Definition at line <a class="el" href="draw_8h-source.html#l00191">191</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="cbc69ea12be429e2713c79ba4a0e0842"></a><!-- doxytag: member="RectCmd::RectCmd" ref="cbc69ea12be429e2713c79ba4a0e0842" args="(FrameBuffer *pFB, Rect placement, DrawContext dc, bool bBack=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">RectCmd::RectCmd </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classFrameBuffer.html">FrameBuffer</a> * </td>
<td class="paramname"> <em>pFB</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structRect.html">Rect</a> </td>
<td class="paramname"> <em>placement</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structDrawContext.html">DrawContext</a> </td>
<td class="paramname"> <em>dc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>bBack</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Construct rectangle 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> </td><td>Pointer to framebuffer to work with. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>placement</em> </td><td>Command placement. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>dc</em> </td><td>Current draw context. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>bBack</em> </td><td>Give true to use background brush. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="draw_8h-source.html#l00200">200</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.
</div>
</div><p>
<a class="anchor" name="52b16ce14fbd6250f82d756a1d5f608e"></a><!-- doxytag: member="RectCmd::RectCmd" ref="52b16ce14fbd6250f82d756a1d5f608e" args="(FrameBuffer *pFB, const std::string &args)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">RectCmd::RectCmd </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classFrameBuffer.html">FrameBuffer</a> * </td>
<td class="paramname"> <em>pFB</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>args</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Import rectangle 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> </td><td>Pointer to frame buffer to work with. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>args</em> </td><td>Data to import -- previously returned by <a class="el" href="classPlacementCmd.html#1ad8e926b4843921210412cf247f8e7b" title="Command export to text string. Needed for macro saving.">PlacementCmd::args()</a> method. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="draw_8h-source.html#l00212">212</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="4a793d0fd3fd35130bd423e2a58f9c5a"></a><!-- doxytag: member="RectCmd::exec" ref="4a793d0fd3fd35130bd423e2a58f9c5a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void RectCmd::exec </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </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="b31c7748e026418c4684c436190e64ae"></a><!-- doxytag: member="RectCmd::name" ref="b31c7748e026418c4684c436190e64ae" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string RectCmd::name </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </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#l00204">204</a> of file <a class="el" href="draw_8h-source.html">draw.h</a>.
<p>
References <a class="el" href="draw_8h-source.html#l00205">szCmdName</a>.
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="54ccf18c93982033ac8f3adcea72da53"></a><!-- doxytag: member="RectCmd::szCmdName" ref="54ccf18c93982033ac8f3adcea72da53" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* const <a class="el" href="classRectCmd.html#54ccf18c93982033ac8f3adcea72da53">RectCmd::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#l00205">205</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#l00204">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
<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>