uigui_cfg.c

来自「一个PDA GUI系统的源码」· C语言 代码 · 共 64 行

C
64
字号
#include <uiGui_Cfg.h>
#include <uiFont.h>

//
// 可视区范围  
//

//const  short GUI_SCREEN_WIDTH=240;
//const  short GUI_SCREEN_HEIGHT=160;

#ifndef _EMU160x240_
	const  short GUI_SCREEN_WIDTH=160;
	const  short GUI_SCREEN_HEIGHT=160;
#else
	const  short GUI_SCREEN_WIDTH=160;
	const  short GUI_SCREEN_HEIGHT=240;
#endif

//
// 触控区范围  
//

//const  short GUI_TOUCH_WIDTH= 240;
//const  short GUI_TOUCH_HEIGHT= 160;
#ifndef _EMU160x240_
	const  short GUI_TOUCH_WIDTH= 160;
	const  short GUI_TOUCH_HEIGHT= 160;
#else
	const  short GUI_TOUCH_WIDTH= 160;
	const  short GUI_TOUCH_HEIGHT= 240;
#endif                    

/**************************************************************
 Max message number in GUI Windows' mesage queue
*************************************************************/
//const unsigned short GUI_MAX_MESSAGE_NO=20;

//Ram_disk size
//const unsigned short GUI_RAM_DISK_SIZE=1500;

//Keypad
//const unsigned short GUI_MAX_KEYPAD_EVENT_NO=12;

// Rolling Wheel Event Number
//const unsigned short GUI_MAX_ROLL_EVENT_NO=4;

//gui default font
#ifdef _LANGUAGE_CHT
const unsigned char GUI_DEFAULT_FONT=FONT_ENG12_BIG12;
const unsigned char GUI_CALENDAR_FONT=FONT_ENGHT12_BIG12;	// 日历字体
#else
const unsigned char GUI_DEFAULT_FONT=FONT_ENG12_GB12;
const unsigned char GUI_CALENDAR_FONT=FONT_ENGHT12_GB12;	// 日历字体
#endif

const unsigned char GUI_IS_3D=1;
const unsigned char GUI_3D=1;		

// 最小消息盒的座标
const short MSGBOX_LEFT=20;
const short MSGBOX_TOP=30;
const short MSGBOX_RIGHT=139;
const short MSGBOX_BOTTOM=129;

⌨️ 快捷键说明

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