}
EOLIAN static void
-_elm_image_smooth_scale_set(Eo *obj EINA_UNUSED, Elm_Image_Data *sd, Eina_Bool smooth)
+_elm_image_efl_image_smooth_scale_set(Eo *obj EINA_UNUSED, Elm_Image_Data *sd, Eina_Bool smooth)
{
if (sd->edje) return;
}
EOLIAN static Eina_Bool
-_elm_image_smooth_scale_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
+_elm_image_efl_image_smooth_scale_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
{
if (sd->edje) return EINA_FALSE;
static Eina_Bool
_elm_image_drag_n_drop_cb(void *elm_obj,
- Evas_Object *obj,
- Elm_Selection_Data *drop)
+ Evas_Object *obj,
+ Elm_Selection_Data *drop)
{
Eina_Bool ret = EINA_FALSE;
eo_do(obj, ret = efl_file_set(drop->data, NULL));
if (ret)
{
DBG("dnd: %s, %s, %s", elm_widget_type_get(elm_obj),
- SIG_DND, (char *)drop->data);
+ SIG_DND, (char *)drop->data);
evas_object_smart_callback_call(elm_obj, SIG_DND, drop->data);
return EINA_TRUE;
evas_object_repeat_events_set(priv->hit_rect, EINA_TRUE);
evas_object_event_callback_add
- (priv->hit_rect, EVAS_CALLBACK_MOUSE_UP, _on_mouse_up, obj);
+ (priv->hit_rect, EVAS_CALLBACK_MOUSE_UP, _on_mouse_up, obj);
/* starts as an Evas image. may switch to an Edje object */
priv->img = _img_new(obj);
_elm_image_internal_sizing_eval(obj, sd);
- eo_do(obj, elm_obj_image_smooth_scale_set(sd->smooth));
+ eo_do(obj, efl_image_smooth_scale_set(sd->smooth));
if (sd->no_scale)
eo_do(obj, elm_obj_image_scale_set(1.0));
else
- eo_do(obj, elm_obj_image_smooth_scale_set(elm_widget_scale_get(obj) * elm_config_scale_get()));
+ eo_do(obj, efl_image_smooth_scale_set(elm_widget_scale_get(obj) * elm_config_scale_get()));
ts = sd->scale;
sd->scale = 1.0;
int size)
{
ELM_IMAGE_CHECK(obj);
- eo_do(obj, elm_obj_image_load_size_set(size));
+ eo_do(obj, efl_image_load_size_set(size, size));
}
EOLIAN static void
-_elm_image_load_size_set(Eo *obj EINA_UNUSED, Elm_Image_Data *sd, int size)
+_elm_image_efl_image_load_size_set(Eo *obj EINA_UNUSED, Elm_Image_Data *sd, int w, int h)
{
- sd->load_size = size;
+ if (w > h)
+ sd->load_size = w;
+ else
+ sd->load_size = h;
}
EAPI int
{
ELM_IMAGE_CHECK(obj) 0;
- int ret = 0;
- eo_do((Eo *)obj, ret = elm_obj_image_load_size_get());
- return ret;
+ int w = 0;
+ eo_do((Eo *)obj, efl_image_load_size_get(&w, NULL));
+ return w;
}
-EOLIAN static int
-_elm_image_load_size_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd)
+EOLIAN static void
+_elm_image_efl_image_load_size_get(Eo *obj EINA_UNUSED, Elm_Image_Data *sd, int *w, int *h)
{
- return sd->load_size;
+ if (w) *w = sd->load_size;
+ if (h) *h = sd->load_size;
}
EOLIAN static void
-class Elm_Image (Elm_Widget, Efl.File, Evas.Clickable_Interface,
+class Elm_Image (Elm_Widget, Efl.File, Efl.Image, Evas.Clickable_Interface,
Elm_Interface_Atspi_Image, Elm_Interface_Atspi_Widget_Action)
{
eo_prefix: elm_obj_image;
bool set; /*@ Turn on or off editability. Default is @c EINA_FALSE. */
}
}
- smooth_scale {
- set {
- /*@ No description supplied by the EAPI. */
- legacy: null;
- }
- get {
- /*@ No description supplied by the EAPI. */
- legacy: null;
- }
- values {
- bool smooth;
- }
- }
resize_down {
set {
/*@ No description supplied by the EAPI. */
bool resize_down;
}
}
- load_size {
- set {
- /*@ No description supplied by the EAPI. */
- legacy: null;
- }
- get {
- /*@ No description supplied by the EAPI. */
- legacy: null;
- }
- values {
- int size;
- }
- }
animated_play {
set {
/*@
Eo.Base.constructor;
Efl.File.file.set;
Efl.File.file.get;
+ Efl.Image.load_size.set;
+ Efl.Image.load_size.get;
+ Efl.Image.smooth_scale.set;
+ Efl.Image.smooth_scale.get;
Evas.Object_Smart.hide;
Evas.Object_Smart.clip.set;
Evas.Object_Smart.clip_unset;