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 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48 <title>nw::dev::DirectPrint</title> 49 </head> 50 <body> 51 <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/dev/Overview.html">dev</a>::DirectPrint</CODE> Class</h1> 52 <h2>Syntax</h2> 53 <div class="section"> 54 <pre class="definition">class DirectPrint</pre> 55 </div> 56 <h2>Description</h2> 57 <div class="section"> 58 <p>Class for direct rendering to framebuffer.</p> 59 </div> 60 <a name="enum" id="enum"> 61 <h2>Enumerated Types</h2> 62 <div class="section"> 63 <table class="members"> 64 <tr> 65 <td width="100"> </td> 66 <th> 67 <a href="../../../nw/dev/DirectPrint/Direction.html">Direction</a> 68 </th> 69 <td>Represents the direction of rendering.</td> 70 </tr> </table> 71 </div> 72 </a> <a name="constant" id="constant"> 73 <h2>Member Constants</h2> 74 <div class="section"> 75 <table class="members"> 76 <tr> 77 <td width="100"> 78 <span class="static_style" title="static">S</span> 79 </td> 80 <th> 81 <span class="argument"><a href="../../../nw/dev/DirectPrint/FONT_WIDTH.html">FONT_WIDTH</a></span> 82 </th> 83 <td width="100"><CODE>const int</CODE></td> 84 <td>The font width.</td> 85 </tr> 86 <tr> 87 <td width="100"> 88 <span class="static_style" title="static">S</span> 89 </td> 90 <th> 91 <span class="argument"><a href="../../../nw/dev/DirectPrint/FONT_HEIGHT.html">FONT_HEIGHT</a></span> 92 </th> 93 <td width="100"><CODE>const int</CODE></td> 94 <td>The font height.</td> 95 </tr> 96 <tr> 97 <td width="100"> 98 <span class="static_style" title="static">S</span> 99 </td> 100 <th> 101 <span class="argument"><a href="../../../nw/dev/DirectPrint/LINE_HEIGHT.html">LINE_HEIGHT</a></span> 102 </th> 103 <td width="100"><CODE>const int</CODE></td> 104 <td>Line height.</td> 105 </tr> 106 <tr> 107 <td width="100"> 108 <span class="static_style" title="static">S</span> 109 </td> 110 <th> 111 <span class="argument"><a href="../../../nw/dev/DirectPrint/TAB_WIDTH.html">TAB_WIDTH</a></span> 112 </th> 113 <td width="100"><CODE>const int</CODE></td> 114 <td>The tab width (number of characters).</td> 115 </tr> </table> 116 </div> 117 </a> <a name="function" id="function"> 118 <h2>Member Functions</h2> 119 <div class="section"> 120 <table class="members"> 121 <tr> 122 <th class="category" colspan="3">Constructors and Destructors</th> 123 </tr> 124 <tr> 125 <td width="100"> </td> 126 <th> 127 <a href="../../../nw/dev/DirectPrint/DirectPrint.html">DirectPrint</a> 128 </th> 129 <td>Constructor.</td> 130 </tr> 131 <tr> 132 <td width="100"> </td> 133 <th> 134 <a href="../../../nw/dev/DirectPrint/~DirectPrint.html">~DirectPrint</a> 135 </th> 136 <td>Destructor.</td> 137 </tr> 138 <tr> 139 <th class="category" colspan="3">Initialization & Shutdown</th> 140 </tr> 141 <tr> 142 <td width="100"> </td> 143 <th> 144 <a href="../../../nw/dev/DirectPrint/Initialize.html"><CODE>Initialize</CODE></a> 145 </th> 146 <td>Initializes the direct print feature.</td> 147 </tr> 148 <tr> 149 <td width="100"> </td> 150 <th> 151 <a href="../../../nw/dev/DirectPrint/Finalize.html">Finalize</a> 152 </th> 153 <td>Deallocates the resource.</td> 154 </tr> 155 <tr> 156 <td width="100"> </td> 157 <th> 158 <a href="../../../nw/dev/DirectPrint/IsActive.html">IsActive</a> 159 </th> 160 <td>Returns whether the direct print feature is in a usable state.</td> 161 </tr> 162 <tr> 163 <th class="category" colspan="3">Settings</th> 164 </tr> 165 <tr> 166 <td width="100"> </td> 167 <th> 168 <a href="../../../nw/dev/DirectPrint/SetTargetBuffer.html">SetTargetBuffer</a> 169 </th> 170 <td>Sets the framebuffer that will be the rendering target.</td> 171 </tr> 172 <tr> 173 <td width="100"> </td> 174 <th> 175 <a href="../../../nw/dev/DirectPrint/SetTargetActiveDisplayBuffer.html">SetTargetActiveDisplayBuffer</a> 176 </th> 177 <td>Sets the currently active display buffer to the rendering target framebuffer.</td> 178 </tr> 179 <tr> 180 <td width="100"> </td> 181 <th> 182 <a href="../../../nw/dev/DirectPrint/GetTargetBuffer.html">GetTargetBuffer</a> 183 </th> 184 <td>Gets the framebuffer for the currently set rendering target.</td> 185 </tr> 186 <tr> 187 <td width="100"> </td> 188 <th> 189 <a href="../../../nw/dev/DirectPrint/GetTargetWidth.html">GetTargetWidth</a> 190 </th> 191 <td>Gets the width of the currently set rendering target.</td> 192 </tr> 193 <tr> 194 <td width="100"> </td> 195 <th> 196 <a href="../../../nw/dev/DirectPrint/GetTargetHeight.html">GetTargetHeight</a> 197 </th> 198 <td>Gets the height of the currently set rendering target.</td> 199 </tr> 200 <tr> 201 <td width="100"> </td> 202 <th> 203 <a href="../../../nw/dev/DirectPrint/SetColor.html">SetColor</a> 204 </th> 205 <td>Sets the rendering color.</td> 206 </tr> 207 <tr> 208 <td width="100"> </td> 209 <th> 210 <a href="../../../nw/dev/DirectPrint/GetColor.html">GetColor</a> 211 </th> 212 <td>Gets the present rendering color.</td> 213 </tr> 214 <tr> 215 <td width="100"> </td> 216 <th> 217 <a href="../../../nw/dev/DirectPrint/SetBackgroundColor.html">SetBackgroundColor</a> 218 </th> 219 <td>Sets the background color.</td> 220 </tr> 221 <tr> 222 <td width="100"> </td> 223 <th> 224 <a href="../../../nw/dev/DirectPrint/GetBackgroundColor.html">GetBackgroundColor</a> 225 </th> 226 <td>Gets the current background.</td> 227 </tr> 228 <tr> 229 <td width="100"> </td> 230 <th> 231 <a href="../../../nw/dev/DirectPrint/SetDirection.html">SetDirection</a> 232 </th> 233 <td>Sets the direction of rendering.</td> 234 </tr> 235 <tr> 236 <td width="100"> </td> 237 <th> 238 <a href="../../../nw/dev/DirectPrint/GetDirection.html">GetDirection</a> 239 </th> 240 <td>Gets the direction of rendering.</td> 241 </tr> 242 <tr> 243 <th class="category" colspan="3">Rendering</th> 244 </tr> 245 <tr> 246 <td width="100"> </td> 247 <th> 248 <a href="../../../nw/dev/DirectPrint/Erase.html">Erase</a> 249 </th> 250 <td>Erases a rectangular region using the background color.</td> 251 </tr> 252 <tr> 253 <td width="100"> </td> 254 <th> 255 <a href="../../../nw/dev/DirectPrint/Printf.html">Printf</a> 256 </th> 257 <td>Draws a string.</td> 258 </tr> 259 <tr> 260 <td width="100"> </td> 261 <th> 262 <a href="../../../nw/dev/DirectPrint/VPrintf.html">VPrintf</a> 263 </th> 264 <td>Draws a string.</td> 265 </tr> 266 <tr> 267 <td width="100"> </td> 268 <th> 269 <a href="../../../nw/dev/DirectPrint/DrawString.html"><CODE>DrawString</CODE></a> 270 </th> 271 <td>Draws a string.</td> 272 </tr> 273 <tr> 274 <td width="100"> </td> 275 <th> 276 <a href="../../../nw/dev/DirectPrint/StoreCache.html">StoreCache</a> 277 </th> 278 <td>Stores the rendered string from cache to main memory.</td> 279 </tr> </table> 280 </div> 281 </a> 282 <hr><p>CONFIDENTIAL</p></body> 283</html> 284