From 0e93e6809c7beac4597148edc1dc09bcdf9a2ab3 Mon Sep 17 00:00:00 2001 From: "iamyhw@gmail.com" Date: Thu, 24 Mar 2011 14:00:19 +0000 Subject: add rtgui_win subfield,Highlight the ease of use git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1345 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui_win/include/rtgui/rtgui_theme.h | 80 ++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 components/rtgui_win/include/rtgui/rtgui_theme.h (limited to 'components/rtgui_win/include/rtgui/rtgui_theme.h') diff --git a/components/rtgui_win/include/rtgui/rtgui_theme.h b/components/rtgui_win/include/rtgui/rtgui_theme.h new file mode 100644 index 0000000000..2fddf29951 --- /dev/null +++ b/components/rtgui_win/include/rtgui/rtgui_theme.h @@ -0,0 +1,80 @@ +/* + * File : rtgui_theme.h + * This file is part of RTGUI in RT-Thread RTOS + * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rt-thread.org/license/LICENSE + * + * Change Logs: + * Date Author Notes + * 2009-10-04 Bernard first version + */ +#ifndef __RTGUI_THEME_H__ +#define __RTGUI_THEME_H__ + +#include + +#define CHECK_BOX_W 13 +#define CHECK_BOX_H 13 + +#define RADIO_BOX_W 12 +#define RADIO_BOX_H 12 + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +void rtgui_system_theme_init(void); + +void rtgui_theme_draw_win_closebox(rtgui_win_t *win); +void rtgui_theme_draw_win_maxbox(rtgui_win_t *win); +void rtgui_theme_draw_win_minbox(rtgui_win_t *win); +void rtgui_theme_draw_win_title(rtgui_win_t *win); +void rtgui_theme_draw_win(rtgui_win_t* win); +void rtgui_theme_draw_button(rtgui_button_t* btn); +void rtgui_theme_draw_label(rtgui_label_t* label); +void rtgui_theme_draw_textbox(rtgui_textbox_t* box); +void rtgui_theme_draw_iconbox(rtgui_iconbox_t* iconbox); +void rtgui_theme_draw_checkbox(rtgui_checkbox_t* checkbox); +void rtgui_theme_draw_radiobutton(rtgui_radiobox_t* rbox, rt_uint32_t index); +void rtgui_theme_draw_radiobox(rtgui_radiobox_t* rbox); +void rtgui_theme_draw_menu(rtgui_menu_t* menu); +void rtgui_theme_draw_menu_item(rtgui_menu_t* menu, rtgui_menu_item_t *item); +void rtgui_theme_draw_slider(rtgui_slider_t* slider); +void rtgui_theme_draw_scrollbar(rtgui_scrollbar_t* bar); +void rtgui_theme_draw_progressbar(rtgui_progressbar_t* bar); +void rtgui_theme_draw_staticline(rtgui_staticline_t* sline); + +void rtgui_theme_draw_selected(rtgui_dc_t *dc, rtgui_color_t *color, rtgui_rect_t *rect); + +rtgui_color_t rtgui_theme_default_bc(void);//default black ground color +rtgui_color_t rtgui_theme_default_fc(void); +void rtgui_theme_draw_panel(rtgui_panel_t *panel); +void rtgui_theme_draw_combo(rtgui_combo_t *cbo); +void rtgui_theme_draw_combo_downarrow(rtgui_combo_t *cbo); + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.3.1