mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
use new object type implementation.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1402 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -49,20 +49,11 @@ static void _rtgui_container_update_toplevel(rtgui_container_t* container)
|
||||
}
|
||||
}
|
||||
|
||||
rtgui_type_t *rtgui_container_type_get(void)
|
||||
{
|
||||
static rtgui_type_t *container_type = RT_NULL;
|
||||
|
||||
if (!container_type)
|
||||
{
|
||||
container_type = rtgui_type_create("container", RTGUI_WIDGET_TYPE,
|
||||
sizeof(rtgui_container_t),
|
||||
RTGUI_CONSTRUCTOR(_rtgui_container_constructor),
|
||||
RTGUI_DESTRUCTOR(_rtgui_container_destructor));
|
||||
}
|
||||
|
||||
return container_type;
|
||||
}
|
||||
DEFINE_CLASS_TYPE(container, "container",
|
||||
RTGUI_WIDGET_TYPE,
|
||||
_rtgui_container_constructor,
|
||||
_rtgui_container_destructor,
|
||||
sizeof(struct rtgui_container));
|
||||
|
||||
rt_bool_t rtgui_container_dispatch_event(rtgui_container_t *container, rtgui_event_t* event)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user