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    <title>Printf</title>
8  </head>
9  <body>
10    <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>::<a href="../../../../nn/dbg/CTR/DirectPrint/Overview.html">DirectPrint</a>::Printf</CODE> Member Function</h1>
11    <h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/dbg.h&gt;
14
15void Printf(
16     const <a href="../../../../nn/math/VEC2/Overview.html">nn::math::VEC2</a> & pos,
17     bool autoLineFeed,
18     bool fillBg,
19     const char * format,
20     ...
21);
22</pre>
23    </div>
24    <h2>Parameters</h2>
25    <div class="section">
26      <table class="arguments">
27        <thead>
28          <tr>
29            <td width="15" />
30            <th>Name</th>
31            <td>Description</td>
32          </tr>
33        </thead>
34        <tr>
35          <td>in</td>
36          <th>pos</th>
37          <td>Upper-left coordinate where writing to.</td>
38        </tr>
39        <tr>
40          <td>in</td>
41          <th>autoLineFeed</th>
42          <td>Specifies whether to perform automatic text wrapping.</td>
43        </tr>
44        <tr>
45          <td>in</td>
46          <th>fillBg</th>
47          <td>Specify <CODE>true</CODE> to fill text background with specified background color. Specify <CODE>false</CODE> to make transparent.</td>
48        </tr>
49        <tr>
50          <td>in</td>
51          <th>format</th>
52          <td>A formatted string.</td>
53        </tr>
54        <tr>
55          <td>in</td>
56          <th>...</th>
57          <td>String parameters.</td>
58        </tr> </table>
59    </div>
60    <h2>Return Values</h2>
61    <div class="section">
62                None.
63               </div>
64    <h2>Description</h2>
65    <div class="section">
66      <p>Formats strings and writes them to the display buffer.</p><p>For <SPAN class="argument">pos</SPAN>, specify the value in a coordinate system where (0, 0) is the upper-left point of the display region specified by <CODE><a href="../../../../nn/dbg/CTR/DirectPrint/ChangeDisplaybuffer.html">ChangeDisplaybuffer</a></CODE>.</p><p>When <SPAN class="argument">autoLineFeed</SPAN> is set to <SPAN class="argument">true</SPAN>, text will wrap when it reaches the edge of the display region.</p><p>The post-formatted string must fit within 255 characters.</p></div>
67  <hr><p>CONFIDENTIAL</p></body>
68</html>