1 #include <Elementary.h>
3 #include "elm_widget_container.h"
5 static const char CONTAINER_SMART_NAME[] = "elm_container";
7 /* Elementary smart class for all widgets containing others */
8 EVAS_SMART_SUBCLASS_NEW
9 (CONTAINER_SMART_NAME, _elm_container, Elm_Container_Smart_Class,
10 Elm_Widget_Smart_Class, elm_widget_smart_class_get, NULL);
12 /* no *direct* instantiation of this class, so far */
13 __UNUSED__ static Evas_Smart *_elm_container_smart_class_new(void);
16 _unimplemented_smart_content_set(Evas_Object *obj,
17 const char *name __UNUSED__,
18 Evas_Object *content __UNUSED__)
20 WRN("The %s widget does not implement the \"content_set()\" function.",
21 elm_widget_type_get(obj));
27 _unimplemented_smart_content_get(const Evas_Object *obj,
28 const char *name __UNUSED__)
30 WRN("The %s widget does not implement the \"content_get()\" function.",
31 elm_widget_type_get(obj));
37 _unimplemented_smart_content_unset(Evas_Object *obj,
38 const char *name __UNUSED__)
40 WRN("The %s widunset does not implement the \"content_unset()\" function.",
41 elm_widget_type_get(obj));
46 EAPI const Elm_Container_Smart_Class *
47 elm_container_smart_class_get(void)
49 static Elm_Container_Smart_Class _sc =
50 ELM_CONTAINER_SMART_CLASS_INIT_NAME_VERSION(CONTAINER_SMART_NAME);
51 static const Elm_Container_Smart_Class *class = NULL;
56 _elm_container_smart_set(&_sc);
63 _elm_container_smart_set_user(Elm_Container_Smart_Class *sc)
65 sc->content_set = _unimplemented_smart_content_set;
66 sc->content_get = _unimplemented_smart_content_get;
67 sc->content_unset = _unimplemented_smart_content_unset;