classdoor_1_1Render.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Bugz Door Project: door::Render Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">Bugz Door Project
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.17 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. <div id="nav-path" class="navpath">
  61. <ul>
  62. <li class="navelem"><a class="el" href="namespacedoor.html">door</a></li><li class="navelem"><a class="el" href="classdoor_1_1Render.html">Render</a></li> </ul>
  63. </div>
  64. </div><!-- top -->
  65. <div class="header">
  66. <div class="summary">
  67. <a href="#pub-methods">Public Member Functions</a> &#124;
  68. <a href="#pub-attribs">Public Attributes</a> &#124;
  69. <a href="#pri-attribs">Private Attributes</a> &#124;
  70. <a href="classdoor_1_1Render-members.html">List of all members</a> </div>
  71. <div class="headertitle">
  72. <div class="title">door::Render Class Reference</div> </div>
  73. </div><!--header-->
  74. <div class="contents">
  75. <p>Rendering a string with <a class="el" href="classdoor_1_1ANSIColor.html" title="Foreground, Background and Attributes.">ANSIColor</a>.
  76. <a href="classdoor_1_1Render.html#details">More...</a></p>
  77. <p><code>#include &lt;<a class="el" href="door_8h_source.html">door.h</a>&gt;</code></p>
  78. <table class="memberdecls">
  79. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  80. Public Member Functions</h2></td></tr>
  81. <tr class="memitem:a6540ecf2f2f4a3e9eaeb47cc9c7daa00"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Render.html#a6540ecf2f2f4a3e9eaeb47cc9c7daa00">Render</a> (const std::string txt)</td></tr>
  82. <tr class="separator:a6540ecf2f2f4a3e9eaeb47cc9c7daa00"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:a9c32f938c06d5d6b87d238ba6072324e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Render.html#a9c32f938c06d5d6b87d238ba6072324e">append</a> (<a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a> color, int len=1)</td></tr>
  84. <tr class="separator:a9c32f938c06d5d6b87d238ba6072324e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:ae83a23641dde4dff29b5214ea1921f3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Render.html#ae83a23641dde4dff29b5214ea1921f3b">output</a> (std::ostream &amp;os)</td></tr>
  86. <tr class="separator:ae83a23641dde4dff29b5214ea1921f3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. </table><table class="memberdecls">
  88. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  89. Public Attributes</h2></td></tr>
  90. <tr class="memitem:a887fd73649a7e63257cc695e2756bc66"><td class="memItemLeft" align="right" valign="top"><a id="a887fd73649a7e63257cc695e2756bc66"></a>
  91. std::vector&lt; <a class="el" href="classdoor_1_1ColorOutput.html">ColorOutput</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Render.html#a887fd73649a7e63257cc695e2756bc66">outputs</a></td></tr>
  92. <tr class="memdesc:a887fd73649a7e63257cc695e2756bc66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vector of <a class="el" href="classdoor_1_1ColorOutput.html" title="This holds an ANSIColor and text position + length.">ColorOutput</a> object. <br /></td></tr>
  93. <tr class="separator:a887fd73649a7e63257cc695e2756bc66"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. </table><table class="memberdecls">
  95. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  96. Private Attributes</h2></td></tr>
  97. <tr class="memitem:afc2c16653f0241b3014911fa3604524e"><td class="memItemLeft" align="right" valign="top"><a id="afc2c16653f0241b3014911fa3604524e"></a>
  98. std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdoor_1_1Render.html#afc2c16653f0241b3014911fa3604524e">text</a></td></tr>
  99. <tr class="memdesc:afc2c16653f0241b3014911fa3604524e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Complete text to be rendered. <br /></td></tr>
  100. <tr class="separator:afc2c16653f0241b3014911fa3604524e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. </table>
  102. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  103. <div class="textblock"><p>Rendering a string with <a class="el" href="classdoor_1_1ANSIColor.html" title="Foreground, Background and Attributes.">ANSIColor</a>. </p>
  104. <p>This holds the string, and a vector that contains <a class="el" href="classdoor_1_1ColorOutput.html" title="This holds an ANSIColor and text position + length.">ColorOutput</a> parts.</p>
  105. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classdoor_1_1Render.html#ae83a23641dde4dff29b5214ea1921f3b">Render::output()</a> </dd></dl>
  106. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  107. <a id="a6540ecf2f2f4a3e9eaeb47cc9c7daa00"></a>
  108. <h2 class="memtitle"><span class="permalink"><a href="#a6540ecf2f2f4a3e9eaeb47cc9c7daa00">&#9670;&nbsp;</a></span>Render()</h2>
  109. <div class="memitem">
  110. <div class="memproto">
  111. <table class="memname">
  112. <tr>
  113. <td class="memname">door::Render::Render </td>
  114. <td>(</td>
  115. <td class="paramtype">const std::string&#160;</td>
  116. <td class="paramname"><em>txt</em></td><td>)</td>
  117. <td></td>
  118. </tr>
  119. </table>
  120. </div><div class="memdoc">
  121. <p>Construct a new <a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a>:: <a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> object</p>
  122. <p><a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a> consists of constant text, and vector of <a class="el" href="classdoor_1_1ColorOutput.html" title="This holds an ANSIColor and text position + length.">ColorOutput</a></p>
  123. <dl class="params"><dt>Parameters</dt><dd>
  124. <table class="params">
  125. <tr><td class="paramname">txt</td><td>Text </td></tr>
  126. </table>
  127. </dd>
  128. </dl>
  129. </div>
  130. </div>
  131. <h2 class="groupheader">Member Function Documentation</h2>
  132. <a id="a9c32f938c06d5d6b87d238ba6072324e"></a>
  133. <h2 class="memtitle"><span class="permalink"><a href="#a9c32f938c06d5d6b87d238ba6072324e">&#9670;&nbsp;</a></span>append()</h2>
  134. <div class="memitem">
  135. <div class="memproto">
  136. <table class="memname">
  137. <tr>
  138. <td class="memname">void door::Render::append </td>
  139. <td>(</td>
  140. <td class="paramtype"><a class="el" href="classdoor_1_1ANSIColor.html">ANSIColor</a>&#160;</td>
  141. <td class="paramname"><em>color</em>, </td>
  142. </tr>
  143. <tr>
  144. <td class="paramkey"></td>
  145. <td></td>
  146. <td class="paramtype">int&#160;</td>
  147. <td class="paramname"><em>len</em> = <code>1</code>&#160;</td>
  148. </tr>
  149. <tr>
  150. <td></td>
  151. <td>)</td>
  152. <td></td><td></td>
  153. </tr>
  154. </table>
  155. </div><div class="memdoc">
  156. <p>Create render output.</p>
  157. <p>Call this for each section you want to colorize.</p>
  158. <dl class="params"><dt>Parameters</dt><dd>
  159. <table class="params">
  160. <tr><td class="paramname">color</td><td></td></tr>
  161. <tr><td class="paramname">len</td><td></td></tr>
  162. </table>
  163. </dd>
  164. </dl>
  165. </div>
  166. </div>
  167. <a id="ae83a23641dde4dff29b5214ea1921f3b"></a>
  168. <h2 class="memtitle"><span class="permalink"><a href="#ae83a23641dde4dff29b5214ea1921f3b">&#9670;&nbsp;</a></span>output()</h2>
  169. <div class="memitem">
  170. <div class="memproto">
  171. <table class="memname">
  172. <tr>
  173. <td class="memname">void door::Render::output </td>
  174. <td>(</td>
  175. <td class="paramtype">std::ostream &amp;&#160;</td>
  176. <td class="paramname"><em>os</em></td><td>)</td>
  177. <td></td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Output the <a class="el" href="classdoor_1_1Render.html" title="Rendering a string with ANSIColor.">Render</a>.</p>
  182. <p>This consists of going through the vector, getting the fragment (from pos and len), and outputting the color and fragment.</p>
  183. <dl class="params"><dt>Parameters</dt><dd>
  184. <table class="params">
  185. <tr><td class="paramname">os</td><td></td></tr>
  186. </table>
  187. </dd>
  188. </dl>
  189. </div>
  190. </div>
  191. <hr/>The documentation for this class was generated from the following files:<ul>
  192. <li><a class="el" href="door_8h_source.html">door.h</a></li>
  193. <li><a class="el" href="door_8cpp.html">door.cpp</a></li>
  194. </ul>
  195. </div><!-- contents -->
  196. <!-- start footer part -->
  197. <hr class="footer"/><address class="footer"><small>
  198. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  199. <img class="footer" src="doxygen.png" alt="doxygen"/>
  200. </a> 1.8.17
  201. </small></address>
  202. </body>
  203. </html>