1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-23 04:12:04 +00:00
TegraExplorer/source/tegraexplorer/gfx/gfxutils.h

23 lines
906 B
C
Raw Permalink Normal View History

2020-03-17 23:41:09 +00:00
#pragma once
#include "../../gfx/gfx.h"
#include "../../utils/types.h"
#define SWAPCOLOR(color) gfx_printf("%k", color)
#define SWAPBGCOLOR(color) gfx_printf("%K", color)
2020-05-04 12:55:26 +01:00
#define SWAPALLCOLOR(fg, bg) gfx_printf("%k%K", fg, bg)
2020-03-17 23:41:09 +00:00
#define RESETCOLOR gfx_printf("%k%K", COLOR_WHITE, COLOR_DEFAULT)
void gfx_clearscreen();
u32 gfx_message(u32 color, const char* message, ...);
2020-05-04 12:55:26 +01:00
u32 gfx_errDisplay(const char *src_func, int err, int loc);
int gfx_makewaitmenu(const char *hiddenmessage, int timer);
void gfx_printlength(int size, const char *toprint);
void gfx_printandclear(const char *in, int length, int endX);
2020-05-02 12:05:06 +01:00
void gfx_sideSetY(u32 setY);
u32 gfx_sideGetY();
2020-05-04 12:55:26 +01:00
void gfx_sideprintf(const char* message, ...);
void gfx_sideprintandclear(const char* message, int length);
2020-05-02 12:05:06 +01:00
void gfx_drawScrollBar(int minView, int maxView, int count);
2020-05-04 12:55:26 +01:00
int gfx_defaultWaitMenu(const char *message, int time);
extern int printerrors;