mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-25 08:47:16 +00:00
merge new RTGUI in to trunk
The full log is at https://github.com/RTGUI/RTGUI/commits/merge_1 and it's difficult to merge the new tree commit by commit. I also converted all the file into unix eol so there are many fake diff. Big changes are noted in rtgui/doc/road_map.txt and rtgui/doc/attention.txt. Keep an eye on them if you want to migrate your old code. Note that the work is still in progress and the bsp is not prepared in trunk so far. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2092 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
static void _rtgui_label_constructor(rtgui_label_t *label)
|
||||
{
|
||||
/* init widget and set event handler */
|
||||
rtgui_widget_set_event_handler(RTGUI_WIDGET(label), rtgui_label_event_handler);
|
||||
rtgui_object_set_event_handler(RTGUI_OBJECT(label), rtgui_label_event_handler);
|
||||
|
||||
/* set field */
|
||||
label->text = RT_NULL;
|
||||
@@ -38,13 +38,12 @@ DEFINE_CLASS_TYPE(label, "label",
|
||||
_rtgui_label_destructor,
|
||||
sizeof(struct rtgui_label));
|
||||
|
||||
rt_bool_t rtgui_label_event_handler(struct rtgui_widget* widget, struct rtgui_event* event)
|
||||
rt_bool_t rtgui_label_event_handler(struct rtgui_object *object, struct rtgui_event* event)
|
||||
{
|
||||
struct rtgui_label* label;
|
||||
struct rtgui_label *label;
|
||||
RTGUI_WIDGET_EVENT_HANDLER_PREPARE
|
||||
|
||||
RT_ASSERT(widget != RT_NULL);
|
||||
|
||||
label = (struct rtgui_label*) widget;
|
||||
label = RTGUI_LABEL(object);
|
||||
switch (event->type)
|
||||
{
|
||||
case RTGUI_EVENT_PAINT:
|
||||
|
||||
Reference in New Issue
Block a user