nn::dbg::CTR::DirectPrint Class

Header file: nn/dbg.h

Syntax

class DirectPrint

Description

Class for directly writing characters to the display buffer using the CPU.

・ Character size is fixed to 6x8.
・ Only ASCII characters can be displayed.
・ Tabs cannot be used.
・ You must specify the display buffer that is currently being displayed by ChangeDisplaybuffer.
- Because characters are written to the display buffer by using the CPU, the display buffer must be placed in the device memory.

Member Constants

S FONT_WIDTH const int Width of a single character.
S FONT_HEIGHT const int Height of a single character.

Member Functions

Display buffer
ChangeDisplaybuffer Specifies the display buffer to write to.
GetDisplaybuffer Gets the display buffer that is currently set.
Operation
Flush Writes the cache.
Clear Fills entire region using the background color.
Output
Printf Formats strings and writes them to the display buffer.
VPrintf Formats strings and writes them to the display buffer. (The variable length argument version.)
PutString Directly outputs the specified string without formatting.
PutChar Directly outputs one character of the specified characters.
Set/Get
SetCharColor Sets the color for characters.
GetCharColor Gets the color for characters.
SetBgColor Sets the background color.
GetBgColor Gets the background color.
GetLastCursorPos Returns the coordinates of the position after the last character is rendered.
SetFillSpace Sets whether to render the background color when drawing a blank space.

Revision History

2012/06/22
Added that only the device memory was supported.
Added FONT_WIDTH and FONT_HEIGHT.
2012/04/20
Initial version.

CONFIDENTIAL