elementary/elm_widget - oops. recorvered a missing struct and added a macro to verify elm_object_item

SVN revision: 62084
This commit is contained in:
ChunEon Park 2011-08-04 08:52:49 +00:00
parent 067e8f4ad9
commit e97d8d28ff
1 changed files with 10 additions and 0 deletions

View File

@ -218,9 +218,19 @@ struct _Elm_Widget_Item
/* @todo: TODO check if this is enough for 1.0 release, maybe add padding! */
};
struct _Elm_Object_Item
{
Elm_Widget_Item it;
};
#define ELM_NEW(t) calloc(1, sizeof(t))
#define ELM_CAST(p) ((void *)(p))
#define ELM_OBJ_ITEM_CHECK_OR_RETURN(it, ...) \
ELM_WIDGET_ITEM_CHECK_OR_RETURN((Elm_Widget_Item *) (it), __VA_ARGS__); \
ELM_CHECK_WIDTYPE(it->it.widget, widtype) __VA_ARGS__;
EAPI Eina_Bool elm_widget_api_check(int ver);
EAPI Evas_Object *elm_widget_add(Evas *evas);
EAPI void elm_widget_del_hook_set(Evas_Object *obj, void (*func) (Evas_Object *obj));