296 lines
51 KiB
HTML
296 lines
51 KiB
HTML
<!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.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>libctru: include/3ds/console.h Source File</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">libctru
|
|
 <span id="projectnumber">v2.4.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<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','.html');
|
|
/* @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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_d475325f6a9fe3bfc3a495c72a9e475e.html">3ds</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">console.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="console_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * @file console.h</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * @brief 3ds stdio support.</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Provides stdio integration for printing to the 3DS screen as well as debug print</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * functionality provided by stderr.</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * General usage is to initialize the console by:</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * @code</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * consoleDemoInit()</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * @endcode</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * or to customize the console usage by:</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * @code</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * consoleInit()</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * @endcode</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="types_8h.html">3ds/types.h</a>></span></div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="gfx_8h.html">3ds/gfx.h</a>></span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#define CONSOLE_ESC(x) "\x1b["</span> #x</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#define CONSOLE_RESET CONSOLE_ESC(0m)</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#define CONSOLE_BLACK CONSOLE_ESC(30m)</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#define CONSOLE_RED CONSOLE_ESC(31;1m)</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#define CONSOLE_GREEN CONSOLE_ESC(32;1m)</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#define CONSOLE_YELLOW CONSOLE_ESC(33;1m)</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#define CONSOLE_BLUE CONSOLE_ESC(34;1m)</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#define CONSOLE_MAGENTA CONSOLE_ESC(35;1m)</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#define CONSOLE_CYAN CONSOLE_ESC(36;1m)</span></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#define CONSOLE_WHITE CONSOLE_ESC(37;1m)</span></div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">/// A callback for printing a character.</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="console_8h.html#a26c9115f671528f3718cf4d9663e7631"> 38</a></span> <span class="comment"></span><span class="keyword">typedef</span> bool(*<a class="code" href="console_8h.html#a26c9115f671528f3718cf4d9663e7631">ConsolePrint</a>)(<span class="keywordtype">void</span>* con, <span class="keywordtype">int</span> c);</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/// A font struct for the console.</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structConsoleFont.html"> 41</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structConsoleFont.html">ConsoleFont</a></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a6e08b67a31abcebc4e7c9895c5870c3f"> 43</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a>* <a class="code" href="structConsoleFont.html#a6e08b67a31abcebc4e7c9895c5870c3f">gfx</a>; <span class="comment">///< A pointer to the font graphics</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444"> 44</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444">asciiOffset</a>; <span class="comment">///< Offset to the first valid character in the font table</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d"> 45</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d">numChars</a>; <span class="comment">///< Number of characters in the font graphics</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }<a class="code" href="structConsoleFont.html">ConsoleFont</a>;</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment"> * @brief Console structure used to store the state of a console render context.</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment"> * Default values from consoleGetDefault();</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment"> * @code</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment"> * PrintConsole defaultConsole =</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"> * {</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment"> * //Font:</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment"> * {</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="comment"> * (u8*)default_font_bin, //font gfx</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"> * 0, //first ascii character in the set</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> * 128, //number of characters in the font set</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> * },</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> * 0,0, //cursorX cursorY</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> * 0,0, //prevcursorX prevcursorY</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> * 40, //console width</span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> * 30, //console height</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"> * 0, //window x</span></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> * 0, //window y</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> * 32, //window width</span></div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> * 24, //window height</span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> * 3, //tab size</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> * 0, //font character offset</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> * 0, //print callback</span></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> * false //console initialized</span></div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> * };</span></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> * @endcode</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structPrintConsole.html"> 76</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structPrintConsole.html">PrintConsole</a></div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> {</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358"> 78</a></span>  <a class="code" href="structConsoleFont.html">ConsoleFont</a> <a class="code" href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358">font</a>; <span class="comment">///< Font of the console</span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a9b70d87ea405c8761ebca625001c761e"> 80</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> *<a class="code" href="structPrintConsole.html#a9b70d87ea405c8761ebca625001c761e">frameBuffer</a>; <span class="comment">///< Framebuffer address</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  </div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f"> 82</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f">cursorX</a>; <span class="comment">///< Current X location of the cursor (as a tile offset by default)</span></div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9"> 83</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9">cursorY</a>; <span class="comment">///< Current Y location of the cursor (as a tile offset by default)</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02"> 85</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02">prevCursorX</a>; <span class="comment">///< Internal state</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245"> 86</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245">prevCursorY</a>; <span class="comment">///< Internal state</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7"> 88</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7">consoleWidth</a>; <span class="comment">///< Width of the console hardware layer in characters</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a"> 89</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a">consoleHeight</a>; <span class="comment">///< Height of the console hardware layer in characters</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  </div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd"> 91</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd">windowX</a>; <span class="comment">///< Window X location in characters (not implemented)</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de"> 92</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de">windowY</a>; <span class="comment">///< Window Y location in characters (not implemented)</span></div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221"> 93</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221">windowWidth</a>; <span class="comment">///< Window width in characters (not implemented)</span></div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b"> 94</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b">windowHeight</a>; <span class="comment">///< Window height in characters (not implemented)</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782"> 96</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782">tabSize</a>; <span class="comment">///< Size of a tab</span></div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ad329e4a7372f51e7b64cceca3be8d2df"> 97</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structPrintConsole.html#ad329e4a7372f51e7b64cceca3be8d2df">fg</a>; <span class="comment">///< Foreground color</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a403a10a66b1a1ff4a7c8ad78df66ac02"> 98</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structPrintConsole.html#a403a10a66b1a1ff4a7c8ad78df66ac02">bg</a>; <span class="comment">///< Background color</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538"> 99</a></span>  <span class="keywordtype">int</span> <a class="code" href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538">flags</a>; <span class="comment">///< Reverse/bright flags</span></div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structPrintConsole.html#ac2a6a9e9c3adda6c2e6ac11e4ebb7d14"> 101</a></span>  <a class="code" href="console_8h.html#a26c9115f671528f3718cf4d9663e7631">ConsolePrint</a> <a class="code" href="structPrintConsole.html#ac2a6a9e9c3adda6c2e6ac11e4ebb7d14">PrintChar</a>; <span class="comment">///< Callback for printing a character. Should return true if it has handled rendering the graphics (else the print engine will attempt to render via tiles).</span></div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705"> 103</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705">consoleInitialised</a>; <span class="comment">///< True if the console is initialized</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> }<a class="code" href="structPrintConsole.html">PrintConsole</a>;</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="console_8h.html#a41fe600f48a6367d8807559efec50c23"> 106</a></span> <span class="preprocessor">#define CONSOLE_COLOR_BOLD (1<<0) </span><span class="comment">///< Bold text</span></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="console_8h.html#a2b150f5112f253251b71c0e20691b8f6"> 107</a></span> <span class="preprocessor">#define CONSOLE_COLOR_FAINT (1<<1) </span><span class="comment">///< Faint text</span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="console_8h.html#ab42f3fc96a41cf751ec6971091495d77"> 108</a></span> <span class="preprocessor">#define CONSOLE_ITALIC (1<<2) </span><span class="comment">///< Italic text</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="console_8h.html#a3d8177cdd85a63ef7836efe4e00871e0"> 109</a></span> <span class="preprocessor">#define CONSOLE_UNDERLINE (1<<3) </span><span class="comment">///< Underlined text</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="console_8h.html#adb7259b545cc753eca543d28074c4389"> 110</a></span> <span class="preprocessor">#define CONSOLE_BLINK_SLOW (1<<4) </span><span class="comment">///< Slow blinking text</span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="console_8h.html#a7afdfddea655f10c609d05b686ce36f9"> 111</a></span> <span class="preprocessor">#define CONSOLE_BLINK_FAST (1<<5) </span><span class="comment">///< Fast blinking text</span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="console_8h.html#a0c2c4bcacad671310f6a2e19a9dd920e"> 112</a></span> <span class="preprocessor">#define CONSOLE_COLOR_REVERSE (1<<6) </span><span class="comment">///< Reversed color text</span></div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="console_8h.html#a5f2b14ddb935b78bd666e5ec560d39c1"> 113</a></span> <span class="preprocessor">#define CONSOLE_CONCEAL (1<<7) </span><span class="comment">///< Concealed text</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="console_8h.html#a5ff7f67fc2b49604335c850701a49404"> 114</a></span> <span class="preprocessor">#define CONSOLE_CROSSED_OUT (1<<8) </span><span class="comment">///< Crossed out text</span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="console_8h.html#aae0fa7e2d9d00e9a9032cb27b3ea2b89"> 115</a></span> <span class="preprocessor">#define CONSOLE_FG_CUSTOM (1<<9) </span><span class="comment">///< Foreground custom color</span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="console_8h.html#a2bc490632f54b282103853fa573a1d0a"> 116</a></span> <span class="preprocessor">#define CONSOLE_BG_CUSTOM (1<<10) </span><span class="comment">///< Background custom color</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">/// Console debug devices supported by libnds.</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28"> 119</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849"> 120</a></span>  <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849">debugDevice_NULL</a>, <span class="comment">///< Swallows prints to stderr</span></div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52"> 121</a></span>  <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a>, <span class="comment">///< Outputs stderr debug statements using svcOutputDebugString, which can then be captured by interactive debuggers</span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7"> 122</a></span>  <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7">debugDevice_CONSOLE</a>, <span class="comment">///< Directs stderr debug statements to 3DS console window</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  debugDevice_3DMOO = <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a>,</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> } <a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a>;</div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> * @brief Loads the font into the console.</span></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment"> * @param console Pointer to the console to update, if NULL it will update the current console.</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"> * @param font The font to load.</span></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5"> 131</a></span> <span class="keywordtype">void</span> <a class="code" href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5">consoleSetFont</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console, <a class="code" href="structConsoleFont.html">ConsoleFont</a>* font);</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> * @brief Sets the print window.</span></div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> * @param console Console to set, if NULL it will set the current console window.</span></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> * @param x X location of the window.</span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="comment"> * @param y Y location of the window.</span></div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"> * @param width Width of the window.</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment"> * @param height Height of the window.</span></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563"> 141</a></span> <span class="keywordtype">void</span> <a class="code" href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563">consoleSetWindow</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"> * @brief Gets a pointer to the console with the default values.</span></div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment"> * This should only be used when using a single console or without changing the console that is returned, otherwise use consoleInit().</span></div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> * @return A pointer to the console with the default values.</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="console_8h.html#a42372b48c57aeb95774e13254104def8"> 148</a></span> <a class="code" href="structPrintConsole.html">PrintConsole</a>* <a class="code" href="console_8h.html#a42372b48c57aeb95774e13254104def8">consoleGetDefault</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment"> * @brief Make the specified console the render target.</span></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> * @param console A pointer to the console struct (must have been initialized with consoleInit(PrintConsole* console)).</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> * @return A pointer to the previous console.</span></div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="console_8h.html#ac2f9e3b09fe2b65e02598ed556d9e10f"> 155</a></span> <a class="code" href="structPrintConsole.html">PrintConsole</a> *<a class="code" href="console_8h.html#ac2f9e3b09fe2b65e02598ed556d9e10f">consoleSelect</a>(<a class="code" href="structPrintConsole.html">PrintConsole</a>* console);</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"> * @brief Initialise the console.</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"> * @param screen The screen to use for the console.</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"> * @param console A pointer to the console data to initialize (if it's NULL, the default console will be used).</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment"> * @return A pointer to the current console.</span></div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="console_8h.html#a8e014e84f81ff901ca62d7669a8c8de8"> 163</a></span> <a class="code" href="structPrintConsole.html">PrintConsole</a>* <a class="code" href="console_8h.html#a8e014e84f81ff901ca62d7669a8c8de8">consoleInit</a>(<a class="code" href="gfx_8h.html#a356112d87f5cf6bbba3ea3b6b010e09c">gfxScreen_t</a> screen, <a class="code" href="structPrintConsole.html">PrintConsole</a>* console);</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> * @brief Initializes debug console output on stderr to the specified device.</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment"> * @param device The debug device (or devices) to output debug print statements to.</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2"> 169</a></span> <span class="keywordtype">void</span> <a class="code" href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2">consoleDebugInit</a>(<a class="code" href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a> device);</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment">/// Clears the screen by using iprintf("\x1b[2J");</span></div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34"> 172</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34">consoleClear</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  </div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> }</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="ttc" id="aconsole_8h_html_a26c9115f671528f3718cf4d9663e7631"><div class="ttname"><a href="console_8h.html#a26c9115f671528f3718cf4d9663e7631">ConsolePrint</a></div><div class="ttdeci">bool(* ConsolePrint)(void *con, int c)</div><div class="ttdoc">A callback for printing a character.</div><div class="ttdef"><b>Definition:</b> console.h:38</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_a42372b48c57aeb95774e13254104def8"><div class="ttname"><a href="console_8h.html#a42372b48c57aeb95774e13254104def8">consoleGetDefault</a></div><div class="ttdeci">PrintConsole * consoleGetDefault(void)</div><div class="ttdoc">Gets a pointer to the console with the default values.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_a4a65cfe4467b2059c6b70e15d861b563"><div class="ttname"><a href="console_8h.html#a4a65cfe4467b2059c6b70e15d861b563">consoleSetWindow</a></div><div class="ttdeci">void consoleSetWindow(PrintConsole *console, int x, int y, int width, int height)</div><div class="ttdoc">Sets the print window.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_a4e271d69c07c67efe877502fe17c44e5"><div class="ttname"><a href="console_8h.html#a4e271d69c07c67efe877502fe17c44e5">consoleSetFont</a></div><div class="ttdeci">void consoleSetFont(PrintConsole *console, ConsoleFont *font)</div><div class="ttdoc">Loads the font into the console.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_a8e014e84f81ff901ca62d7669a8c8de8"><div class="ttname"><a href="console_8h.html#a8e014e84f81ff901ca62d7669a8c8de8">consoleInit</a></div><div class="ttdeci">PrintConsole * consoleInit(gfxScreen_t screen, PrintConsole *console)</div><div class="ttdoc">Initialise the console.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28">debugDevice</a></div><div class="ttdeci">debugDevice</div><div class="ttdoc">Console debug devices supported by libnds.</div><div class="ttdef"><b>Definition:</b> console.h:119</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28a795dfb32f1905816a543c95e5ed17b52">debugDevice_SVC</a></div><div class="ttdeci">@ debugDevice_SVC</div><div class="ttdoc">Outputs stderr debug statements using svcOutputDebugString, which can then be captured by interactive...</div><div class="ttdef"><b>Definition:</b> console.h:121</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28ae5f4a5fe20d1b01a2e211cfe394325d7">debugDevice_CONSOLE</a></div><div class="ttdeci">@ debugDevice_CONSOLE</div><div class="ttdoc">Directs stderr debug statements to 3DS console window.</div><div class="ttdef"><b>Definition:</b> console.h:122</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849"><div class="ttname"><a href="console_8h.html#ab80a9da3fec1fbf425035eeaa9b51c28af3ea53eb5c0a68a80dbeb1c0c31b6849">debugDevice_NULL</a></div><div class="ttdeci">@ debugDevice_NULL</div><div class="ttdoc">Swallows prints to stderr.</div><div class="ttdef"><b>Definition:</b> console.h:120</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ac2f9e3b09fe2b65e02598ed556d9e10f"><div class="ttname"><a href="console_8h.html#ac2f9e3b09fe2b65e02598ed556d9e10f">consoleSelect</a></div><div class="ttdeci">PrintConsole * consoleSelect(PrintConsole *console)</div><div class="ttdoc">Make the specified console the render target.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ac4fe073b8a8251a5216b66eef8788da2"><div class="ttname"><a href="console_8h.html#ac4fe073b8a8251a5216b66eef8788da2">consoleDebugInit</a></div><div class="ttdeci">void consoleDebugInit(debugDevice device)</div><div class="ttdoc">Initializes debug console output on stderr to the specified device.</div></div>
|
|
<div class="ttc" id="aconsole_8h_html_ac62c34a3fa2a6403c690dd80022b3e34"><div class="ttname"><a href="console_8h.html#ac62c34a3fa2a6403c690dd80022b3e34">consoleClear</a></div><div class="ttdeci">void consoleClear(void)</div><div class="ttdoc">Clears the screen by using iprintf("\x1b[2J");.</div></div>
|
|
<div class="ttc" id="agfx_8h_html"><div class="ttname"><a href="gfx_8h.html">gfx.h</a></div><div class="ttdoc">Simple framebuffer API.</div></div>
|
|
<div class="ttc" id="agfx_8h_html_a356112d87f5cf6bbba3ea3b6b010e09c"><div class="ttname"><a href="gfx_8h.html#a356112d87f5cf6bbba3ea3b6b010e09c">gfxScreen_t</a></div><div class="ttdeci">gfxScreen_t</div><div class="ttdoc">Screen IDs.</div><div class="ttdef"><b>Definition:</b> gfx.h:25</div></div>
|
|
<div class="ttc" id="astructConsoleFont_html"><div class="ttname"><a href="structConsoleFont.html">ConsoleFont</a></div><div class="ttdoc">A font struct for the console.</div><div class="ttdef"><b>Definition:</b> console.h:42</div></div>
|
|
<div class="ttc" id="astructConsoleFont_html_a676b4b45082d34b8bfbd21d20e0a6444"><div class="ttname"><a href="structConsoleFont.html#a676b4b45082d34b8bfbd21d20e0a6444">ConsoleFont::asciiOffset</a></div><div class="ttdeci">u16 asciiOffset</div><div class="ttdoc">Offset to the first valid character in the font table.</div><div class="ttdef"><b>Definition:</b> console.h:44</div></div>
|
|
<div class="ttc" id="astructConsoleFont_html_a6e08b67a31abcebc4e7c9895c5870c3f"><div class="ttname"><a href="structConsoleFont.html#a6e08b67a31abcebc4e7c9895c5870c3f">ConsoleFont::gfx</a></div><div class="ttdeci">u8 * gfx</div><div class="ttdoc">A pointer to the font graphics.</div><div class="ttdef"><b>Definition:</b> console.h:43</div></div>
|
|
<div class="ttc" id="astructConsoleFont_html_a741f70973f2dd71acdd7153ef3f7336d"><div class="ttname"><a href="structConsoleFont.html#a741f70973f2dd71acdd7153ef3f7336d">ConsoleFont::numChars</a></div><div class="ttdeci">u16 numChars</div><div class="ttdoc">Number of characters in the font graphics.</div><div class="ttdef"><b>Definition:</b> console.h:45</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html"><div class="ttname"><a href="structPrintConsole.html">PrintConsole</a></div><div class="ttdoc">Console structure used to store the state of a console render context.</div><div class="ttdef"><b>Definition:</b> console.h:77</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a0b3c99b23f2b228279c0b080d4bbf73f"><div class="ttname"><a href="structPrintConsole.html#a0b3c99b23f2b228279c0b080d4bbf73f">PrintConsole::cursorX</a></div><div class="ttdeci">int cursorX</div><div class="ttdoc">Current X location of the cursor (as a tile offset by default)</div><div class="ttdef"><b>Definition:</b> console.h:82</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a12228047de6d55e25c7bed9427bfeda7"><div class="ttname"><a href="structPrintConsole.html#a12228047de6d55e25c7bed9427bfeda7">PrintConsole::consoleWidth</a></div><div class="ttdeci">int consoleWidth</div><div class="ttdoc">Width of the console hardware layer in characters.</div><div class="ttdef"><b>Definition:</b> console.h:88</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a30ec62fecd8dd432fa16d17a25744538"><div class="ttname"><a href="structPrintConsole.html#a30ec62fecd8dd432fa16d17a25744538">PrintConsole::flags</a></div><div class="ttdeci">int flags</div><div class="ttdoc">Reverse/bright flags.</div><div class="ttdef"><b>Definition:</b> console.h:99</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a3238a0f3691fd3742db45df2bda726cd"><div class="ttname"><a href="structPrintConsole.html#a3238a0f3691fd3742db45df2bda726cd">PrintConsole::windowX</a></div><div class="ttdeci">int windowX</div><div class="ttdoc">Window X location in characters (not implemented)</div><div class="ttdef"><b>Definition:</b> console.h:91</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a403a10a66b1a1ff4a7c8ad78df66ac02"><div class="ttname"><a href="structPrintConsole.html#a403a10a66b1a1ff4a7c8ad78df66ac02">PrintConsole::bg</a></div><div class="ttdeci">u16 bg</div><div class="ttdoc">Background color.</div><div class="ttdef"><b>Definition:</b> console.h:98</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a4bd05d4de8d7869489891cbaee90c782"><div class="ttname"><a href="structPrintConsole.html#a4bd05d4de8d7869489891cbaee90c782">PrintConsole::tabSize</a></div><div class="ttdeci">int tabSize</div><div class="ttdoc">Size of a tab.</div><div class="ttdef"><b>Definition:</b> console.h:96</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a5170137741dc034414b516aebf6716d9"><div class="ttname"><a href="structPrintConsole.html#a5170137741dc034414b516aebf6716d9">PrintConsole::cursorY</a></div><div class="ttdeci">int cursorY</div><div class="ttdoc">Current Y location of the cursor (as a tile offset by default)</div><div class="ttdef"><b>Definition:</b> console.h:83</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a5597cf20da49284bcb2ccadfbd095c02"><div class="ttname"><a href="structPrintConsole.html#a5597cf20da49284bcb2ccadfbd095c02">PrintConsole::prevCursorX</a></div><div class="ttdeci">int prevCursorX</div><div class="ttdoc">Internal state.</div><div class="ttdef"><b>Definition:</b> console.h:85</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a643913cb7f20767b07ecf1652b788245"><div class="ttname"><a href="structPrintConsole.html#a643913cb7f20767b07ecf1652b788245">PrintConsole::prevCursorY</a></div><div class="ttdeci">int prevCursorY</div><div class="ttdoc">Internal state.</div><div class="ttdef"><b>Definition:</b> console.h:86</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a6caefb88745fe180a9d59096d40b052a"><div class="ttname"><a href="structPrintConsole.html#a6caefb88745fe180a9d59096d40b052a">PrintConsole::consoleHeight</a></div><div class="ttdeci">int consoleHeight</div><div class="ttdoc">Height of the console hardware layer in characters.</div><div class="ttdef"><b>Definition:</b> console.h:89</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a7eaeb319aa6626250a18d52da7b57221"><div class="ttname"><a href="structPrintConsole.html#a7eaeb319aa6626250a18d52da7b57221">PrintConsole::windowWidth</a></div><div class="ttdeci">int windowWidth</div><div class="ttdoc">Window width in characters (not implemented)</div><div class="ttdef"><b>Definition:</b> console.h:93</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a97fa07262bd5a64ba5b5174e01e7128b"><div class="ttname"><a href="structPrintConsole.html#a97fa07262bd5a64ba5b5174e01e7128b">PrintConsole::windowHeight</a></div><div class="ttdeci">int windowHeight</div><div class="ttdoc">Window height in characters (not implemented)</div><div class="ttdef"><b>Definition:</b> console.h:94</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_a9b70d87ea405c8761ebca625001c761e"><div class="ttname"><a href="structPrintConsole.html#a9b70d87ea405c8761ebca625001c761e">PrintConsole::frameBuffer</a></div><div class="ttdeci">u16 * frameBuffer</div><div class="ttdoc">Framebuffer address.</div><div class="ttdef"><b>Definition:</b> console.h:80</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_abeb3c904af0e353bec10603044a4f705"><div class="ttname"><a href="structPrintConsole.html#abeb3c904af0e353bec10603044a4f705">PrintConsole::consoleInitialised</a></div><div class="ttdeci">bool consoleInitialised</div><div class="ttdoc">True if the console is initialized.</div><div class="ttdef"><b>Definition:</b> console.h:103</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_ac2a6a9e9c3adda6c2e6ac11e4ebb7d14"><div class="ttname"><a href="structPrintConsole.html#ac2a6a9e9c3adda6c2e6ac11e4ebb7d14">PrintConsole::PrintChar</a></div><div class="ttdeci">ConsolePrint PrintChar</div><div class="ttdoc">Callback for printing a character. Should return true if it has handled rendering the graphics (else ...</div><div class="ttdef"><b>Definition:</b> console.h:101</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_ad329e4a7372f51e7b64cceca3be8d2df"><div class="ttname"><a href="structPrintConsole.html#ad329e4a7372f51e7b64cceca3be8d2df">PrintConsole::fg</a></div><div class="ttdeci">u16 fg</div><div class="ttdoc">Foreground color.</div><div class="ttdef"><b>Definition:</b> console.h:97</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_ad717d7741f526d595d3103d5a4e28358"><div class="ttname"><a href="structPrintConsole.html#ad717d7741f526d595d3103d5a4e28358">PrintConsole::font</a></div><div class="ttdeci">ConsoleFont font</div><div class="ttdoc">Font of the console.</div><div class="ttdef"><b>Definition:</b> console.h:78</div></div>
|
|
<div class="ttc" id="astructPrintConsole_html_af541d301e1ee4f1a8aaecca9f78d40de"><div class="ttname"><a href="structPrintConsole.html#af541d301e1ee4f1a8aaecca9f78d40de">PrintConsole::windowY</a></div><div class="ttdeci">int windowY</div><div class="ttdoc">Window Y location in characters (not implemented)</div><div class="ttdef"><b>Definition:</b> console.h:92</div></div>
|
|
<div class="ttc" id="atypes_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div><div class="ttdoc">Various system types.</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a92c50087ca0e64fa93fc59402c55f8ca"><div class="ttname"><a href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a></div><div class="ttdeci">uint8_t u8</div><div class="ttdoc">would be nice if newlib had this already</div><div class="ttdef"><b>Definition:</b> types.h:21</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ace9d960e74685e2cd84b36132dbbf8aa"><div class="ttname"><a href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a></div><div class="ttdeci">uint16_t u16</div><div class="ttdoc">16-bit unsigned integer</div><div class="ttdef"><b>Definition:</b> types.h:22</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|