rtgui_theme.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #include <rtgui/widgets/label.h>
  19. #include <rtgui/widgets/button.h>
  20. #include <rtgui/widgets/textbox.h>
  21. #include <rtgui/widgets/iconbox.h>
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. void rtgui_system_theme_init(void);
  26. void rtgui_theme_draw_win(struct rtgui_topwin* win);
  27. void rtgui_theme_draw_button(rtgui_button_t* btn);
  28. void rtgui_theme_draw_label(rtgui_label_t* label);
  29. void rtgui_theme_draw_textbox(rtgui_textbox_t* box);
  30. void rtgui_theme_draw_iconbox(rtgui_iconbox_t* iconbox);
  31. rt_uint16_t rtgui_theme_get_selected_height(void);
  32. void rtgui_theme_draw_selected(struct rtgui_dc* dc, rtgui_rect_t *rect);
  33. rtgui_color_t rtgui_theme_default_bc(void);
  34. rtgui_color_t rtgui_theme_default_fc(void);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif