mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +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:
@@ -28,20 +28,11 @@ static void _rtgui_wintitle_deconstructor(rtgui_wintitle_t* wintitle)
|
||||
wintitle->title = RT_NULL;
|
||||
}
|
||||
|
||||
rtgui_type_t* rtgui_wintitle_type_get()
|
||||
{
|
||||
static rtgui_type_t *wintitle_type = RT_NULL;
|
||||
|
||||
if (!wintitle_type)
|
||||
{
|
||||
wintitle_type = rtgui_type_create("wintitle", RTGUI_TOPLEVEL_TYPE,
|
||||
sizeof(rtgui_wintitle_t),
|
||||
RTGUI_CONSTRUCTOR(_rtgui_wintitle_constructor),
|
||||
RTGUI_DESTRUCTOR(_rtgui_wintitle_deconstructor));
|
||||
}
|
||||
|
||||
return wintitle_type;
|
||||
}
|
||||
DEFINE_CLASS_TYPE(wintitle, "wintitle",
|
||||
RTGUI_TOPLEVEL_TYPE,
|
||||
_rtgui_wintitle_constructor,
|
||||
_rtgui_wintitle_deconstructor,
|
||||
sizeof(struct rtgui_wintitle));
|
||||
|
||||
rtgui_wintitle_t* rtgui_wintitle_create(const char* title)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user