2013-10-12 20:38:34 +02:00
|
|
|
#ifndef __GUI_H__
|
|
|
|
#define __GUI_H__
|
|
|
|
|
2013-10-18 03:25:17 +02:00
|
|
|
#include <grrlib.h>
|
|
|
|
|
2013-10-12 20:38:34 +02:00
|
|
|
#define HEX_WHITE 0xFFFFFFFF
|
|
|
|
#define HEX_BLACK 0x00000000
|
|
|
|
|
2014-02-13 10:16:23 +01:00
|
|
|
#define CopyBuf() GRRLIB_Screen2Texture(0, 0, tex_ScreenBuf, GX_FALSE)
|
|
|
|
#define DrawBuf() GRRLIB_DrawImg(0, 0, tex_ScreenBuf, 0, 1, 1, HEX_WHITE)
|
2013-10-18 03:25:17 +02:00
|
|
|
|
2013-10-12 20:38:34 +02:00
|
|
|
int initGUI(void);
|
2013-10-18 03:25:17 +02:00
|
|
|
void deinitGUI(void);
|
2013-10-12 20:38:34 +02:00
|
|
|
int printError(const char* msg);
|
|
|
|
int printSuccess(const char* msg);
|
|
|
|
int printLoading(const char* msg);
|
|
|
|
int printSelectIOS(const char* msg, const char* ios);
|
|
|
|
int printLoadingBar(const char* msg, const f32 percent);
|
|
|
|
int printEndSuccess(const char* msg);
|
|
|
|
int printEndError(const char* msg);
|
|
|
|
int printReport(char report[200][100], int firstLine, bool completeReport);
|
|
|
|
int printUploadSuccess(const char* msg);
|
|
|
|
int printUploadError(const char* msg);
|
|
|
|
|
|
|
|
#endif
|