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, va_list *list EINA_UNUSED)
21 eo_do_super(obj, eo_constructor());
23 Eo *bt = eo_add(ELW_BUTTON_CLASS, obj);
24 eo_composite_attach(bt, obj);
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));
33 _class_constructor(Eo_Class *klass)
35 const Eo_Op_Func_Description func_desc[] = {
36 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
40 eo_class_funcs_set(klass, func_desc);
43 static const Eo_Class_Description class_desc = {
45 EO_CLASS_TYPE_REGULAR,
46 EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
53 EO_DEFINE_CLASS(elw_boxedbutton_class_get, &class_desc, ELW_BOX_CLASS, ELW_BUTTON_CLASS, NULL)