static void
_eext_circle_object_resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
+ //C# FIXME: make resizable when using single usability
+ return;
+
+ /*
Evas_Coord w, h;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
radius /= 2;
eext_circle_object_radius_set(obj, radius);
+ */
}
//////////////////////////////
obj = elm_table_add(parent);
+ circle_obj = (Eext_Circle_Object *)calloc(1, sizeof(Eext_Circle_Object));
+ if (!circle_obj) return NULL;
+
if (!surface)
- surface = _eext_circle_surface_init(obj, NULL, EEXT_CIRCLE_SURFACE_TYPE_PRIVATE);
+ {
+ surface = _eext_circle_surface_init(obj, NULL, EEXT_CIRCLE_SURFACE_TYPE_PRIVATE);
+ circle_obj->private_surface = surface;
+ }
- circle_obj = (Eext_Circle_Object *)calloc(1, sizeof(Eext_Circle_Object));
// Obj is expected to be elm_image object.
circle_obj->main_obj = obj;
circle_obj->widget_object = widget_obj;
}
_eext_circle_surface_object_append(surface, circle_obj);
+ evas_object_show(circle_obj->main_obj);
return obj;
}
+EAPI void
+eext_circle_object_connect(Eext_Circle_Surface *surface, Evas_Object *widget_obj)
+{
+ EEXT_CIRCLE_OBJECT_GET(widget_obj, circle_obj) return;
+ _eext_circle_surface_object_append(surface, circle_obj);
+}
+
+EAPI void
+eext_circle_object_disconnect(Eext_Circle_Surface *surface, Evas_Object *widget_obj)
+{
+ EEXT_CIRCLE_OBJECT_GET(widget_obj, circle_obj) return;
+ _eext_circle_surface_object_remove(surface, circle_obj);
+ _eext_circle_surface_object_append(circle_obj->private_surface, circle_obj);
+}
+
void
_eext_circle_object_changed(Eext_Circle_Object *obj)
{