summaryrefslogtreecommitdiff
path: root/components/rtgui/common/rtgui_object.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-08-27 07:57:19 +0000
committer[email protected] <[email protected]>2012-08-27 07:57:19 +0000
commit64b0cd34fe31b9277d091d71e2a877f81d582df5 (patch)
tree58c546e41fcd49b01b0bc9f3286d093d3bee176e /components/rtgui/common/rtgui_object.c
parenta2c5b921511c555410425e1f099624c391a2b7fc (diff)
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
Diffstat (limited to 'components/rtgui/common/rtgui_object.c')
-rw-r--r--components/rtgui/common/rtgui_object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/rtgui/common/rtgui_object.c b/components/rtgui/common/rtgui_object.c
index 95a7c4e17e..81c3acc701 100644
--- a/components/rtgui/common/rtgui_object.c
+++ b/components/rtgui/common/rtgui_object.c
@@ -34,6 +34,7 @@ DEFINE_CLASS_TYPE(object, "object",
_rtgui_object_constructor,
_rtgui_object_destructor,
sizeof(struct rtgui_object));
+RTM_EXPORT(_rtgui_object);
void rtgui_type_object_construct(const rtgui_type_t *type, rtgui_object_t *object)
{
@@ -121,6 +122,7 @@ rtgui_object_t *rtgui_object_create(rtgui_type_t *object_type)
return new_object;
}
+RTM_EXPORT(rtgui_object_create);
/**
* @brief Destroys the object: it first sets the weak-pointers to RT_NULL, emits the "destroyed" signal, and then
@@ -146,6 +148,7 @@ void rtgui_object_destroy(rtgui_object_t *object)
/* release object */
rtgui_free(object);
}
+RTM_EXPORT(rtgui_object_destroy);
/**
* @brief Checks if @a object can be cast to @a type.
@@ -166,6 +169,8 @@ rtgui_object_t *rtgui_object_check_cast(rtgui_object_t *obj, rtgui_type_t *obj_t
return obj;
}
+RTM_EXPORT(rtgui_object_check_cast);
+
/**
* @brief Gets the type of the object
@@ -178,6 +183,7 @@ const rtgui_type_t *rtgui_object_object_type_get(rtgui_object_t *object)
return object->type;
}
+RTM_EXPORT(rtgui_object_object_type_get);
void rtgui_object_set_event_handler(struct rtgui_object *object, rtgui_event_handler_ptr handler)
{
@@ -185,9 +191,11 @@ void rtgui_object_set_event_handler(struct rtgui_object *object, rtgui_event_han
object->event_handler = handler;
}
+RTM_EXPORT(rtgui_object_set_event_handler);
rt_bool_t rtgui_object_event_handler(struct rtgui_object *object, struct rtgui_event* event)
{
return RT_FALSE;
}
+RTM_EXPORT(rtgui_object_event_handler);