rtgui_theme.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/scrollbar.h>
  30. #include <rtgui/widgets/progressbar.h>
  31. #include <rtgui/widgets/staticline.h>
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. void rtgui_system_theme_init(void);
  36. void rtgui_theme_draw_win(struct rtgui_topwin *win);
  37. void rtgui_theme_draw_button(rtgui_button_t *btn);
  38. void rtgui_theme_draw_label(rtgui_label_t *label);
  39. void rtgui_theme_draw_textbox(rtgui_textbox_t *box);
  40. void rtgui_theme_draw_iconbox(rtgui_iconbox_t *iconbox);
  41. void rtgui_theme_draw_checkbox(rtgui_checkbox_t *checkbox);
  42. void rtgui_theme_draw_radiobutton(struct rtgui_radiobox *radiobox, rt_uint16_t item);
  43. void rtgui_theme_draw_radiobox(struct rtgui_radiobox *radiobox);
  44. void rtgui_theme_draw_slider(struct rtgui_slider *slider);
  45. void rtgui_theme_draw_progressbar(struct rtgui_progressbar *bar);
  46. void rtgui_theme_draw_staticline(struct rtgui_staticline *staticline);
  47. rt_uint16_t rtgui_theme_get_selected_height(void);
  48. void rtgui_theme_draw_selected(struct rtgui_dc *dc, rtgui_rect_t *rect);
  49. rtgui_color_t rtgui_theme_default_bc(void);
  50. rtgui_color_t rtgui_theme_default_fc(void);
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif