diff options
| author | Fenrir <[email protected]> | 2016-06-01 16:33:50 -0700 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2016-06-01 16:33:50 -0700 |
| commit | 7b2483622d257d07646896467f9f7eea77343866 (patch) | |
| tree | 529db3eec896ba75131561c65ce207a6dea67b1c /ctru-sys | |
| parent | More experimental console/stdio stuff. (diff) | |
| download | ctru-rs-7b2483622d257d07646896467f9f7eea77343866.tar.xz ctru-rs-7b2483622d257d07646896467f9f7eea77343866.zip | |
Redesigned console API
Diffstat (limited to 'ctru-sys')
| -rw-r--r-- | ctru-sys/src/console.rs | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/ctru-sys/src/console.rs b/ctru-sys/src/console.rs index 4d0c0e0..fcaa747 100644 --- a/ctru-sys/src/console.rs +++ b/ctru-sys/src/console.rs @@ -35,26 +35,31 @@ pub struct PrintConsole { pub consoleInitialised: u8, } -pub const CONSOLE_COLOR_BOLD: i32 = 1; -pub const CONSOLE_COLOR_FAINT: i32 = 2; -pub const CONSOLE_ITALIC: i32 = 4; -pub const CONSOLE_UNDERLINE: i32 = 8; -pub const CONSOLE_BLINK_SLOW: i32 = 16; -pub const CONSOLE_BLINK_FAST: i32 = 32; +pub const CONSOLE_COLOR_BOLD: i32 = 1; +pub const CONSOLE_COLOR_FAINT: i32 = 2; +pub const CONSOLE_ITALIC: i32 = 4; +pub const CONSOLE_UNDERLINE: i32 = 8; +pub const CONSOLE_BLINK_SLOW: i32 = 16; +pub const CONSOLE_BLINK_FAST: i32 = 32; pub const CONSOLE_COLOR_REVERSE: i32 = 64; -pub const CONSOLE_CONCEAL: i32 = 128; +pub const CONSOLE_CONCEAL: i32 = 128; #[repr(C)] pub enum debugDevice { - NULL = 0, - _3DMOO = 1, + NULL = 0, + _3DMOO = 1, CONSOLE = 2, } extern "C" { pub fn consoleSetFont(console: *mut PrintConsole, font: *mut ConsoleFont) -> (); - pub fn consoleSetWindow(console: *mut PrintConsole, x: i32, y: i32, width: i32, height: i32) -> (); + pub fn consoleSetWindow(console: *mut PrintConsole, + x: i32, + y: i32, + width: i32, + height: i32) + -> (); pub fn consoleGetDefault() -> *mut PrintConsole; pub fn consoleSelect(console: *mut PrintConsole) -> *mut PrintConsole; pub fn consoleInit(screen: gfxScreen_t, console: *mut PrintConsole) -> *mut PrintConsole; |