mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57:20 +08:00
sync RTGUI with github(https://github.com/RT-Thread/RTGUI) 126336387561442a0508b661595134deb28ad34b
As always, full log is in GitHub. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2265 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -195,6 +195,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_object* object, struct rtgui_e
|
||||
|
||||
return RT_FALSE;
|
||||
}
|
||||
RTM_EXPORT(rtgui_button_event_handler);
|
||||
|
||||
rtgui_button_t* rtgui_button_create(const char* text)
|
||||
{
|
||||
@@ -215,6 +216,7 @@ rtgui_button_t* rtgui_button_create(const char* text)
|
||||
|
||||
return btn;
|
||||
}
|
||||
RTM_EXPORT(rtgui_button_create);
|
||||
|
||||
rtgui_button_t* rtgui_pushbutton_create(const char* text)
|
||||
{
|
||||
@@ -225,11 +227,13 @@ rtgui_button_t* rtgui_pushbutton_create(const char* text)
|
||||
|
||||
return btn;
|
||||
}
|
||||
RTM_EXPORT(rtgui_pushbutton_create);
|
||||
|
||||
void rtgui_button_destroy(rtgui_button_t* btn)
|
||||
{
|
||||
rtgui_widget_destroy(RTGUI_WIDGET(btn));
|
||||
}
|
||||
RTM_EXPORT(rtgui_button_destroy);
|
||||
|
||||
void rtgui_button_set_pressed_image(rtgui_button_t* btn, rtgui_image_t* image)
|
||||
{
|
||||
@@ -237,6 +241,7 @@ void rtgui_button_set_pressed_image(rtgui_button_t* btn, rtgui_image_t* image)
|
||||
|
||||
btn->pressed_image = image;
|
||||
}
|
||||
RTM_EXPORT(rtgui_button_set_pressed_image);
|
||||
|
||||
void rtgui_button_set_unpressed_image(rtgui_button_t* btn, rtgui_image_t* image)
|
||||
{
|
||||
@@ -244,6 +249,7 @@ void rtgui_button_set_unpressed_image(rtgui_button_t* btn, rtgui_image_t* image)
|
||||
|
||||
btn->unpressed_image = image;
|
||||
}
|
||||
RTM_EXPORT(rtgui_button_set_unpressed_image);
|
||||
|
||||
void rtgui_button_set_onbutton(rtgui_button_t* btn, rtgui_onbutton_func_t func)
|
||||
{
|
||||
@@ -251,4 +257,5 @@ void rtgui_button_set_onbutton(rtgui_button_t* btn, rtgui_onbutton_func_t func)
|
||||
|
||||
btn->on_button = func;
|
||||
}
|
||||
RTM_EXPORT(rtgui_button_set_onbutton);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user