rtgui_config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * File : rtgui_config.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-10-16 Bernard first version
  13. * 2010-02-08 Bernard move some RTGUI options to bsp
  14. */
  15. #ifndef __RTGUI_CONFIG_H__
  16. #define __RTGUI_CONFIG_H__
  17. /* RTGUI options */
  18. #ifdef _WIN32
  19. /* name length of RTGUI object */
  20. #define RTGUI_NAME_MAX 12
  21. /* support 16 weight font */
  22. #define RTGUI_USING_FONT16
  23. /* support Chinese font */
  24. #define RTGUI_USING_FONTHZ
  25. /* support FreeType TTF font */
  26. //#define RTGUI_USING_TTF
  27. /* use small size in RTGUI */
  28. #define RTGUI_USING_SMALL_SIZE
  29. /* use mouse cursor */
  30. /* #define RTGUI_USING_MOUSE_CURSOR */
  31. /* default font size in RTGUI */
  32. #define RTGUI_DEFAULT_FONT_SIZE 12
  33. #define RTGUI_USING_STDIO_FILERW
  34. #define RTGUI_USING_DFS_FILERW
  35. #define RTGUI_IMAGE_CONTAINER
  36. #define RTGUI_IMAGE_XPM
  37. #define RTGUI_IMAGE_BMP
  38. #define RTGUI_IMAGE_PNG
  39. // #define RTGUI_IMAGE_JPEG
  40. // #define RTGUI_IMAGE_TJPGD
  41. #define RTGUI_USING_FONT12
  42. #define RTGUI_USING_HZ_BMP
  43. #define RTGUI_MEM_TRACE
  44. #define RTGUI_USING_WINMOVE
  45. #define RTGUI_USING_NOTEBOOK_IMAGE
  46. // #define RTGUI_USING_HZ_FILE
  47. #else
  48. /* native running under RT-Thread */
  49. #ifndef RT_USING_DFS
  50. #undef RTGUI_USING_DFS_FILERW
  51. #undef RTGUI_USING_HZ_FILE
  52. #endif
  53. #endif
  54. #if RTGUI_DEFAULT_FONT_SIZE == 0
  55. #define RTGUI_DEFAULT_FONT_SIZE 12
  56. #endif
  57. #define RTGUI_SVR_THREAD_PRIORITY 15
  58. #define RTGUI_SVR_THREAD_TIMESLICE 5
  59. #ifdef RTGUI_USING_SMALL_SIZE
  60. #define RTGUI_SVR_THREAD_STACK_SIZE 1024
  61. #else
  62. #define RTGUI_SVR_THREAD_STACK_SIZE 2048
  63. #endif
  64. #define RTGUI_APP_THREAD_PRIORITY 25
  65. #define RTGUI_APP_THREAD_TIMESLICE 5
  66. #ifdef RTGUI_USING_SMALL_SIZE
  67. #define RTGUI_APP_THREAD_STACK_SIZE 1024
  68. #else
  69. #define RTGUI_APP_THREAD_STACK_SIZE 2048
  70. #endif
  71. #define RTGUI_USING_CAST_CHECK
  72. //#define RTGUI_USING_DESKTOP_WINDOW
  73. #undef RTGUI_USING_SMALL_SIZE
  74. #endif