1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 22 span.virtual_style 23 { 24 font-size : 8pt; 25 color : white; 26 font-weight : bold; 27 background : #0a0; 28 border-left : solid 1px #0f0; 29 border-top : solid 1px #0f0; 30 border-right : solid 1px #060; 31 border-bottom : solid 1px #060; 32 padding-left : 2px; 33 padding-right : 2px; 34 } 35 36 span.protected_style 37 { 38 font-size : 8pt; 39 color : white; 40 font-weight : bold; 41 background : #444; 42 border-left : solid 1px #ccc; 43 border-top : solid 1px #ccc; 44 border-right : solid 1px #222; 45 border-bottom : solid 1px #222; 46 padding-left : 2px; 47 padding-right : 2px; 48 } 49 --></style> 50 <title>nn::dbg::CTR::DirectPrint</title> 51 </head> 52 <body> 53 <h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/dbg/Overview.html">dbg</a>::<a href="../../../../nn/dbg/CTR/Overview.html">CTR</a>::DirectPrint</CODE> Class</h1> 54 <div class="section"> 55 <b>Header file: </b>nn/dbg.h</div> 56 <h2>Syntax</h2> 57 <div class="section"> 58 <pre class="definition">class DirectPrint</pre> 59 </div> 60 <h2>Description</h2> 61 <div class="section"> 62 <p>Class for directly writing characters to the display buffer using the CPU.</p><p>・ Character size is fixed to 6x8.<br /> ・ Only ASCII characters can be displayed.<br /> ・ Tabs cannot be used.<br /> ・ You must specify the display buffer that is currently being displayed by <CODE><a href="../../../../nn/dbg/CTR/DirectPrint/ChangeDisplaybuffer.html">ChangeDisplaybuffer</a></CODE>.<br />- Because characters are written to the display buffer by using the CPU, the display buffer must be placed in the device memory.<br /></p><!-- write here --></div> 63 <a name="constant" id="constant"> 64 <h2>Member Constants</h2> 65 <div class="section"> 66 <table class="members"> 67 <tr> 68 <td width="100"> 69 <span class="static_style" title="static">S</span> 70 </td> 71 <th> 72 <span class="argument"><a href="../../../../nn/dbg/CTR/DirectPrint/FONT_WIDTH.html"><CODE>FONT_WIDTH</CODE></a></span> 73 </th> 74 <td width="100"><CODE>const int</CODE> </td> 75<td>Width of a single character.</td> 76 </tr> 77 <tr> 78 <td width="100"> 79 <span class="static_style" title="static">S</span> 80 </td> 81 <th> 82 <span class="argument"><a href="../../../../nn/dbg/CTR/DirectPrint/FONT_HEIGHT.html"><CODE>FONT_HEIGHT</CODE></a></span> 83 </th> 84 <td width="100"><CODE>const int</CODE> </td> 85<td>Height of a single character.</td> 86 </tr> </table> 87 </div> 88 </a> <a name="function" id="function"> 89 <h2>Member Functions</h2> 90 <div class="section"> 91 <table class="members"> 92 <tr> 93 <th class="category" colspan="3">Display buffer</th> 94 </tr> 95 <tr> 96 <td width="100"> </td> 97 <th> 98 <a href="../../../../nn/dbg/CTR/DirectPrint/ChangeDisplaybuffer.html">ChangeDisplaybuffer</a> 99 </th> 100 <td>Specifies the display buffer to write to.</td> 101 </tr> 102 <tr> 103 <td width="100"> </td> 104 <th> 105 <a href="../../../../nn/dbg/CTR/DirectPrint/GetDisplaybuffer.html">GetDisplaybuffer</a> 106 </th> 107 <td>Gets the display buffer that is currently set.</td> 108 </tr> 109 <tr> 110 <th class="category" colspan="3">Operation</th> 111 </tr> 112 <tr> 113 <td width="100"> </td> 114 <th> 115 <a href="../../../../nn/dbg/CTR/DirectPrint/Flush.html">Flush</a> 116 </th> 117 <td>Writes the cache.</td> 118 </tr> 119 <tr> 120 <td width="100"> </td> 121 <th> 122 <a href="../../../../nn/dbg/CTR/DirectPrint/Clear.html">Clear</a> 123 </th> 124 <td>Fills entire region using the background color.</td> 125 </tr> 126 <tr> 127 <th class="category" colspan="3">Output</th> 128 </tr> 129 <tr> 130 <td width="100"> </td> 131 <th> 132 <a href="../../../../nn/dbg/CTR/DirectPrint/Printf.html">Printf</a> 133 </th> 134 <td>Formats strings and writes them to the display buffer.</td> 135 </tr> 136 <tr> 137 <td width="100"> </td> 138 <th> 139 <a href="../../../../nn/dbg/CTR/DirectPrint/VPrintf.html">VPrintf</a> 140 </th> 141 <td>Formats strings and writes them to the display buffer. (The variable length argument version.)</td> 142 </tr> 143 <tr> 144 <td width="100"> </td> 145 <th> 146 <a href="../../../../nn/dbg/CTR/DirectPrint/PutString.html">PutString</a> 147 </th> 148 <td>Directly outputs the specified string without formatting.</td> 149 </tr> 150 <tr> 151 <td width="100"> </td> 152 <th> 153 <a href="../../../../nn/dbg/CTR/DirectPrint/PutChar.html">PutChar</a> 154 </th> 155 <td>Directly outputs one character of the specified characters.</td> 156 </tr> 157 <tr> 158 <th class="category" colspan="3">Set/Get</th> 159 </tr> 160 <tr> 161 <td width="100"> </td> 162 <th> 163 <a href="../../../../nn/dbg/CTR/DirectPrint/SetCharColor.html">SetCharColor</a> 164 </th> 165 <td>Sets the color for characters.</td> 166 </tr> 167 <tr> 168 <td width="100"> </td> 169 <th> 170 <a href="../../../../nn/dbg/CTR/DirectPrint/GetCharColor.html">GetCharColor</a> 171 </th> 172 <td>Gets the color for characters.</td> 173 </tr> 174 <tr> 175 <td width="100"> </td> 176 <th> 177 <a href="../../../../nn/dbg/CTR/DirectPrint/SetBgColor.html">SetBgColor</a> 178 </th> 179 <td>Sets the background color.</td> 180 </tr> 181 <tr> 182 <td width="100"> </td> 183 <th> 184 <a href="../../../../nn/dbg/CTR/DirectPrint/GetBgColor.html">GetBgColor</a> 185 </th> 186 <td>Gets the background color.</td> 187 </tr> 188 <tr> 189 <td width="100"> </td> 190 <th> 191 <a href="../../../../nn/dbg/CTR/DirectPrint/GetLastCursorPos.html">GetLastCursorPos</a> 192 </th> 193 <td>Returns the coordinates of the position after the last character is rendered.</td> 194 </tr> 195 <tr> 196 <td width="100"> </td> 197 <th> 198 <a href="../../../../nn/dbg/CTR/DirectPrint/SetFillSpace.html">SetFillSpace</a> 199 </th> 200 <td>Sets whether to render the background color when drawing a blank space.</td> 201 </tr> </table> 202 </div> 203 </a> 204 <h2>Revision History</h2> 205 <div class="section"> 206 <dl class="history"> 207 <dt>2012/06/22</dt> 208<dd>Added that only the device memory was supported.<br />Added <CODE>FONT_WIDTH</CODE> and <CODE>FONT_HEIGHT</CODE>.<br /> 209 </dd> 210 <dt>2012/04/20</dt> 211 <dd>Initial version.<br /> 212 </dd> 213 </dl> 214 </div> 215 <hr><p>CONFIDENTIAL</p></body> 216</html>