www.pudn.com > ncdzsrc.rar > usrintrf.h


/*************************************************************************** 
 
	usrintrf.c 
 
	ユーザインターフェース関連 
 
***************************************************************************/ 
 
#ifndef USRINTF_H 
#define USRINTF_H 
 
 
/*-------------------------------------------------------- 
    メニュー表示 
 -------------------------------------------------------*/ 
 
int  ui_init(void); 
void ui_exit(void); 
void ui_menu(void); 
 
 
/*-------------------------------------------------------- 
    ユーザインタフェース描画 
 -------------------------------------------------------*/ 
 
// フォントカラー 
enum 
{ 
	UI_COLOR_NORMAL = 0, 
	UI_COLOR_SELECT, 
	UI_COLOR_DISABLE, 
	UI_COLOR_MAX, 
}; 
 
extern UINT16 ui_palette[UI_COLOR_MAX * 16]; 
 
// テキスト描画 
void ui_set_text_color(int number); 
void ui_draw_text(const char *str, int x, int y); 
void ui_popup(const char *text, ...); 
void ui_show_popup(void); 
 
// 図形描画 
void ui_set_plot_color(int r, int g, int b); 
void ui_get_pixel_color(int x, int y, int *r, int *g, int *b); 
void ui_plot_pixel(int x, int y); 
void ui_plot_line(int sx, int sy, int ex, int ey); 
void ui_plot_box(int x1, int y1, int x2, int y2); 
 
// 画面の退避、復帰 
void ui_save_screen(int screen); 
void ui_restore_screen(void); 
 
 
/*-------------------------------------------------------- 
	スクリーンショット保存 
 -------------------------------------------------------*/ 
 
void save_snapshot(void); 
 
#endif /* USRINTF_H */