rtgui_theme.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * File : rtgui_theme.h
  3. * This file is part of RTGUI in 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-04 Bernard first version
  13. */
  14. #ifndef __RTGUI_THEME_H__
  15. #define __RTGUI_THEME_H__
  16. #include <rtgui/rtgui.h>
  17. #include <rtgui/rtgui_server.h>
  18. #define CHECK_BOX_W 13
  19. #define CHECK_BOX_H 13
  20. #define RADIO_BOX_W 12
  21. #define RADIO_BOX_H 12
  22. #include <rtgui/widgets/label.h>
  23. #include <rtgui/widgets/button.h>
  24. #include <rtgui/widgets/textbox.h>
  25. #include <rtgui/widgets/iconbox.h>
  26. #include <rtgui/widgets/checkbox.h>
  27. #include <rtgui/widgets/radiobox.h>
  28. #include <rtgui/widgets/slider.h>
  29. #include <rtgui/widgets/progressbar.h>
  30. #include <rtgui/widgets/staticline.h>
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34. void rtgui_system_theme_init(void);
  35. void rtgui_theme_draw_win(struct rtgui_topwin* win);
  36. void rtgui_theme_draw_button(rtgui_button_t* btn);
  37. void rtgui_theme_draw_label(rtgui_label_t* label);
  38. void rtgui_theme_draw_textbox(rtgui_textbox_t* box);
  39. void rtgui_theme_draw_iconbox(rtgui_iconbox_t* iconbox);
  40. void rtgui_theme_draw_checkbox(rtgui_checkbox_t* checkbox);
  41. void rtgui_theme_draw_radiobox(struct rtgui_radiobox* radiobox);
  42. void rtgui_theme_draw_slider(struct rtgui_slider* slider);
  43. void rtgui_theme_draw_progressbar(struct rtgui_progressbar* bar);
  44. void rtgui_theme_draw_staticline(struct rtgui_staticline* staticline);
  45. rt_uint16_t rtgui_theme_get_selected_height(void);
  46. void rtgui_theme_draw_selected(struct rtgui_dc* dc, rtgui_rect_t *rect);
  47. rtgui_color_t rtgui_theme_default_bc(void);
  48. rtgui_color_t rtgui_theme_default_fc(void);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif