1 #include <Elementary.h>
6 #include "elw_button.h"
7 #include "elw_boxedbutton.h"
16 static const Eobj_Class *_my_class = NULL;
19 _constructor(Eobj *obj, void *class_data EINA_UNUSED)
21 eobj_constructor_super(obj);
23 Eobj *bt = eobj_add(ELW_BUTTON_CLASS, obj);
24 eobj_composite_object_attach(obj, bt);
25 eobj_event_callback_forwarder_add(bt, SIG_CLICKED, obj);
26 eobj_do(bt, EVAS_OBJ_VISIBILITY_SET(EINA_TRUE));
28 eobj_do(obj, ELW_BOX_PACK_END(bt));
33 elw_boxedbutton_class_get(void)
35 if (_my_class) return _my_class;
37 static const Eobj_Class_Description class_desc = {
39 EOBJ_CLASS_TYPE_REGULAR,
40 EOBJ_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
49 return _my_class = eobj_class_new(&class_desc, ELW_BOX_CLASS,
50 ELW_BUTTON_CLASS, NULL);