mirror of https://github.com/RT-Thread/rt-thread
uniform resource name, _rtgui_type => _rtgui_object
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2134 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
b20311198a
commit
506a68edee
|
@ -29,7 +29,7 @@ static void _rtgui_object_destructor(rtgui_object_t *object)
|
||||||
/* nothing */
|
/* nothing */
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_CLASS_TYPE(type, "object",
|
DEFINE_CLASS_TYPE(object, "object",
|
||||||
RT_NULL,
|
RT_NULL,
|
||||||
_rtgui_object_constructor,
|
_rtgui_object_constructor,
|
||||||
_rtgui_object_destructor,
|
_rtgui_object_destructor,
|
||||||
|
|
|
@ -82,9 +82,9 @@ const rtgui_type_t *rtgui_object_object_type_get(rtgui_object_t *object);
|
||||||
#define RTGUI_OBJECT_CHECK_TYPE(_obj, _type) \
|
#define RTGUI_OBJECT_CHECK_TYPE(_obj, _type) \
|
||||||
(rtgui_type_inherits_from(((rtgui_object_t *)(_obj))->type, (_type)))
|
(rtgui_type_inherits_from(((rtgui_object_t *)(_obj))->type, (_type)))
|
||||||
|
|
||||||
DECLARE_CLASS_TYPE(type);
|
DECLARE_CLASS_TYPE(object);
|
||||||
/** Gets the type of an object */
|
/** Gets the type of an object */
|
||||||
#define RTGUI_OBJECT_TYPE RTGUI_TYPE(type)
|
#define RTGUI_OBJECT_TYPE RTGUI_TYPE(object)
|
||||||
/** Casts the object to an rtgui_object_t */
|
/** Casts the object to an rtgui_object_t */
|
||||||
#define RTGUI_OBJECT(obj) (RTGUI_OBJECT_CAST((obj), RTGUI_OBJECT_TYPE, struct rtgui_object))
|
#define RTGUI_OBJECT(obj) (RTGUI_OBJECT_CAST((obj), RTGUI_OBJECT_TYPE, struct rtgui_object))
|
||||||
/** Checks if the object is an rtgui_Object */
|
/** Checks if the object is an rtgui_Object */
|
||||||
|
|
Loading…
Reference in New Issue