rtgui_theme.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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_radiobutton(struct rtgui_radiobox* radiobox, rt_uint16_t item);
  42. void rtgui_theme_draw_radiobox(struct rtgui_radiobox* radiobox);
  43. void rtgui_theme_draw_slider(struct rtgui_slider* slider);
  44. void rtgui_theme_draw_progressbar(struct rtgui_progressbar* bar);
  45. void rtgui_theme_draw_staticline(struct rtgui_staticline* staticline);
  46. rt_uint16_t rtgui_theme_get_selected_height(void);
  47. void rtgui_theme_draw_selected(struct rtgui_dc* dc, rtgui_rect_t *rect);
  48. rtgui_color_t rtgui_theme_default_bc(void);
  49. rtgui_color_t rtgui_theme_default_fc(void);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif