1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /********************************************************************************
- * File Name: Palace.h
- * Function Describe: Palace.c declare module
- * Relate Module: Palace.c
- * Writer: Shliangwen
- * Date: 2019-1-15
- *******************************************************************************/
- #ifndef __PALACE_H
- #define __PALACE_H
- /*******************************************************************************/
-
- #include "board.h"
- #define PALACE_ROW 2 //有多少行图标
- #define PALACE_COL 3 //有多少列图标
- #define PALACE_NUM (PALACE_ROW*PALACE_COL) //总共有多少个图标
- #define PALACE_TOP 25 //30
- #define PALACE_LEFT 0
- #define PALACE_ICON_WIDE 40 //图标像素 宽 //40
- #define PALACE_ICON_HIGH 40//图标像素 高
- #define PALACE_SURROUND_SIZE 1 //突出框厚度
- #define USE_ICON_PALACE 0
- #define USE_NON_ICON_PALACE 1
- #define PALACE_ICON_TYPE USE_NON_ICON_PALACE
- typedef struct SUT_PALACE{
- const char *mainTile;
- const char **Title; //标题
- const char *FileNamePrefix;//PIC文件前缀 后缀必须是.bmp
- unsigned int Index;//索引
- unsigned short wide;//每格占宽
- unsigned short high;//每格占高
- unsigned short ox;//每格图标在该格中的x偏移
- unsigned short oy;//每格图标在该格中的y偏移
- unsigned char showAlreadyFlag;//表示是否已显示过图标,用于减少刷图标概率
- }SUT_PALACE;
- void PalaceInit(SUT_PALACE *sutPalace,const char **title , const char *prefix, const char *mainInfo);
- unsigned short PalaceResponse(SUT_PALACE *sutPalace);
- /*******************************************************************************/
- #endif
-
|