1 #include <Elementary.h>
6 #include "elw_button.h"
7 #include "elw_boxedbutton.h"
16 #define MY_CLASS ELW_BOXEDBUTTON_CLASS
19 _constructor(Eo *obj, void *class_data EINA_UNUSED)
21 eo_constructor_super(obj);
23 Eo *bt = eo_add(ELW_BUTTON_CLASS, obj);
24 eo_composite_object_attach(obj, bt);
25 eo_do(bt, eo_event_callback_forwarder_add(EV_CLICKED, obj));
26 eo_do(bt, evas_obj_visibility_set(EINA_TRUE));
28 eo_do(obj, elw_box_pack_end(bt));
32 static const Eo_Class_Description class_desc = {
34 EO_CLASS_TYPE_REGULAR,
35 EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
44 EO_DEFINE_CLASS(elw_boxedbutton_class_get, &class_desc, ELW_BOX_CLASS, ELW_BUTTON_CLASS, NULL)