libnx  v4.8.0
Data Fields
PrintConsole Struct Reference

Console structure used to store the state of a console render context. More...

#include <console.h>

Data Fields

ConsoleFont font
 Font of the console.
 
ConsoleRendererrenderer
 Renderer of the console.
 
int cursorX
 Current X location of the cursor (as a tile offset by default)
 
int cursorY
 Current Y location of the cursor (as a tile offset by default)
 
int prevCursorX
 Internal state.
 
int prevCursorY
 Internal state.
 
int consoleWidth
 Width of the console hardware layer in characters.
 
int consoleHeight
 Height of the console hardware layer in characters.
 
int windowX
 Window X location in characters.
 
int windowY
 Window Y location in characters.
 
int windowWidth
 Window width in characters.
 
int windowHeight
 Window height in characters.
 
int tabSize
 Size of a tab.
 
u16 fg
 Foreground color.
 
u16 bg
 Background color.
 
int flags
 Reverse/bright flags.
 
bool consoleInitialised
 True if the console is initialized.
 

Detailed Description

Console structure used to store the state of a console render context.

Default values from consoleGetDefault();

PrintConsole defaultConsole =
{
//Font:
{
default_font_bin, //font gfx
0, //first ascii character in the set
256, //number of characters in the font set
16, //tile width
16, //tile height
},
NULL, //renderer
0,0, //cursorX cursorY
0,0, //prevcursorX prevcursorY
80, //console width
45, //console height
0, //window x
0, //window y
80, //window width
45, //window height
3, //tab size
7, // foreground color
0, // background color
0, // flags
false //console initialized
};
Console structure used to store the state of a console render context.
Definition: console.h:87

The documentation for this struct was generated from the following file: