2012-04-05 08:31:15 -07:00
|
|
|
#include <Elementary.h>
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
#include "Eo.h"
|
2012-04-05 08:31:15 -07:00
|
|
|
#include "evas_obj.h"
|
|
|
|
#include "elw_box.h"
|
|
|
|
#include "elw_button.h"
|
|
|
|
#include "elw_boxedbutton.h"
|
|
|
|
|
2012-04-12 06:52:13 -07:00
|
|
|
#include "config.h"
|
|
|
|
|
2012-04-05 08:31:15 -07:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
// Evas_Object *bx;
|
|
|
|
} Widget_Data;
|
|
|
|
|
2012-04-23 01:09:54 -07:00
|
|
|
#define MY_CLASS ELW_BOXEDBUTTON_CLASS
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
static void
|
2012-05-01 00:40:14 -07:00
|
|
|
_constructor(Eo *obj, void *class_data EINA_UNUSED)
|
2012-04-05 08:31:15 -07:00
|
|
|
{
|
2012-05-01 00:40:14 -07:00
|
|
|
eo_constructor_super(obj);
|
2012-04-05 08:31:15 -07:00
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
Eo *bt = eo_add(ELW_BUTTON_CLASS, obj);
|
|
|
|
eo_composite_object_attach(obj, bt);
|
2012-05-14 00:35:19 -07:00
|
|
|
eo_do(bt, eo_event_callback_forwarder_add(EV_CLICKED, obj));
|
2012-05-01 00:40:14 -07:00
|
|
|
eo_do(bt, evas_obj_visibility_set(EINA_TRUE));
|
2012-04-05 08:31:15 -07:00
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
eo_do(obj, elw_box_pack_end(bt));
|
|
|
|
eo_unref(bt);
|
2012-04-05 08:31:15 -07:00
|
|
|
}
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
static const Eo_Class_Description class_desc = {
|
2012-04-23 01:09:54 -07:00
|
|
|
"Elw BoxedButton",
|
2012-05-01 00:40:14 -07:00
|
|
|
EO_CLASS_TYPE_REGULAR,
|
|
|
|
EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
|
2012-04-23 01:09:54 -07:00
|
|
|
NULL,
|
|
|
|
sizeof(Widget_Data),
|
|
|
|
_constructor,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
EO_DEFINE_CLASS(elw_boxedbutton_class_get, &class_desc, ELW_BOX_CLASS, ELW_BUTTON_CLASS, NULL)
|
2012-04-05 08:31:15 -07:00
|
|
|
|