1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - WM - demos - dataShare-Model 3 File: print.h 4 5 Copyright 2006-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef __PRINT_H__ 19 #define __PRINT_H__ 20 21 #define PR_SCREEN_HEIGHT (23) 22 #define PR_SCREEN_WIDTH (32) 23 #define PR_SCREEN_SIZE (PR_SCREEN_WIDTH * PR_SCREEN_HEIGHT) 24 25 typedef struct PRScreen_ 26 { 27 u16 screen[PR_SCREEN_SIZE]; 28 int curx; 29 int cury; 30 int scroll; 31 } 32 PRScreen; 33 34 extern void PR_ClearScreen(PRScreen * scr); 35 extern void PR_Locate(PRScreen * scr, int x, int y); 36 extern void PR_PutString(PRScreen * scr, const char *text); 37 extern void PR_VPrintString(PRScreen * scr, const char *fmt, va_list vlist); 38 extern void PR_PrintString(PRScreen * scr, const char *fmt, ...); 39 extern int PR_GetStringLengthA(const char *str); 40 41 #endif 42