⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guifunc.h

📁 是一个手机功能的模拟程序
💻 H
字号:
#ifndef _GUIFUNC_H_
#define _GUIFUNC_H_


#if 0    //delete by chenjun 20040204
/* globle system call back subroutines */
#define	RGB(r, g, b) (MMS_U16)((r<<11)+(g<<5)+b)

/* DEFINE CHINESE FONT SIZE */
#define		CHINESE_FONT_SIZE		14
#define		MMS_LINE_HEIGHT			(CHINESE_FONT_SIZE+4)

#endif

#if __cplusplus 
extern "C" {
#endif

//MMS_VOID	drawtextinrect(MMS_S8 *text, MMS_S32 x, MMS_S32 y, MMS_S32 w, MMS_S32 h, MMS_S32 lines, MMS_COLOR color, MMS_S32 border);
//remmed by JeffreyYao, 2-24-2004
/*
MMS_VOID	layouttextinrect(MMS_S8 *text, MMS_S32 w, MMS_S32 *h);
*/
MMS_S32		sys_drawtext(MMS_S32 x, MMS_S32 y, MMS_S8* string, MMS_U8 size, MMS_COLOR color);
MMS_VOID	sys_drawpoint(MMS_S32 x, MMS_S32 y, MMS_COLOR color);
MMS_VOID	sys_drawfillrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_VOID	sys_drawrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_VOID	sys_refreshwindow();

MMS_S32	draw_gif(MMS_S8 *filename, MMS_U32 x, MMS_U32 y, MMS_U32 w, MMS_U32 h);
#if __cplusplus 
}
#endif


#if 0    //delete by chenjun 20040204
MMS_S32 sys_drawpoint(MMS_S32 x, MMS_S32 y, MMS_COLOR color);
MMS_S32 sys_drawtext(MMS_S32 x, MMS_S32 y, MMS_S8* string, MMS_U8 font, MMS_COLOR color);
MMS_S32 sys_drawline(MMS_S32 x1, MMS_S32 y1, MMS_S32 x2, MMS_S32 y2, MMS_COLOR color) ;
MMS_S32 sys_drawrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_S32 sys_drawroundrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_S32 sys_drawfillrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_S32 sys_drawfillroundrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_S32 sys_convertrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height);
MMS_S32 sys_clearrect(MMS_S32 x, MMS_S32 y, MMS_S32 width, MMS_S32 height, MMS_COLOR color);
MMS_S32 sys_drawcycle(MMS_S32 x, MMS_S32 y, MMS_S32 radius, MMS_S32 fill, MMS_COLOR color);
MMS_S32 sys_drawicon(MMS_S32 x, MMS_S32 y, MMS_S32 w, MMS_S32 h, const MMS_U8 *data);

MMS_S32 sys_setfont(MMS_S8 font);
MMS_U8	mms_getcharwidth(MMS_U8 ch);


MMS_VOID	drawtextinrect(MMS_S8 *text, MMS_S32 x, MMS_S32 y, MMS_S32 w, MMS_S32 h, MMS_S32 lines, MMS_COLOR color, MMS_S32 border);
MMS_S32	drawbutton(MMS_S8 *text, MMS_S32 x, MMS_S32 y, MMS_S32 w, MMS_S32 h, MMS_COLOR color, MMS_S32 round);
MMS_S32	Mms_netstatus(MMS_S8 *status);
MMS_S32	Mms_drawstatus(MMS_S8 *status, MMS_S32 icon);

MMS_S32	sys_refreshwindow();
MMS_S32	sys_sleep(MMS_S32 ms);
MMS_S32	sys_getwinstyle();

MMS_S32	layouttextinrect(MMS_S8 *text, MMS_S32 w, MMS_S32 *h);
#endif


#endif /* _GUIFUNC_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -