icon/image thing).
SVN revision: 71473
ext = strrchr(buf, '.');
if (ext)
{
- if (!strcmp(ext, ".edj")) elm_icon_file_set(ic, buf, "icon");
- else elm_icon_file_set(ic, buf, NULL);
+ if (!strcmp(ext, ".edj")) elm_image_file_set(ic, buf, "icon");
+ else elm_image_file_set(ic, buf, NULL);
}
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL,
{
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/%s", elm_app_data_dir_get(), t->icon);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
elm_object_part_content_set(bt, "icon", ic);
evas_object_show(ic);
}
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_01.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_02.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.0, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_03.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, EVAS_HINT_EXPAND, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_01.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_02.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_03.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.0, EVAS_HINT_EXPAND);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/icon_%02d.png",
elm_app_data_dir_get(), idx);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
rd = elm_radio_add(obj);
Evas_Object *ct, *ic = elm_icon_add(api->win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
elm_object_content_set(eina_list_nth(items, 0), ic);
ct = elm_label_add(api->win);
elm_object_text_set(ct, "Using icon as top-bubble content");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_text_set(bt, "Icon sized to button");
ic = elm_icon_add(bx);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
bt = elm_button_add(win);
elm_object_text_set(bt, "Icon no scale");
elm_object_part_content_set(bt, "icon", ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_text_set(bt, "Disabled Button");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_part_content_set(bt, "icon", ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
bt = elm_button_add(win);
elm_object_part_content_set(bt, "icon", ic);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)6);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_style_set(bt, "anchor");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_access_info_set(bt, "This is some custom text describing this widget");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
ck = elm_check_add(win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_FALSE);
ck = elm_check_add(win);
elm_object_text_set(ck, "Icon not resizable");
elm_object_part_content_set(ck, "icon", ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
ck = elm_check_add(win);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_FALSE);
ck = elm_check_add(win);
elm_object_part_content_set(ck, "icon", ic);
elm_box_pack_end(bx, ck);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
tg = elm_check_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_FALSE);
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_FALSE);
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_FALSE);
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
{ \
ic = elm_icon_add(obj); \
elm_icon_standard_set(ic, _icon); \
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_FALSE); \
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_FALSE); \
} \
else \
ic = NULL; \
char buf[PATH_MAX];
Evas_Object *ic = elm_icon_add(elm_object_parent_widget_get(eina_list_nth(disks, 0)));
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
elm_object_item_part_content_set(elm_diskselector_selected_item_get(eina_list_nth(disks, 0)), NULL, ic);
evas_object_show(ic);
}
disk = elm_diskselector_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 1, 1);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 1, 1);
elm_diskselector_item_append(disk, "Sunday", ic, NULL, NULL);
elm_diskselector_item_append(disk, "Monday", NULL, NULL, NULL);
elm_diskselector_item_append(disk, "Tuesday", NULL, NULL, NULL);
disk = elm_diskselector_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 1, 1);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 1, 1);
elm_diskselector_item_append(disk, "머리스타일", ic, NULL, NULL);
elm_diskselector_item_append(disk, "プロが伝授する", NULL, NULL, NULL);
elm_diskselector_item_append(disk, "生上访要求政府", NULL, NULL, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
char buf[PATH_MAX];
Evas_Object *ic = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
snprintf(buf, sizeof(buf), "%s/images/bubble.png", elm_app_data_dir_get());
else
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
snprintf(buf, sizeof(buf), "%s/images/panel_01.jpg", elm_app_data_dir_get());
else if ((tit->mode & 0x3) == 3)
snprintf(buf, sizeof(buf), "%s/images/rock_01.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
}
else if (!strcmp(part, "elm.swallow.end"))
{
snprintf(buf, sizeof(buf), "%s/images/sky_03.jpg", elm_app_data_dir_get());
else if ((tit->mode & 0x3) == 3)
snprintf(buf, sizeof(buf), "%s/images/sky_04.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
}
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
elm_box_horizontal_set(bx, EINA_TRUE);
ic = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_show(ic);
elm_box_pack_end(bx, ic);
ic = elm_icon_add(obj);
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_show(ic);
elm_box_pack_end(bx, ic);
elm_box_horizontal_set(bx, EINA_TRUE);
{
Evas_Object *ic = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
evas_object_show(ic);
return ic;
snprintf(buf, sizeof(buf), "%s/images/bubble.png", elm_app_data_dir_get());
else
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
{
Evas_Object *ic = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/bubble.png", PACKAGE_DATA_DIR);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
{
Evas_Object *icn = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/icon_06.png", PACKAGE_DATA_DIR);
- elm_icon_file_set(icn, buf, NULL);
+ elm_image_file_set(icn, buf, NULL);
evas_object_propagate_events_set(icn, EINA_FALSE);
evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
evas_object_smart_callback_add(icn, "clicked", _edit_icon_clicked_cb, (void *)tit->item);
{
Evas_Object *icn = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/icon_04.png", PACKAGE_DATA_DIR);
- elm_icon_file_set(icn, buf, NULL);
+ elm_image_file_set(icn, buf, NULL);
evas_object_propagate_events_set(icn, EINA_FALSE);
evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return icn;
{
Evas_Object *icn = elm_icon_add(obj);
snprintf(buf, sizeof(buf), "%s/images/icon_09.png", PACKAGE_DATA_DIR);
- elm_icon_file_set(icn, buf, NULL);
+ elm_image_file_set(icn, buf, NULL);
evas_object_propagate_events_set(icn, EINA_FALSE);
evas_object_size_hint_aspect_set(icn, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
evas_object_smart_callback_add(icn, "clicked", _flip_icon_clicked_cb, (void *)tit);
else
{
po->ic = elm_icon_add(parent);
- elm_icon_file_set(po->ic, icon, NULL);
+ elm_image_file_set(po->ic, icon, NULL);
}
po->bx = x;
{
po->shadow = elm_icon_add(po->ic);
snprintf(buf, sizeof(buf), "%s/images/pol_shadow.png", elm_app_data_dir_get());
- elm_icon_file_set(po->shadow, buf, NULL);
+ elm_image_file_set(po->shadow, buf, NULL);
evas_object_resize(po->shadow, SHADOW_W, SHADOW_H);
evas_object_show(po->shadow);
}
snprintf(infra->buf, sizeof(infra->buf),
"%s/images/g_layer/%s_%d.png", elm_app_data_dir_get(), i->name, nn);
- elm_icon_file_set(i->icon, infra->buf, NULL);
+ elm_image_file_set(i->icon, infra->buf, NULL);
_icon_color_set(i, r, g, b, a);
}
}
icons[idx].name = name;
snprintf(buf, sizeof(buf), "%s/images/g_layer/%s_1.png",
elm_app_data_dir_get(), icons[idx].name);
- elm_icon_file_set(icons[idx].icon, buf, NULL);
- elm_icon_resizable_set(icons[idx].icon, 0, 0);
+ elm_image_file_set(icons[idx].icon, buf, NULL);
+ elm_image_resizable_set(icons[idx].icon, 0, 0);
evas_object_size_hint_align_set(icons[idx].icon, 0.5, 0.5);
_icon_color_set(&icons[idx], INI_R, INI_G, INI_B, INI_A);
elm_box_pack_end(bx, icons[idx].icon);
else
{
po->ic = elm_icon_add(parent);
- elm_icon_file_set(po->ic, icon, NULL);
+ elm_image_file_set(po->ic, icon, NULL);
}
po->bx = x;
{
po->shadow = elm_icon_add(po->ic);
snprintf(buf, sizeof(buf), "%s/images/pol_shadow.png", elm_app_data_dir_get());
- elm_icon_file_set(po->shadow, buf, NULL);
+ elm_image_file_set(po->shadow, buf, NULL);
evas_object_resize(po->shadow, SHADOW_W, SHADOW_H);
evas_object_show(po->shadow);
}
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
bt = elm_button_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/sky_03.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
elm_object_part_content_set(bt, "icon", ic);
evas_object_show(ic);
aspect_fixed_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *ic = (Evas_Object *)data;
- elm_icon_aspect_fixed_set(ic, elm_check_state_get(obj));
+ elm_image_aspect_fixed_set(ic, elm_check_state_get(obj));
}
static void
smooth_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *ic = (Evas_Object *)data;
- elm_icon_smooth_set(ic, elm_check_state_get(obj));
+ elm_image_smooth_set(ic, elm_check_state_get(obj));
}
static void
elm_win_resize_object_add(win, ic);
snprintf(buf, sizeof(buf), "%s/images/insanely_huge_test_image.jpg",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ic, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_icon_resizable_set(ic, EINA_TRUE, EINA_TRUE);
- elm_icon_aspect_fixed_set(ic, EINA_FALSE);
- elm_icon_preload_disabled_set(ic, EINA_TRUE);
- elm_icon_prescale_set(ic, EINA_TRUE);
+ elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
+ elm_image_aspect_fixed_set(ic, EINA_FALSE);
+ elm_image_preload_disabled_set(ic, EINA_TRUE);
+ elm_image_prescale_set(ic, EINA_TRUE);
evas_object_show(ic);
evas_object_resize(win, 350, 350);
Evas_Object *ic = elm_icon_add(win);
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, EINA_TRUE, EINA_TRUE);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, EINA_TRUE, EINA_TRUE);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ic, EVAS_HINT_FILL, EVAS_HINT_FILL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_no_scale_set(ic, 1);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_no_scale_set(ic, 1);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(ic, 0.5, 0.5);
elm_win_resize_object_add(win, ic);
Evas_Object *ic;
ic = data;
Eina_Bool rec;
- rec = elm_icon_animated_play_get(ic);
+ rec = elm_image_animated_play_get(ic);
rec = !rec;
printf("clicked!rec =%d\n",rec);
- elm_icon_animated_play_set(ic, rec);
+ elm_image_animated_play_set(ic, rec);
}
void
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/animated_logo.gif", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- if (elm_icon_animated_available_get(ic))
+ elm_image_file_set(ic, buf, NULL);
+ if (elm_image_animated_available_get(ic))
{
printf("============Support animator==============\n");
- elm_icon_animated_set(ic, EINA_TRUE);
- elm_icon_animated_play_set(ic, EINA_TRUE);
+ elm_image_animated_set(ic, EINA_TRUE);
+ elm_image_animated_play_set(ic, EINA_TRUE);
}
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_no_scale_set(ic, 1);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_no_scale_set(ic, 1);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(ic, 0.5, 0.5);
elm_win_resize_object_add(win, ic);
ic = elm_icon_add(win);
elm_object_scale_set(ic, 0.5);
snprintf(buf, sizeof(buf), "%s/images/icon_%02i.png", elm_app_data_dir_get(), n);
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_table_pack(tb, ic, 1 + i, 1 + (j * 2), 1, 1);
ic = elm_icon_add(win);
elm_object_scale_set(ic, 0.5);
snprintf(buf, sizeof(buf), "%s/images/icon_%02i.png", elm_app_data_dir_get(), n);
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_object_part_content_set(ly2, "slot", ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 1, 1);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 1, 1);
list_it1 = elm_list_item_append(li, "Hello", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
elm_list_item_append(li, "world", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
- elm_icon_resizable_set(ic2, 0, 0);
+ elm_image_resizable_set(ic2, 0, 0);
list_it2 = elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.0, EVAS_HINT_EXPAND);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 1, 1);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 1, 1);
list_it1 = elm_list_item_append(li, "Hello", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
elm_list_item_append(li, "world", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
- elm_icon_resizable_set(ic2, 0, 0);
+ elm_image_resizable_set(ic2, 0, 0);
list_it2 = elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
list_it = elm_list_item_append(li, "Hello", ic, NULL, my_li2_sel, NULL);
elm_list_item_selected_set(list_it, EINA_TRUE);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
elm_list_item_append(li, "world", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
- elm_icon_resizable_set(ic2, 0, 0);
+ elm_image_resizable_set(ic2, 0, 0);
elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx2 = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx2, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx2, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
ic2 = elm_button_add(win);
elm_object_text_set(ic2, "Click me");
evas_object_smart_callback_add(ic2, "clicked", _bt_clicked, NULL);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
ic2 = elm_button_add(win);
elm_object_text_set(ic2, "Click me");
evas_object_smart_callback_add(ic2, "clicked", _bt_clicked, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "edit");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
elm_list_item_append(li, ".", ic, NULL, NULL, NULL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "delete");
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_resizable_set(ic, 0, 0);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
- elm_icon_resizable_set(ic2, 0, 0);
+ elm_image_resizable_set(ic2, 0, 0);
elm_list_item_append(li, "How", ic, ic2, NULL, NULL);
bx = elm_box_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.5);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.5, 0.0);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_align_set(ic, 0.0, EVAS_HINT_EXPAND);
elm_box_pack_end(bx, ic);
evas_object_show(ic);
"conceptalbums The Dark Side of the Moon, Wish You Were Here, Animals, and The Wall.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/mystrale.jpg", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
elm_list_item_append(li, "Pink Floyd", ic, NULL, NULL, &pf_data);
static char ds_data[] = "Dire Straits were a British rock band, formed by Mark Knopfler " \
"their first album going multi-platinum globally.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/mystrale_2.jpg", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
elm_list_item_append(li, "Dire Straits", ic, NULL, NULL, &ds_data);
static char uh_data[] = "Uriah Heep are an English hard rock band. The band released several " \
"perform at stadium-sized venues.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_17.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 1, 1);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 1, 1);
+ elm_image_file_set(ic, buf, NULL);
elm_list_item_append(li, "Uriah Heep", ic, NULL, NULL, &uh_data);
static char r_data[] = "Rush is a Canadian rock band formed in August 1968, in the Willowdale " \
"two weeks before the group's first United States tour.";
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_21.png", elm_app_data_dir_get());
- elm_icon_resizable_set(ic, 0, 0);
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
ic2 = elm_icon_add(win);
elm_icon_standard_set(ic2, "clock");
- elm_icon_resizable_set(ic2, 0, 0);
+ elm_image_resizable_set(ic2, 0, 0);
elm_list_item_append(li, "Rush", ic, ic2, NULL, &r_data);
elm_list_go(li);
_route_icon_get(Evas_Object *obj)
{
Evas_Object *icon = elm_icon_add(obj);
- elm_icon_file_set(icon, PACKAGE_DATA_DIR"/images/bubble.png", NULL);
+ elm_image_file_set(icon, PACKAGE_DATA_DIR"/images/bubble.png", NULL);
evas_object_show(icon);
return icon;
_icon_get(Evas_Object *obj, Overlay_Data *data)
{
Evas_Object *icon = elm_icon_add(obj);
- elm_icon_file_set(icon, data->file, NULL);
+ elm_image_file_set(icon, data->file, NULL);
evas_object_show(icon);
return icon;
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(nf);
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_item_part_content_set(it, "icon", ic);
elm_naviframe_item_title_visible_set(it, EINA_FALSE);
NULL);
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_item_part_content_set(it, "icon", ic);
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_part_content_set(bt, "icon", ic);
snprintf(buf, sizeof(buf), "%s/images/bubble.png", elm_app_data_dir_get());
else
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
Evas_Object *ic;
ic = elm_icon_add(parent);
- elm_icon_file_set(ic, img, NULL);
+ elm_image_file_set(ic, img, NULL);
elm_icon_fill_outside_set(ic, EINA_FALSE);
return ic;
}
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(nf);
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_item_part_content_set(it, "icon", ic);
elm_naviframe_item_title_visible_set(it, EINA_FALSE);
NULL);
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_item_part_content_set(it, "icon", ic);
ic = elm_icon_add(nf);
snprintf(buf, sizeof(buf), "%s/images/icon_right_arrow.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
elm_object_part_content_set(bt, "icon", ic);
icon = elm_icon_add(popup);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(icon, buf, NULL);
+ elm_image_file_set(icon, buf, NULL);
elm_object_part_content_set(popup, "title,icon", icon);
btn1 = elm_button_add(popup);
elm_object_text_set(btn1, "OK");
icon = elm_icon_add(btn);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(icon, buf, NULL);
+ elm_image_file_set(icon, buf, NULL);
elm_object_content_set(btn, icon);
elm_object_content_set(popup, btn);
elm_object_part_text_set(popup, "title,text", "Title");
elm_object_part_text_set(popup, "title,text", "Title");
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(icon1, buf, NULL);
+ elm_image_file_set(icon1, buf, NULL);
for (i = 0; i < 10; i++)
{
snprintf(buf, sizeof(buf), "Item%u", i+1);
ic1 = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic1, buf, NULL);
+ elm_image_file_set(ic1, buf, NULL);
evas_object_size_hint_aspect_set(ic1, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
pb = elm_progressbar_add(win);
_test_progressbar.pb5 = pb;
ic2 = elm_icon_add(win);
- elm_icon_file_set(ic2, buf, NULL);
+ elm_image_file_set(ic2, buf, NULL);
evas_object_size_hint_aspect_set(ic2, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
pb = elm_progressbar_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
rd = elm_radio_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 1);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 4);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 5);
ic = elm_icon_add(in_layout);
snprintf(buf1, sizeof(buf1), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf1, NULL);
+ elm_image_file_set(ic, buf1, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
ic1 = elm_icon_add(in_layout);
snprintf(buf2, sizeof(buf2), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic1, buf2, NULL);
+ elm_image_file_set(ic1, buf2, NULL);
evas_object_size_hint_aspect_set(ic1, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
segment1 = elm_segment_control_add(win);
ic2 = elm_icon_add(in_layout);
snprintf(buf3, sizeof(buf3), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic2, buf3, NULL);
+ elm_image_file_set(ic2, buf3, NULL);
evas_object_size_hint_aspect_set(ic2, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
ic3 = elm_icon_add(in_layout);
snprintf(buf4, sizeof(buf4), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic3, buf4, NULL);
+ elm_image_file_set(ic3, buf4, NULL);
evas_object_size_hint_aspect_set(ic3, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
ic4 = elm_icon_add(in_layout);
snprintf(buf5, sizeof(buf5), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic4, buf5, NULL);
+ elm_image_file_set(ic4, buf5, NULL);
evas_object_size_hint_aspect_set(ic4, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
segment3 = elm_segment_control_add(win);
ic5 = elm_icon_add(in_layout);
snprintf(buf6, sizeof(buf6), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic5, buf6, NULL);
+ elm_image_file_set(ic5, buf6, NULL);
evas_object_size_hint_aspect_set(ic5, EVAS_ASPECT_CONTROL_BOTH, 1, 1);
segment4 = elm_segment_control_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
sl = elm_slider_add(win);
/* horizontal disable state */
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
sl = elm_slider_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
sl = elm_slider_add(win);
/* label2 disable */
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
sl = elm_slider_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
sl = elm_slider_add(win);
/* vertical disable state */
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
sl = elm_slider_add(win);
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_resize(ic, 64, 64);
return ic;
}
Evas_Object *ic = elm_icon_add(tt);
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
return ic;
}
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/insanely_huge_test_image.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_size_get(ic, &w, &h);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_object_size_get(ic, &w, &h);
+ elm_image_resizable_set(ic, 0, 0);
elm_win_screen_size_get(tt, NULL, NULL, &sw, &sh);
if ((w > sw) || (h > sh))
{
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/logo_small.png",
elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_resize(ic, 64, 64);
return ic;
}
Evas_Object *ic = elm_icon_add(tt);
char buf[PATH_MAX];
snprintf(buf, sizeof(buf), "%s/images/icon_00.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_resize(ic, 64, 64);
return ic;
}
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_11.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/rock_01.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_max_set(ic, 50, 50);
bt = elm_button_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_max_set(ic, 50, 50);
bt2 = elm_button_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/rock_01.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_max_set(ic, 50, 50);
bt = elm_button_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/rock_02.jpg", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_max_set(ic, 50, 50);
bt2 = elm_button_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
+ elm_image_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bb = elm_bubble_add(win);
ic = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
- elm_icon_file_set(ic, buf, NULL);
- elm_icon_resizable_set(ic, 0, 0);
+ elm_image_file_set(ic, buf, NULL);
+ elm_image_resizable_set(ic, 0, 0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
bb = elm_bubble_add(win);
parent_widget = edje;
icon = elm_icon_add(parent_widget);
- if (elm_icon_file_set(icon, file, p->s))
+ if (elm_image_file_set(icon, file, p->s))
return icon;
if (elm_icon_standard_set(icon, p->s))
return icon;
if (p->file)
{
- elm_icon_file_set(obj, p->file, NULL);
+ elm_image_file_set(obj, p->file, NULL);
param_icon->file = p->file;
}
if (p->smooth_exists)
{
- elm_icon_smooth_set(obj, p->smooth);
+ elm_image_smooth_set(obj, p->smooth);
param_icon->smooth = p->smooth;
}
if (p->no_scale_exists)
{
- elm_icon_no_scale_set(obj, p->no_scale);
+ elm_image_no_scale_set(obj, p->no_scale);
param_icon->no_scale = p->no_scale;
}
if (p->scale_up_exists && p->scale_down_exists)
{
- elm_icon_resizable_set(obj, p->scale_up, p->scale_down);
+ elm_image_resizable_set(obj, p->scale_up, p->scale_down);
param_icon->scale_up = p->scale_up;
param_icon->scale_down = p->scale_down;
}
{
if (p->scale_up_exists)
{
- elm_icon_resizable_set(obj, p->scale_up, param_icon->scale_down);
+ elm_image_resizable_set(obj, p->scale_up, param_icon->scale_down);
param_icon->scale_up = p->scale_up;
}
else
{
- elm_icon_resizable_set(obj, param_icon->scale_up, p->scale_down);
+ elm_image_resizable_set(obj, param_icon->scale_up, p->scale_down);
param_icon->scale_down = p->scale_down;
}
}
}
if (p->prescale_size_exists)
{
- elm_icon_prescale_set(obj, p->prescale_size);
+ elm_image_prescale_set(obj, p->prescale_size);
param_icon->prescale_size = p->prescale_size;
}
if (p->icon)
edje = evas_object_smart_parent_get(obj);
edje_object_file_get(edje, &file, NULL);
- if (!elm_icon_file_set(obj, file, p->icon))
+ if (!elm_image_file_set(obj, file, p->icon))
elm_icon_standard_set(obj, p->icon);
}
}
if (!strcmp(param->name, "file")
&& param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- Eina_Bool ret = elm_icon_file_set(obj, param->s, NULL);
+ Eina_Bool ret = elm_image_file_set(obj, param->s, NULL);
if (ret)
param_icon->file = param->s;
return ret;
else if (!strcmp(param->name, "smooth")
&& param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
- elm_icon_smooth_set(obj, param->i);
+ elm_image_smooth_set(obj, param->i);
param_icon->smooth = param->i;
return EINA_TRUE;
}
else if (!strcmp(param->name, "no scale")
&& param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
- elm_icon_no_scale_set(obj, param->i);
+ elm_image_no_scale_set(obj, param->i);
param_icon->no_scale = param->i;
return EINA_TRUE;
}
else if (!strcmp(param->name, "scale up")
&& param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
- elm_icon_resizable_set(obj, param->i, param_icon->scale_down);
+ elm_image_resizable_set(obj, param->i, param_icon->scale_down);
param_icon->scale_up = param->i;
return EINA_TRUE;
}
else if (!strcmp(param->name, "scale down")
&& param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
{
- elm_icon_resizable_set(obj, param_icon->scale_up, param->i);
+ elm_image_resizable_set(obj, param_icon->scale_up, param->i);
param_icon->scale_down = param->i;
return EINA_TRUE;
}
else if (!strcmp(param->name, "prescale")
&& param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
{
- elm_icon_prescale_set(obj, param->i);
+ elm_image_prescale_set(obj, param->i);
param_icon->prescale_size = param->i;
return EINA_TRUE;
}
edje = evas_object_smart_parent_get(obj);
edje_object_file_get(edje, &file, NULL);
- if (!elm_icon_file_set(obj, file, param->s))
+ if (!elm_image_file_set(obj, file, param->s))
elm_icon_standard_set(obj, param->s);
return EINA_TRUE;
}
if (item->icon_file)
{
ic = elm_icon_add(obj);
- elm_icon_resizable_set(ic, EINA_FALSE, EINA_TRUE);
+ elm_image_resizable_set(ic, EINA_FALSE, EINA_TRUE);
if (item->icon_type == ELM_ICON_FILE)
- elm_icon_file_set(ic, item->icon_file, item->icon_group);
+ elm_image_file_set(ic, item->icon_file, item->icon_group);
else if (item->icon_type == ELM_ICON_STANDARD)
elm_icon_standard_set(ic, item->icon_file);
elm_object_part_content_set(bt, "icon", ic);
/* FIXME: Images only */
icon = elm_icon_add(dragwin);
- elm_icon_file_set(icon, data + 7, NULL); /* 7!? "file://" */
+ elm_image_file_set(icon, data + 7, NULL); /* 7!? "file://" */
elm_win_resize_object_add(dragwin, icon);
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
if (sd->freedesktop.use)
{
sd->freedesktop.requested_size = size;
- elm_icon_file_set(obj, path, NULL);
+ elm_image_file_set(obj, path, NULL);
return EINA_TRUE;
}
#endif
const char *path)
#endif
{
- if (elm_icon_file_set(obj, path, NULL))
+ if (elm_image_file_set(obj, path, NULL))
{
#ifdef ELM_EFREET
/* TODO: elm_unneed_efreet() */
Evas_Object *dupp;
dupp = elm_icon_add(parent);
- elm_icon_file_get(icon, &file, &group);
- elm_icon_file_set(dupp, file, group);
- elm_icon_animated_set(dupp, elm_icon_animated_get(icon));
- elm_icon_animated_play_set(dupp, elm_icon_animated_play_get(icon));
+ elm_image_file_get(icon, &file, &group);
+ elm_image_file_set(dupp, file, group);
+ elm_image_animated_set(dupp, elm_image_animated_get(icon));
+ elm_image_animated_play_set(dupp, elm_image_animated_play_get(icon));
elm_icon_standard_set(dupp, elm_icon_standard_get(icon));
elm_icon_order_lookup_set(dupp, elm_icon_order_lookup_get(icon));
- elm_icon_no_scale_set(dupp, elm_icon_no_scale_get(icon));
- elm_icon_resizable_get(icon, &size_up, &size_down);
- elm_icon_resizable_set(dupp, size_up, size_down);
- elm_icon_fill_outside_set(dupp, elm_icon_fill_outside_get(icon));
- elm_icon_prescale_set(dupp, elm_icon_prescale_get(icon));
- elm_icon_aspect_fixed_set(dupp, elm_icon_aspect_fixed_get(icon));
+ elm_image_no_scale_set(dupp, elm_image_no_scale_get(icon));
+ elm_image_resizable_get(icon, &size_up, &size_down);
+ elm_image_resizable_set(dupp, size_up, size_down);
+ elm_icon_fill_outside_set(dupp, elm_image_fill_outside_get(icon));
+ elm_image_prescale_set(dupp, elm_image_prescale_get(icon));
+ elm_image_aspect_fixed_set(dupp, elm_image_aspect_fixed_get(icon));
return dupp;
}
if (sd->fill_inside)
{
Edje_Message_Int_Set *msg;
- Evas_Object *img = elm_icon_object_get(sd->icon);
+ Evas_Object *img = elm_image_object_get(sd->icon);
evas_object_geometry_get(img, NULL, NULL, &w, &h);
msg = alloca(sizeof(Edje_Message_Int_Set) + (sizeof(int)));
evas_object_event_callback_del
(sd->icon, EVAS_CALLBACK_MOUSE_MOVE, _mouse_move);
- img = elm_icon_object_get(sd->icon);
+ img = elm_image_object_get(sd->icon);
file = NULL;
evas_object_image_file_get(img, &file, NULL);
if (file)
{
int size;
- elm_icon_size_get(icon, &size, NULL);
+ elm_image_object_size_get(icon, &size, NULL);
return (size < 32) ? 32 : size;
}
ELM_PHOTO_DATA_GET(obj, sd);
- img = elm_icon_object_get(sd->icon);
+ img = elm_image_object_get(sd->icon);
evas_object_event_callback_add
(img, EVAS_CALLBACK_MOVE, _icon_move_resize_cb, obj);
priv->icon = elm_icon_add(obj);
evas_object_repeat_events_set(priv->icon, EINA_TRUE);
- elm_icon_resizable_set(priv->icon, EINA_TRUE, EINA_TRUE);
- elm_icon_smooth_set(priv->icon, EINA_TRUE);
+ elm_image_resizable_set(priv->icon, EINA_TRUE, EINA_TRUE);
+ elm_image_smooth_set(priv->icon, EINA_TRUE);
elm_icon_fill_outside_set(priv->icon, !priv->fill_inside);
- elm_icon_prescale_set(priv->icon, 0);
+ elm_image_prescale_set(priv->icon, 0);
elm_object_scale_set(priv->icon, elm_widget_scale_get(obj));
ELM_PHOTO_CHECK(obj) EINA_FALSE;
ELM_PHOTO_DATA_GET(obj, sd);
- if (!elm_icon_file_set(sd->icon, file, NULL))
+ if (!elm_image_file_set(sd->icon, file, NULL))
return EINA_FALSE;
_sizing_eval(obj);
ELM_PHOTO_CHECK(obj);
ELM_PHOTO_DATA_GET(obj, sd);
- return elm_icon_aspect_fixed_set(sd->icon, fixed);
+ return elm_image_aspect_fixed_set(sd->icon, fixed);
}
EAPI Eina_Bool
ELM_PHOTO_CHECK(obj) EINA_FALSE;
ELM_PHOTO_DATA_GET(obj, sd);
- return elm_icon_aspect_fixed_get(sd->icon);
+ return elm_image_aspect_fixed_get(sd->icon);
}
EVAS_ASPECT_CONTROL_VERTICAL,
m->details.icon.w,
m->details.icon.h);
- elm_icon_smooth_set(ic, m->details.icon.smooth);
- elm_icon_no_scale_set(ic, m->details.icon.no_scale);
- elm_icon_resizable_set(ic,
+ elm_image_smooth_set(ic, m->details.icon.smooth);
+ elm_image_no_scale_set(ic, m->details.icon.no_scale);
+ elm_image_resizable_set(ic,
m->details.icon.scale_up,
m->details.icon.scale_down);
if (s)
if (m->details.icon.standard_name)
elm_icon_standard_set(ic, s);
else
- elm_icon_file_set(ic, s, NULL);
+ elm_image_file_set(ic, s, NULL);
}
break;
case ELM_STORE_ITEM_MAPPING_PHOTO:
file = _elm_theme_group_file_find(th, buf2);
if (file)
{
- elm_icon_file_set(o, file, buf2);
- elm_icon_size_get(o, &w, &h);
+ elm_image_file_set(o, file, buf2);
+ elm_image_object_size_get(o, &w, &h);
if (w > 0) return EINA_TRUE;
}
snprintf(buf2, sizeof(buf2), "elm/icon/%s/default", group);
if (!file) return EINA_FALSE;
- elm_icon_file_set(o, file, buf2);
- elm_icon_size_get(o, &w, &h);
+ elm_image_file_set(o, file, buf2);
+ elm_image_object_size_get(o, &w, &h);
return w > 0;
}
{
icon_obj = elm_icon_add(obj);
evas_object_repeat_events_set(icon_obj, EINA_TRUE);
- ret = elm_icon_memfile_set(icon_obj, img, size, format, key);
+ ret = elm_image_memfile_set(icon_obj, img, size, format, key);
if (!ret)
{
evas_object_del(icon_obj);
{
icon_obj = elm_icon_add(obj);
evas_object_repeat_events_set(icon_obj, EINA_TRUE);
- ret = elm_icon_file_set(icon_obj, file, key);
+ ret = elm_image_file_set(icon_obj, file, key);
if (!ret)
{
evas_object_del(icon_obj);
EINA_LIST_FOREACH(transit->objs, elist, obj)
{
if (elm_widget_type_check(obj, type, __func__))
- elm_icon_file_set(obj,
+ elm_image_file_set(obj,
eina_list_nth(image_animation->images, count), NULL);
}