123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.17"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Bugz Door Project: door::Goto Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Bugz Door Project
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.17 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div id="nav-path" class="navpath">
- <ul>
- <li class="navelem"><a class="el" href="namespacedoor.html">door</a></li><li class="navelem"><a class="el" href="classdoor_1_1Goto.html">Goto</a></li> </ul>
- </div>
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pri-attribs">Private Attributes</a> |
- <a href="#friends">Friends</a> |
- <a href="classdoor_1_1Goto-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">door::Goto Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>ANSI <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> X, Y position.
- <a href="classdoor_1_1Goto.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="door_8h_source.html">door.h</a>></code></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a099828631625d5b66bb8789510d849d7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Goto.html#a099828631625d5b66bb8789510d849d7">Goto</a> (int xpos, int ypos)</td></tr>
- <tr class="separator:a099828631625d5b66bb8789510d849d7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0181dcfef7179657b7401b12ee85ac5a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Goto.html#a0181dcfef7179657b7401b12ee85ac5a">Goto</a> (const <a class="el" href="classdoor_1_1Goto.html">Goto</a> &)=default</td></tr>
- <tr class="separator:a0181dcfef7179657b7401b12ee85ac5a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab35b0dd6bfe0594cb99fb65fec4dbf24"><td class="memItemLeft" align="right" valign="top"><a id="ab35b0dd6bfe0594cb99fb65fec4dbf24"></a>
- void </td><td class="memItemRight" valign="bottom"><b>set</b> (int xpos, int ypos)</td></tr>
- <tr class="separator:ab35b0dd6bfe0594cb99fb65fec4dbf24"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
- Private Attributes</h2></td></tr>
- <tr class="memitem:ad7ec5ef329c85fd0be0110f628a9106a"><td class="memItemLeft" align="right" valign="top"><a id="ad7ec5ef329c85fd0be0110f628a9106a"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Goto.html#ad7ec5ef329c85fd0be0110f628a9106a">x</a></td></tr>
- <tr class="memdesc:ad7ec5ef329c85fd0be0110f628a9106a"><td class="mdescLeft"> </td><td class="mdescRight">X-Position. <br /></td></tr>
- <tr class="separator:ad7ec5ef329c85fd0be0110f628a9106a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2ef887a839d1542dc2b7bbcbc4cd0477"><td class="memItemLeft" align="right" valign="top"><a id="a2ef887a839d1542dc2b7bbcbc4cd0477"></a>
- int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Goto.html#a2ef887a839d1542dc2b7bbcbc4cd0477">y</a></td></tr>
- <tr class="memdesc:a2ef887a839d1542dc2b7bbcbc4cd0477"><td class="mdescLeft"> </td><td class="mdescRight">Y-Position. <br /></td></tr>
- <tr class="separator:a2ef887a839d1542dc2b7bbcbc4cd0477"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
- Friends</h2></td></tr>
- <tr class="memitem:a21a0915b21cc762dc148f7ba6797229b"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Goto.html#a21a0915b21cc762dc148f7ba6797229b">operator<<</a> (std::ostream &os, const <a class="el" href="classdoor_1_1Goto.html">Goto</a> &g)</td></tr>
- <tr class="separator:a21a0915b21cc762dc148f7ba6797229b"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>ANSI <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> X, Y position. </p>
- <p>This handles outputting ANSI codes to position the cursor on the screen. </p>
- <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="menu-example_8cpp-example.html#_a15">menu-example.cpp</a>.</dd>
- </dl>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a099828631625d5b66bb8789510d849d7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a099828631625d5b66bb8789510d849d7">◆ </a></span>Goto() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">door::Goto::Goto </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>xpos</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>ypos</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Construct a new <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a>:: <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> object</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">xpos</td><td></td></tr>
- <tr><td class="paramname">ypos</td><td></td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a0181dcfef7179657b7401b12ee85ac5a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0181dcfef7179657b7401b12ee85ac5a">◆ </a></span>Goto() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">door::Goto::Goto </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Goto.html">Goto</a> & </td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">default</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Default <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> constructor copier </p>
- </div>
- </div>
- <h2 class="groupheader">Friends And Related Function Documentation</h2>
- <a id="a21a0915b21cc762dc148f7ba6797229b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a21a0915b21cc762dc148f7ba6797229b">◆ </a></span>operator<<</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">std::ostream& operator<< </td>
- <td>(</td>
- <td class="paramtype">std::ostream & </td>
- <td class="paramname"><em>os</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="classdoor_1_1Goto.html">Goto</a> & </td>
- <td class="paramname"><em>g</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">friend</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Output the ANSI codes to position the cursor to the given y,x position.</p>
- <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000002">Todo:</a></b></dt><dd><p class="startdd">Optimize the ANSI goto string output. </p>
- <p class="enddd">Update the <a class="el" href="classdoor_1_1Door.html">Door</a> object so it know where the cursor is positioned.</p>
- </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">os</td><td>std::ostream </td></tr>
- <tr><td class="paramname">g</td><td>const <a class="el" href="classdoor_1_1Goto.html" title="ANSI Goto X, Y position.">Goto</a> </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>std::ostream& </dd></dl>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following files:<ul>
- <li><a class="el" href="door_8h_source.html">door.h</a></li>
- <li><a class="el" href="door_8cpp.html">door.cpp</a></li>
- </ul>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.17
- </small></address>
- </body>
- </html>
|