Palace.h 1.6 KB

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