rtgui_theme.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_scrollbar(struct rtgui_scrollbar* bar);
  46. void rtgui_theme_draw_progressbar(struct rtgui_progressbar* bar);
  47. void rtgui_theme_draw_staticline(struct rtgui_staticline* staticline);
  48. rt_uint16_t rtgui_theme_get_selected_height(void);
  49. void rtgui_theme_draw_selected(struct rtgui_dc* dc, rtgui_rect_t *rect);
  50. rtgui_color_t rtgui_theme_default_bc(void);
  51. rtgui_color_t rtgui_theme_default_fc(void);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif