* Finally, we have an area in this layout theme, in the bottom part of it,
* reserved for adding an specific widget. Differently from the 2 parts
* described until now, this one can only receive one widget with the call
- * elm_object_content_part_set() for the layout. If there was already an item on this specific part,
- * it will be deleted (one can use elm_object_content_part_unset() in order to remove
+ * elm_object_part_content_set() for the layout. If there was already an item on this specific part,
+ * it will be deleted (one can use elm_object_part_content_unset() in order to remove
* it without deleting). An example of removing it without deleting, but
* manually deleting this widget just after that, can be seen on the callback
* for this button. Actually, the callback defined for this button will clean
* Also notice that, for this last added button, we don't have to call
* evas_object_show() on it. This is a particularity of the theme for layouts,
* that will have total control over the properties like size, position,
- * visibility and clipping of a widget added with elm_object_content_part_set().
+ * visibility and clipping of a widget added with elm_object_part_content_set().
* Again, read the Edje documentation to understand this better.
*
* Now we just put the code for the different callbacks specified for each kind
Evas_Object *o2 = elm_icon_add(win);
elm_icon_standard_set(o2, "home");
-elm_object_content_part_set(o, "icon", o2);
+elm_object_part_content_set(o, "icon", o2);
evas_object_show(o2);
#include "widget_preview_tmpl_foot.c"
Evas_Object *o2 = elm_icon_add(win);
elm_icon_standard_set(o2, "home");
-elm_object_content_part_set(o, "icon", o2);
+elm_object_part_content_set(o, "icon", o2);
evas_object_show(o2);
#include "widget_preview_tmpl_foot.c"
Evas_Object *o2 = elm_icon_add(win);
elm_icon_standard_set(o2, "home");
-elm_object_content_part_set(o, "icon", o2);
+elm_object_part_content_set(o, "icon", o2);
evas_object_show(o2);
#include "widget_preview_tmpl_foot.c"
Evas_Object *o2 = elm_icon_add(win);
elm_icon_standard_set(o2, "home");
-elm_object_content_part_set(o, "icon", o2);
+elm_object_part_content_set(o, "icon", o2);
evas_object_show(o2);
#include "widget_preview_tmpl_foot.c"
Evas_Object *o2 = elm_icon_add(win);
elm_icon_standard_set(o2, "home");
-elm_object_content_part_set(o, "icon", o2);
+elm_object_part_content_set(o, "icon", o2);
evas_object_show(o2);
#include "widget_preview_tmpl_foot.c"
Evas_Object *o2 = elm_icon_add(win);
elm_icon_standard_set(o2, "home");
-elm_object_content_part_set(o, "icon", o2);
+elm_object_part_content_set(o, "icon", o2);
evas_object_show(o2);
#include "widget_preview_tmpl_foot.c"
evas_object_size_hint_min_set(icon, 200, 140);
evas_object_show(icon);
-elm_object_content_part_set(layout, "elm.swallow.content", icon);
+elm_object_part_content_set(layout, "elm.swallow.content", icon);
elm_object_part_text_set(layout, "elm.text.title", "Layout");
#include "widget_preview_tmpl_foot.c"
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
evas_object_size_hint_align_set(bt, -1.0, -1.0);
evas_object_show(bt);
-elm_object_content_part_set(panes, "left", bt);
+elm_object_part_content_set(panes, "left", bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Right");
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
evas_object_size_hint_align_set(bt, -1.0, -1.0);
evas_object_show(bt);
-elm_object_content_part_set(panes, "right", bt);
+elm_object_part_content_set(panes, "right", bt);
#include "widget_preview_tmpl_foot.c"
pb = elm_progressbar_add(win);
elm_object_text_set(pb, "Label");
elm_progressbar_span_size_set(pb, 100);
-elm_object_content_part_set(pb, "icon", ic);
+elm_object_part_content_set(pb, "icon", ic);
elm_progressbar_unit_format_set(pb, "%1.1f units");
evas_object_size_hint_align_set(pb, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(pb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
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_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_show(ic);
}
elm_box_pack_end(tbx2, bt);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 3");
- elm_object_text_part_set(bb, "info", "10:32 4/11/2008");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "10:32 4/11/2008");
+ elm_object_part_content_set(bb, "icon", ic);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 2");
- elm_object_text_part_set(bb, "info", "7:16 27/10/2008");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "7:16 27/10/2008");
+ elm_object_part_content_set(bb, "icon", ic);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
- elm_object_text_part_set(bb, "info", "20:47 18/6/2008");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "20:47 18/6/2008");
+ elm_object_part_content_set(bb, "icon", ic);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
parent = elm_object_parent_widget_get(o_bg);
over = edje_object_add(evas_object_evas_get(parent));
edje_object_file_set(over, buff, "bg_overlay");
- elm_object_content_part_set(o_bg, "overlay", over);
+ elm_object_part_content_set(o_bg, "overlay", over);
}
else
- elm_object_content_part_set(o_bg, "overlay", NULL);
+ elm_object_part_content_set(o_bg, "overlay", NULL);
}
static void
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
- elm_object_text_part_set(bb, "info", "Corner: bottom_right");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "Corner: bottom_right");
+ elm_object_part_content_set(bb, "icon", ic);
elm_bubble_corner_set(bb, "bottom_right");
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
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");
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)1);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)1);
elm_box_pack_end(bx, bt);
elm_icon_scale_set(ic, 0, 0);
bt = elm_button_add(win);
elm_object_text_set(bt, "Icon no scale");
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)2);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)2);
elm_box_pack_end(bx, bt);
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");
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_disabled_set(bt, 1);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)3);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)3);
elm_icon_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_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_disabled_set(bt, 1);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)4);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)4);
elm_icon_file_set(ic, buf, NULL);
elm_icon_scale_set(ic, 0, 0);
bt = elm_button_add(win);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)6);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)6);
elm_box_pack_end(bx, bt);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_style_set(bt, "anchor");
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)8);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)8);
elm_box_pack_end(bx, bt);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(win);
elm_object_style_set(bt, "anchor");
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_disabled_set(bt, 1);
evas_object_smart_callback_add(bt, "clicked", _bt_clicked, (void *)9);
evas_object_smart_callback_add(bt, "unpressed", _bt_unpressed, (void *)9);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, EVAS_HINT_FILL, 0.5);
elm_object_text_set(ck, "Icon sized to check");
- elm_object_content_part_set(ck, "icon", ic);
+ elm_object_part_content_set(ck, "icon", ic);
elm_check_state_set(ck, 1);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
elm_icon_scale_set(ic, 0, 0);
ck = elm_check_add(win);
elm_object_text_set(ck, "Icon no scale");
- elm_object_content_part_set(ck, "icon", ic);
+ elm_object_part_content_set(ck, "icon", ic);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
evas_object_show(ic);
evas_object_size_hint_weight_set(ck, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ck, EVAS_HINT_FILL, 0.5);
elm_object_text_set(ck, "Disabled check");
- elm_object_content_part_set(ck, "icon", ic);
+ elm_object_part_content_set(ck, "icon", ic);
elm_check_state_set(ck, 1);
elm_box_pack_end(bx, ck);
elm_object_disabled_set(ck, 1);
elm_icon_file_set(ic, buf, NULL);
elm_icon_scale_set(ic, 0, 0);
ck = elm_check_add(win);
- elm_object_content_part_set(ck, "icon", ic);
+ elm_object_part_content_set(ck, "icon", ic);
elm_box_pack_end(bx, ck);
evas_object_show(ck);
evas_object_show(ic);
re = evas_object_rectangle_add(evas_object_evas_get(win));
evas_object_show(re);
- elm_object_content_part_set(ly, "ColorPreview", re);
+ elm_object_part_content_set(ly, "ColorPreview", re);
fr = elm_frame_add(win);
evas_object_size_hint_weight_set(fr, 1.0, 0);
elm_layout_file_set(ly, buf, "test/layout/swallow");
bt = elm_button_add(win);
elm_object_text_set(bt, "Cursor over obj");
- elm_object_content_part_set(ly, "swallow1", bt);
+ elm_object_part_content_set(ly, "swallow1", bt);
elm_object_cursor_set(bt, ELM_CURSOR_PIRATE);
bt = elm_button_add(win);
elm_object_text_set(bt, "Cursor over part");
- elm_object_content_part_set(ly, "swallow2", bt);
+ elm_object_part_content_set(ly, "swallow2", bt);
elm_layout_part_cursor_set(ly, "swallow2", ELM_CURSOR_PIRATE);
elm_box_pack_end(bx, ly);
evas_object_show(ly);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_entry_entry_set(en, "This is a single line");
elm_entry_single_line_set(en, 1);
- elm_object_content_part_set(ly, "element1", en);
+ elm_object_part_content_set(ly, "element1", en);
evas_object_show(en);
en = elm_entry_add(win);
"use it more flexibly.");
evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(en, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_object_content_part_set(ly, "element2", en);
+ elm_object_part_content_set(ly, "element2", en);
evas_object_show(en);
en = elm_entry_add(win);
"good testing to see if entry widgets work as advertised."
);
evas_object_smart_callback_add(en, "anchor,clicked", scrolled_anchor_test, en);
- elm_object_content_part_set(ly, "element3", en);
+ elm_object_part_content_set(ly, "element3", en);
evas_object_show(en);
evas_object_show(win);
bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 1");
- elm_object_content_part_set(ly, "element1", bt);
+ elm_object_part_content_set(ly, "element1", bt);
bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 2");
- elm_object_content_part_set(ly, "element2", bt);
+ elm_object_part_content_set(ly, "element2", bt);
bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 3");
- elm_object_content_part_set(ly, "element3", bt);
+ elm_object_part_content_set(ly, "element3", bt);
evas_object_show(fl);
evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL,
EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bx2, 0.0, 0.0);
- elm_object_content_part_set(ly, "element1", bx2);
+ elm_object_part_content_set(ly, "element1", bx2);
my_show(bx2);
for (i = 3; i; i--)
evas_object_size_hint_align_set(bx2, EVAS_HINT_FILL,
EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bx2, 0.0, 0.0);
- elm_object_content_part_set(ly, "element2", bx2);
+ elm_object_part_content_set(ly, "element2", bx2);
my_show(bx2);
{
bt1 = bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 1");
- elm_object_content_part_set(ly, "element1", bt);
+ elm_object_part_content_set(ly, "element1", bt);
en = elm_entry_add(ly);
elm_entry_scrollable_set(en, EINA_TRUE);
elm_entry_scrollbar_policy_set(en, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF);
elm_entry_entry_set(en, "Scrolled Entry that should get focus");
elm_entry_single_line_set(en, 1);
- elm_object_content_part_set(ly, "element2", en);
+ elm_object_part_content_set(ly, "element2", en);
bt = elm_button_add(ly);
elm_object_text_set(bt, "Button 2");
- elm_object_content_part_set(ly, "element3", bt);
+ elm_object_part_content_set(ly, "element3", bt);
bt = elm_button_add(PARENT);
elm_object_text_set(bt, "Give focus to layout");
Evas_Object *postit = elm_layout_add(win);
snprintf(buf, sizeof(buf), "%s/objects/postit_ent.edj", elm_app_data_dir_get());
elm_layout_file_set(postit, buf, "main");
- elm_object_content_part_set(postit, "ent", en);
+ elm_object_part_content_set(postit, "ent", en);
photo_object_add(win, postit, NULL, 50, 50, 382, 400, 355);
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 1");
- elm_object_content_part_set(ly, "element1", bt);
+ elm_object_part_content_set(ly, "element1", bt);
evas_object_show(bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 2");
- elm_object_content_part_set(ly, "element2", bt);
+ elm_object_part_content_set(ly, "element2", bt);
evas_object_show(bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 3");
- elm_object_content_part_set(ly, "element3", bt);
+ elm_object_part_content_set(ly, "element3", bt);
evas_object_show(bt);
mb = elm_mapbuf_add(win);
slx = (int)(long)evas_object_data_get(data, "slx");
sly = (int)(long)evas_object_data_get(data, "sly");
snprintf(buf, sizeof(buf), "slot.%i.%i", slx, sly);
- elm_object_content_part_unset(ly, buf);
+ elm_object_part_content_unset(ly, buf);
edje_object_signal_emit(elm_layout_edje_get(ly2), "drag", "app");
return EINA_FALSE;
}
slx = (int)(long)evas_object_data_get(obj, "slx");
sly = (int)(long)evas_object_data_get(obj, "sly");
snprintf(buf, sizeof(buf), "slot.%i.%i", slx, sly);
- elm_object_content_part_set(ly, buf, ly2);
+ elm_object_part_content_set(ly, buf, ly2);
list = (Eina_List *)evas_object_data_get
(elm_object_top_widget_get(obj), "mbs");
EINA_LIST_FOREACH(list, l, mb)
elm_icon_scale_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_content_part_set(ly2, "slot", ic);
+ elm_object_part_content_set(ly2, "slot", ic);
evas_object_show(ic);
evas_object_event_callback_add(ic, EVAS_CALLBACK_DEL, l3_ic_del_cb, ic);
evas_object_data_set(ic, "sly", (void *)(long)(j));
snprintf(buf, sizeof(buf), "slot.%i.%i", i, j);
- elm_object_content_part_set(ly, buf, ly2);
+ elm_object_part_content_set(ly, buf, ly2);
evas_object_show(ly2);
n++; if (n > 23) n = 0;
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 1");
- elm_object_content_part_set(ly, "element1", bt);
+ elm_object_part_content_set(ly, "element1", bt);
evas_object_smart_callback_add(bt, "clicked", _clicked_cb, ly);
evas_object_show(bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 2");
- elm_object_content_part_set(ly, "element2", bt);
+ elm_object_part_content_set(ly, "element2", bt);
evas_object_smart_callback_add(bt, "clicked", _clicked_cb, ly);
evas_object_show(bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Button 3");
- elm_object_content_part_set(ly, "element3", bt);
+ elm_object_part_content_set(ly, "element3", bt);
evas_object_smart_callback_add(bt, "clicked", _clicked_cb, ly);
evas_object_show(bt);
evas_object_show(icon);
Evas_Object *o = elm_button_add(obj);
- elm_object_content_part_set(o, "icon", icon);
+ elm_object_part_content_set(o, "icon", icon);
evas_object_show(o);
elm_box_pack_end(bx, o);
}
bt = elm_button_add(nf);
evas_object_smart_callback_add(bt, "clicked", _page5, nf);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
content = _content_new(nf, img4);
elm_app_data_dir_get());
elm_icon_file_set(ic, buf, NULL);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
content = _content_new(nf, img2);
bt = elm_button_add(win);
elm_object_text_set(bt, "Flip to 1");
evas_object_smart_callback_add(bt, "clicked", my_pager_4, &info);
- elm_object_content_part_set(ly2, "element1", bt);
+ elm_object_part_content_set(ly2, "element1", bt);
evas_object_show(bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Popme");
evas_object_smart_callback_add(bt, "clicked", my_pager_pop, &info);
evas_object_show(bt);
- elm_object_content_part_set(ly2, "element2", bt);
+ elm_object_part_content_set(ly2, "element2", bt);
- elm_object_content_part_set(ly, "swallow", ly2);
+ elm_object_part_content_set(ly, "swallow", ly2);
evas_object_show(ly);
elm_pager_content_push(pg, ly);
evas_object_size_hint_weight_set(bt, 1.0, 1.0);
evas_object_size_hint_align_set(bt, -1.0, -1.0);
evas_object_show(bt);
- elm_object_content_part_set(panes, "left", bt);
+ elm_object_part_content_set(panes, "left", bt);
//
//
evas_object_smart_callback_add(panes_h, "press", _press, panes_h);
evas_object_smart_callback_add(panes_h, "unpress", _unpress, panes_h);
- elm_object_content_part_set(panes, "right", panes_h);
+ elm_object_part_content_set(panes, "right", panes_h);
//
//
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bt);
- elm_object_content_part_set(panes_h, "left", bt);
+ elm_object_part_content_set(panes_h, "left", bt);
//
//
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bt);
- elm_object_content_part_set(panes_h, "right", bt);
+ elm_object_part_content_set(panes_h, "right", bt);
//
pb = elm_progressbar_add(win);
elm_object_text_set(pb, "Label");
- elm_object_content_part_set(pb, "icon", ic1);
+ elm_object_part_content_set(pb, "icon", ic1);
elm_progressbar_inverted_set(pb, 1);
elm_progressbar_unit_format_set(pb, "%1.1f units");
elm_progressbar_span_size_set(pb, 200);
pb = elm_progressbar_add(win);
elm_progressbar_horizontal_set(pb, EINA_FALSE);
elm_object_text_set(pb, "Label");
- elm_object_content_part_set(pb, "icon", ic2);
+ elm_object_part_content_set(pb, "icon", ic2);
elm_progressbar_inverted_set(pb, 1);
elm_progressbar_unit_format_set(pb, "%1.2f%%");
elm_progressbar_span_size_set(pb, 200);
evas_object_size_hint_weight_set(rd, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(rd, EVAS_HINT_FILL, 0.5);
elm_object_text_set(rd, "Icon sized to radio");
- elm_object_content_part_set(rd, "icon", ic);
+ elm_object_part_content_set(rd, "icon", ic);
elm_box_pack_end(bx, rd);
evas_object_show(rd);
evas_object_show(ic);
elm_radio_state_value_set(rd, 1);
elm_radio_group_add(rd, rdg);
elm_object_text_set(rd, "Icon no scale");
- elm_object_content_part_set(rd, "icon", ic);
+ elm_object_part_content_set(rd, "icon", ic);
elm_box_pack_end(bx, rd);
evas_object_show(rd);
evas_object_show(ic);
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 4);
elm_radio_group_add(rd, rdg);
- elm_object_content_part_set(rd, "icon", ic);
+ elm_object_part_content_set(rd, "icon", ic);
elm_box_pack_end(bx, rd);
evas_object_show(rd);
evas_object_show(ic);
rd = elm_radio_add(win);
elm_radio_state_value_set(rd, 5);
elm_radio_group_add(rd, rdg);
- elm_object_content_part_set(rd, "icon", ic);
+ elm_object_part_content_set(rd, "icon", ic);
elm_object_disabled_set(rd, 1);
elm_box_pack_end(bx, rd);
evas_object_show(rd);
it3 = elm_segment_control_item_add(segment4, NULL, "Disabled");
elm_object_disabled_set(segment4, EINA_TRUE);
- elm_object_content_part_set(in_layout, "segment1", segment1);
- elm_object_content_part_set(in_layout, "segment2", segment2);
- elm_object_content_part_set(in_layout, "segment3", segment3);
- elm_object_content_part_set(in_layout, "segment4", segment4);
+ elm_object_part_content_set(in_layout, "segment1", segment1);
+ elm_object_part_content_set(in_layout, "segment2", segment2);
+ elm_object_part_content_set(in_layout, "segment3", segment3);
+ elm_object_part_content_set(in_layout, "segment4", segment4);
evas_object_show(in_layout);
sl = elm_slider_add(win);
sl1 = sl;
elm_object_text_set(sl, "Horizontal");
- elm_object_content_part_set(sl, "icon", ic);
+ elm_object_part_content_set(sl, "icon", ic);
elm_slider_unit_format_set(sl, "%1.1f units");
elm_slider_span_size_set(sl, 120);
evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
sl = elm_slider_add(win);
elm_object_text_set(sl, "Disabled");
- elm_object_content_part_set(sl, "icon", ic);
+ elm_object_part_content_set(sl, "icon", ic);
elm_slider_unit_format_set(sl, "%1.1f units");
elm_slider_span_size_set(sl, 120);
elm_slider_min_max_set(sl, 50, 150);
sl = elm_slider_add(win);
elm_object_text_set(sl, "Horizontal inverted");
- elm_object_content_part_set(sl, "end", ic);
+ elm_object_part_content_set(sl, "end", ic);
elm_slider_span_size_set(sl, 80);
evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(sl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
sl = elm_slider_add(win);
elm_object_text_set(sl, "Disabled inverted");
- elm_object_content_part_set(sl, "end", ic);
+ elm_object_part_content_set(sl, "end", ic);
elm_slider_span_size_set(sl, 80);
evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(sl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
sl = elm_slider_add(win);
- elm_object_content_part_set(sl, "icon", ic);
+ elm_object_part_content_set(sl, "icon", ic);
elm_object_text_set(sl, "Vertical inverted");
elm_slider_inverted_set(sl, EINA_TRUE);
elm_slider_unit_format_set(sl, "units");
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_HORIZONTAL, 1, 1);
sl = elm_slider_add(win);
- elm_object_content_part_set(sl, "icon", ic);
+ elm_object_part_content_set(sl, "icon", ic);
elm_object_text_set(sl, "Disabled vertical");
elm_slider_inverted_set(sl, EINA_TRUE);
elm_slider_unit_format_set(sl, "units");
evas_object_size_hint_weight_set(tg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(tg, EVAS_HINT_FILL, 0.5);
elm_object_text_set(tg, "Icon sized to toggle");
- elm_object_content_part_set(tg, "icon", ic);
+ elm_object_part_content_set(tg, "icon", ic);
elm_check_state_set(tg, 1);
elm_object_part_text_set(tg, "on", "Yes");
elm_object_part_text_set(tg, "off", "No");
tg = elm_toggle_add(win);
elm_object_text_set(tg, "Icon no scale");
- elm_object_content_part_set(tg, "icon", ic);
+ elm_object_part_content_set(tg, "icon", ic);
elm_box_pack_end(bx, tg);
evas_object_show(tg);
evas_object_show(ic);
tg = elm_toggle_add(win);
elm_object_text_set(tg, "Icon no scale");
- elm_object_content_part_set(tg, "icon", ic);
+ elm_object_part_content_set(tg, "icon", ic);
elm_object_disabled_set(tg, 1);
elm_box_pack_end(bx, tg);
evas_object_show(tg);
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
- elm_object_content_part_set(tg, "icon", ic);
+ elm_object_part_content_set(tg, "icon", ic);
elm_box_pack_end(bx, tg);
evas_object_show(tg);
evas_object_show(ic);
bt = elm_button_add(win);
elm_object_text_set(bt, "ImageAnimation Effect");
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_box_pack_end(bx, bt);
evas_object_show(bt);
evas_object_show(ic);
evas_object_size_hint_max_set(ic, 50, 50);
bt = elm_button_add(win);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_text_set(bt, "Before Button - Blend Effect");
evas_object_move(bt, 25, 125);
evas_object_resize(bt, 250, 50);
evas_object_size_hint_max_set(ic, 50, 50);
bt2 = elm_button_add(win);
- elm_object_content_part_set(bt2, "icon", ic);
+ elm_object_part_content_set(bt2, "icon", ic);
elm_object_text_set(bt2, "After Button - Blend Effect");
evas_object_move(bt2, 25, 125);
evas_object_resize(bt2, 250, 50);
evas_object_size_hint_max_set(ic, 50, 50);
bt = elm_button_add(win);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_text_set(bt, "Before Button - Fade Effect");
evas_object_move(bt, 25, 125);
evas_object_resize(bt, 250, 50);
evas_object_size_hint_max_set(ic, 50, 50);
bt2 = elm_button_add(win);
- elm_object_content_part_set(bt2, "icon", ic);
+ elm_object_part_content_set(bt2, "icon", ic);
elm_object_text_set(bt2, "After Button - Fade Effect");
evas_object_move(bt2, 25, 125);
evas_object_resize(bt2, 250, 50);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 3");
- elm_object_text_part_set(bb, "info", "10:32 4/11/2008");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "10:32 4/11/2008");
+ elm_object_part_content_set(bb, "icon", ic);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 2");
- elm_object_text_part_set(bb, "info", "7:16 27/10/2008");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "7:16 27/10/2008");
+ elm_object_part_content_set(bb, "icon", ic);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
- elm_object_text_part_set(bb, "info", "20:47 18/6/2008");
- elm_object_content_part_set(bb, "icon", ic);
+ elm_object_part_text_set(bb, "info", "20:47 18/6/2008");
+ elm_object_part_content_set(bb, "icon", ic);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
if (p->label) elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
- if (p->info) elm_object_text_part_set(obj, "info", p->info);
- if (p->content) elm_bubble_content_set(obj, p->content);
+ elm_object_part_content_set(obj, "icon", p->icon);
+ if (p->info) elm_object_part_text_set(obj, "info", p->info);
+ if (p->content) elm_object_content_set(obj, p->content);
}
static Eina_Bool
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
if (p->label)
elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
+ elm_object_part_content_set(obj, "icon", p->icon);
}
static Eina_Bool
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
if (p->label)
elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
+ elm_object_part_content_set(obj, "icon", p->icon);
if (p->state_exists)
elm_check_state_set(obj, p->state);
}
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
else return;
if (p->content_left)
- elm_object_content_part_set(obj, "left", p->content_left);
+ elm_object_part_content_set(obj, "left", p->content_left);
if (p->content_right)
- elm_object_content_part_set(obj, "right", p->content_right);
+ elm_object_part_content_set(obj, "right", p->content_right);
if (p->is_left_size)
elm_panes_content_left_size_set(obj, p->left_size);
Evas_Object *content = external_common_param_edje_object_get(obj, param);
if ((strcmp(param->s, "")) && (!content))
return EINA_FALSE;
- elm_object_content_part_set(obj, "left", content);
+ elm_object_part_content_set(obj, "left", content);
return EINA_TRUE;
}
else if ((!strcmp(param->name, "content right"))
Evas_Object *content = external_common_param_edje_object_get(obj, param);
if ((strcmp(param->s, "")) && (!content))
return EINA_FALSE;
- elm_object_content_part_set(obj, "right", content);
+ elm_object_part_content_set(obj, "right", content);
return EINA_TRUE;
}
else if ((!strcmp(param->name, "horizontal"))
const char *content)
{
if (!strcmp(content, "left"))
- return elm_object_content_part_get(obj, "left");
+ return elm_object_part_content_get(obj, "left");
else if (!strcmp(content, "right"))
- return elm_object_content_part_get(obj, "right");
+ return elm_object_part_content_get(obj, "right");
ERR("unknown content '%s'", content);
if (p->label)
elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
+ elm_object_part_content_set(obj, "icon", p->icon);
if (p->span_exists)
elm_progressbar_span_size_set(obj, p->span);
if (p->value_exists)
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
if (p->label)
elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
+ elm_object_part_content_set(obj, "icon", p->icon);
if (p->value_exists)
elm_radio_state_value_set(obj, p->value);
if (p->group_name)
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
if (p->label)
elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
+ elm_object_part_content_set(obj, "icon", p->icon);
if (p->span_exists)
elm_slider_span_size_set(obj, p->span);
if ((p->min_exists) && (p->max_exists))
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
if (p->label)
elm_object_text_set(obj, p->label);
if (p->icon)
- elm_object_content_part_set(obj, "icon", p->icon);
+ elm_object_part_content_set(obj, "icon", p->icon);
if (p->on)
elm_object_part_text_set(obj, "on", p->on);
{
Evas_Object *icon = external_common_param_icon_get(obj, param);
if ((strcmp(param->s, "")) && (!icon)) return EINA_FALSE;
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
return EINA_TRUE;
}
}
parent = elm_object_parent_widget_get(o_bg);
over = edje_object_add(evas_object_evas_get(parent));
edje_object_file_set(over, buff, "bg_overlay");
- elm_object_content_part_set(o_bg, "overlay", over);
+ elm_object_part_content_set(o_bg, "overlay", over);
}
else
- elm_object_content_part_set(o_bg, "overlay", NULL);
+ elm_object_part_content_set(o_bg, "overlay", NULL);
}
static void
evas_object_show(icon);
bubble = elm_bubble_add(win);
- elm_object_content_part_set(bubble, "icon", icon);
+ elm_object_part_content_set(bubble, "icon", icon);
elm_bubble_info_set(bubble, "INFO");
elm_object_text_set(bubble, "LABEL");
elm_bubble_content_set(bubble, label);
_btn_cursors_release_cb(void *data, Evas_Object *btn __UNUSED__, void *ev __UNUSED__)
{
App_Data *app = data;
- elm_object_content_part_set(app->mid, "icon", app->icon_still);
+ elm_object_part_content_set(app->mid, "icon", app->icon_still);
app->icon_still = NULL;
}
app->icon_still = elm_object_content_unset(app->mid);
icon = elm_icon_add(app->mid);
elm_icon_standard_set(icon, "chat");
- elm_object_content_part_set(app->mid, "icon", icon);
+ elm_object_part_content_set(app->mid, "icon", icon);
}
evas_object_size_hint_align_get(app->mid, &ax, &ay);
icon = elm_icon_add(win);
elm_icon_standard_set(icon, "arrow_up");
- elm_object_content_part_set(btn, "icon", icon);
+ elm_object_part_content_set(btn, "icon", icon);
data.cursors.up = btn;
icon = elm_icon_add(win);
elm_icon_standard_set(icon, "arrow_left");
- elm_object_content_part_set(btn, "icon", icon);
+ elm_object_part_content_set(btn, "icon", icon);
data.cursors.left = btn;
icon = elm_icon_add(win);
elm_icon_standard_set(icon, "close");
- elm_object_content_part_set(btn, "icon", icon);
+ elm_object_part_content_set(btn, "icon", icon);
data.mid = btn;
icon = elm_icon_add(win);
elm_icon_standard_set(icon, "arrow_right");
- elm_object_content_part_set(btn, "icon", icon);
+ elm_object_part_content_set(btn, "icon", icon);
data.cursors.right = btn;
icon = elm_icon_add(win);
elm_icon_standard_set(icon, "arrow_down");
- elm_object_content_part_set(btn, "icon", icon);
+ elm_object_part_content_set(btn, "icon", icon);
data.cursors.down = btn;
cb2 = elm_check_add(win);
elm_object_text_set(cb2, "another checkbox");
elm_check_state_set(cb2, EINA_TRUE);
- elm_object_content_part_set(cb2, "icon", icon);
+ elm_object_part_content_set(cb2, "icon", icon);
evas_object_move(cb2, 10, 50);
evas_object_resize(cb2, 200, 30);
evas_object_show(cb2);
icon = elm_layout_add(win);
elm_layout_theme_set(icon, "entry", "emoticon/haha", "default");
- elm_object_content_part_set(o, "icon", icon);
+ elm_object_part_content_set(o, "icon", icon);
evas_object_smart_callback_add(o, "clicked", _image_insert_cb, &app);
elm_layout_table_clear(layout, TABLE, EINA_TRUE);
elm_layout_box_remove_all(layout, BOX, EINA_TRUE);
- item = elm_object_content_part_unset(layout, SWALLOW);
+ item = elm_object_part_content_unset(layout, SWALLOW);
evas_object_del(item);
}
bt2 = elm_button_add(win);
elm_object_text_set(bt2, "Delete All");
- elm_object_content_part_set(layout, SWALLOW, bt2);
+ elm_object_part_content_set(layout, SWALLOW, bt2);
evas_object_smart_callback_add(bt2, "clicked", _swallow_btn_cb, layout);
evas_object_size_hint_min_set(bg, 160, 160);
_signal_cb(void *data, Evas_Object *o, const char *emission, const char *source __UNUSED__)
{
struct _App *app = data;
- Evas_Object *icon = elm_object_content_part_get(o, "elm.swallow.content");
+ Evas_Object *icon = elm_object_part_content_get(o, "elm.swallow.content");
printf("signal received\n");
icon = elm_icon_add(win);
elm_icon_standard_set(icon, images[app.current]);
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_content_part_set(layout, "elm.swallow.content", icon);
+ elm_object_part_content_set(layout, "elm.swallow.content", icon);
elm_object_signal_callback_add(layout, "elm,action,back", "", _signal_cb, &app);
elm_object_signal_callback_add(layout, "elm,action,next", "", _signal_cb, &app);
elm_object_text_set(btn, "Enlarge me!");
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_object_content_part_set(layout, SWALLOW, btn);
+ elm_object_part_content_set(layout, SWALLOW, btn);
evas_object_smart_callback_add(btn, "clicked", _swallow_btn_cb, layout);
evas_object_size_hint_min_set(bg, 160, 160);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bt);
- elm_object_content_part_set(panes, "left", bt);
+ elm_object_part_content_set(panes, "left", bt);
panes_h = elm_panes_add(win);
elm_panes_horizontal_set(panes_h, EINA_TRUE);
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(panes_h, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(panes_h);
- elm_object_content_part_set(panes, "right", panes_h);
+ elm_object_part_content_set(panes, "right", panes_h);
bt = elm_button_add(win);
elm_object_text_set(bt, "Up");
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bt);
- elm_object_content_part_set(panes_h, "left", bt);
+ elm_object_part_content_set(panes_h, "left", bt);
bt = elm_button_add(win);
elm_object_text_set(bt, "Down");
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(bt);
- elm_object_content_part_set(panes_h, "right", bt);
+ elm_object_part_content_set(panes_h, "right", bt);
evas_object_smart_callback_add(panes, "clicked", _clicked, panes);
evas_object_smart_callback_add(panes, "clicked,double", _clicked_double,
/* pb with label, icon, custom unit label and span size set */
pb = elm_progressbar_add(win);
elm_object_text_set(pb, "Label");
- elm_object_content_part_set(pb, "icon", ic1);
+ elm_object_part_content_set(pb, "icon", ic1);
elm_progressbar_inverted_set(pb, EINA_TRUE);
elm_progressbar_unit_format_set(pb, "%1.1f units");
elm_progressbar_span_size_set(pb, 200);
pb = elm_progressbar_add(win);
elm_progressbar_horizontal_set(pb, EINA_FALSE);
elm_object_text_set(pb, "Label");
- elm_object_content_part_set(pb, "icon", ic2);
+ elm_object_part_content_set(pb, "icon", ic2);
elm_progressbar_inverted_set(pb, EINA_TRUE);
elm_progressbar_unit_format_set(pb, "%1.2f%%");
elm_progressbar_span_size_set(pb, 200);
elm_radio_value_pointer_set(radio, &val);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "home");
- elm_object_content_part_set(radio, "icon", ic);
+ elm_object_part_content_set(radio, "icon", ic);
elm_box_pack_end(bx, radio);
evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_radio_group_add(radio, group);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "file");
- elm_object_content_part_set(radio, "icon", ic);
+ elm_object_part_content_set(radio, "icon", ic);
elm_box_pack_end(bx, radio);
evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(radio, EVAS_HINT_FILL, EVAS_HINT_FILL);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "home");
elm_icon_scale_set(ic, EINA_FALSE, EINA_FALSE);
- elm_object_content_part_set(sl, "icon", ic);
+ elm_object_part_content_set(sl, "icon", ic);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "folder");
elm_icon_scale_set(ic, EINA_FALSE, EINA_FALSE);
- elm_object_content_part_set(sl, "end", ic);
+ elm_object_part_content_set(sl, "end", ic);
evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
evas_object_size_hint_weight_set(sl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
icon = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_07.png", PACKAGE_DATA_DIR);
elm_icon_file_set(icon, buf, NULL);
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
evas_object_move(obj, 160, 60);
evas_object_resize(obj, 250, 100);
evas_object_show(obj);
icon = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_07.png", PACKAGE_DATA_DIR);
elm_icon_file_set(icon, buf, NULL);
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
evas_object_move(obj, 160, 60);
evas_object_resize(obj, 250, 100);
evas_object_show(obj);
icon = elm_icon_add(win);
snprintf(buf, sizeof(buf), "%s/images/icon_08.png", PACKAGE_DATA_DIR);
elm_icon_file_set(icon, buf, NULL);
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
evas_object_move(obj, 160, 60);
evas_object_resize(obj, 250, 100);
ic = elm_icon_add(ad->win);
elm_icon_standard_set(ic, "arrow_up");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _search_prev_cb, ad);
ic = elm_icon_add(ad->win);
elm_icon_standard_set(ic, "arrow_down");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _search_next_cb, ad);
ic = elm_icon_add(ad->win);
elm_icon_standard_set(ic, "close");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _search_close_cb, ad);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "arrow_left");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _nav_back_cb, ad);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "refresh");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _nav_refresh_cb, ad);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "arrow_right");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _nav_fwd_cb, ad);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "file");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
evas_object_smart_callback_add(btn, "clicked", _add_tab_cb, ad);
ic = elm_icon_add(win);
elm_icon_standard_set(ic, "close");
- elm_object_content_part_set(btn, "icon", ic);
+ elm_object_part_content_set(btn, "icon", ic);
pager = elm_pager_add(win);
evas_object_size_hint_weight_set(pager, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
* @param content The new content of the object
*
* @note Elementary objects may have many contents
+ * @deprecated Use elm_object_part_content_set instead.
+ * @ingroup General
+ */
+ EINA_DEPRECATED EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
+
+ /**
+ * Set a content of an object
+ *
+ * @param obj The Elementary object
+ * @param part The content part name to set (NULL for the default content)
+ * @param content The new content of the object
+ *
+ * @note Elementary objects may have many contents
*
* @ingroup General
*/
- EAPI void elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
+ EAPI void elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content);
+
+#define elm_object_content_set(obj, content) elm_object_part_content_set((obj), NULL, (content))
-#define elm_object_content_set(obj, content) elm_object_content_part_set((obj), NULL, (content))
+ /**
+ * Get a content of an object
+ *
+ * @param obj The Elementary object
+ * @param item The content part name to get (NULL for the default content)
+ * @return content of the object or NULL for any error
+ *
+ * @note Elementary objects may have many contents
+ * @deprecated Use elm_object_part_content_get instead.
+ * @ingroup General
+ */
+ EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
/**
* Get a content of an object
*
* @ingroup General
*/
- EAPI Evas_Object *elm_object_content_part_get(const Evas_Object *obj, const char *part);
+ EAPI Evas_Object *elm_object_part_content_get(const Evas_Object *obj, const char *part);
+
+#define elm_object_content_get(obj) elm_object_part_content_get((obj), NULL)
-#define elm_object_content_get(obj) elm_object_content_part_get((obj), NULL)
+ /**
+ * Unset a content of an object
+ *
+ * @param obj The Elementary object
+ * @param item The content part name to unset (NULL for the default content)
+ *
+ * @note Elementary objects may have many contents
+ * @deprecated Use elm_object_part_content_unset instead.
+ * @ingroup General
+ */
+ EINA_DEPRECATED EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
/**
* Unset a content of an object
*
* @ingroup General
*/
- EAPI Evas_Object *elm_object_content_part_unset(Evas_Object *obj, const char *part);
+ EAPI Evas_Object *elm_object_part_content_unset(Evas_Object *obj, const char *part);
-#define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
+#define elm_object_content_unset(obj) elm_object_part_content_unset((obj), NULL)
/**
* Get the widget object's handle which contains a given item
* deleted, even if you set the new one to NULL. If you want to keep that
* old content object, use the elm_bg_overlay_unset() function.
*
- * @deprecated use elm_object_content_part_set() instead
+ * @deprecated use elm_object_part_content_set() instead
*
* @ingroup Bg
*/
*
* Unparent and return the overlay object which was set for this widget
*
- * @deprecated use elm_object_content_part_unset() instead
+ * @deprecated use elm_object_part_content_unset() instead
*
* @ingroup Bg
*/
*
* @param obj The button object
* @param icon The icon object for the button
- * @deprecated use elm_object_content_part_set() instead.
+ * @deprecated use elm_object_part_content_set() instead.
*/
EAPI void elm_button_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
/**
* @param obj The button object
* @return The icon object that is being used
*
- * @deprecated use elm_object_content_part_get() instead
+ * @deprecated use elm_object_part_content_get() instead
*/
EAPI Evas_Object *elm_button_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
/**
*
* @param obj The button object
* @return The icon object that was being used
- * @deprecated use elm_object_content_part_unset() instead.
+ * @deprecated use elm_object_part_content_unset() instead.
*/
EAPI Evas_Object *elm_button_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
/**
* elm_layout_box_append().
*
* @see elm_layout_box_append()
- * @see elm_object_content_part_get()
- * @see elm_object_content_part_unset()
+ * @see elm_object_part_content_get()
+ * @see elm_object_part_content_unset()
* @see @ref secBox
+ * @deprecated use elm_object_part_content_set() instead
*
* @ingroup Layout
*/
*
* @return The swallowed object or NULL if none or an error occurred
*
- * @see elm_object_content_part_set()
+ * @deprecated use elm_object_part_content_get() instead
*
* @ingroup Layout
*/
*
* Unparent and return the content object which was set for this part.
*
- * @see elm_object_content_part_set()
+ * @deprecated use elm_object_part_content_unset() instead
*
* @ingroup Layout
*/
* @see elm_object_signal_callback_add()
* @see elm_object_signal_emit()
* @see elm_object_part_text_set()
- * @see elm_object_content_part_set()
+ * @see elm_object_part_content_set()
* @see elm_layout_box_append()
* @see elm_layout_table_pack()
* @see elm_layout_data_get()
#define elm_layout_icon_set(_ly, _obj) \
do { \
const char *sig; \
- elm_object_content_part_set((_ly), "elm.swallow.icon", (_obj)); \
+ elm_object_part_content_set((_ly), "elm.swallow.icon", (_obj)); \
if ((_obj)) sig = "elm,state,icon,visible"; \
else sig = "elm,state,icon,hidden"; \
elm_object_signal_emit((_ly), sig, "elm"); \
* @ingroup Layout
*/
#define elm_layout_icon_get(_ly) \
- elm_object_content_part_get((_ly), "elm.swallow.icon")
+ elm_object_part_content_get((_ly), "elm.swallow.icon")
/**
* @def elm_layout_end_set
#define elm_layout_end_set(_ly, _obj) \
do { \
const char *sig; \
- elm_object_content_part_set((_ly), "elm.swallow.end", (_obj)); \
+ elm_object_part_content_set((_ly), "elm.swallow.end", (_obj)); \
if ((_obj)) sig = "elm,state,end,visible"; \
else sig = "elm,state,end,hidden"; \
elm_object_signal_emit((_ly), sig, "elm"); \
* @ingroup Layout
*/
#define elm_layout_end_get(_ly) \
- elm_object_content_part_get((_ly), "elm.swallow.end")
+ elm_object_part_content_get((_ly), "elm.swallow.end")
/**
* @def elm_layout_label_set
* it won't get properly displayed.
*
* @ingroup Slider
- * @deprecated use elm_object_content_part_set() instead.
+ * @deprecated use elm_object_part_content_set() instead.
*/
EAPI void elm_slider_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
*
* @see elm_slider_icon_set() for more details
* @see elm_slider_icon_get()
- * @deprecated use elm_object_content_part_unset() instead.
+ * @deprecated use elm_object_part_content_unset() instead.
*
* @ingroup Slider
*/
* @see elm_slider_icon_set() for more details
* @see elm_slider_icon_unset()
*
- * @deprecated use elm_object_content_part_get() instead.
+ * @deprecated use elm_object_part_content_get() instead.
*
* @ingroup Slider
*/
* @warning If the object being set does not have minimum size hints set,
* it won't get properly displayed.
*
- * @deprecated use elm_object_content_part_set() instead.
+ * @deprecated use elm_object_part_content_set() instead.
*
* @ingroup Slider
*/
* @see elm_slider_end_set() for more details.
* @see elm_slider_end_get()
*
- * @deprecated use elm_object_content_part_unset() instead
+ * @deprecated use elm_object_part_content_unset() instead
* instead.
*
* @ingroup Slider
* @see elm_slider_end_unset()
*
*
- * @deprecated use elm_object_content_part_get() instead
+ * @deprecated use elm_object_part_content_get() instead
* instead.
*
* @ingroup Slider
* If you want to keep that old content object, use the
* elm_object_content_unset() function.
*
- * @deprecated use elm_object_content_part_set() instead.
+ * @deprecated use elm_object_part_content_set() instead.
*
*/
EINA_DEPRECATED EAPI void elm_check_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
* @param obj The check object
* @return The icon object
*
- * @deprecated use elm_object_content_part_get() instead.
+ * @deprecated use elm_object_part_content_get() instead.
*
*/
EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
*
* Unparent and return the icon object which was set for this widget.
*
- * @deprecated use elm_object_content_part_unset() instead.
+ * @deprecated use elm_object_part_content_unset() instead.
*
*/
EINA_DEPRECATED EAPI Evas_Object *elm_check_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
* want to keep that old content object, use the elm_radio_icon_unset()
* function.
*
- * @deprecated use elm_object_content_part_set() instead.
+ * @deprecated use elm_object_part_content_set() instead.
*
*/
EAPI void elm_radio_icon_set(Evas_Object *obj, Evas_Object *icon) EINA_ARG_NONNULL(1);
*
* @see elm_radio_icon_set()
*
- * @deprecated use elm_object_content_part_get() instead.
+ * @deprecated use elm_object_part_content_get() instead.
*
*/
EAPI Evas_Object *elm_radio_icon_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
* Unparent and return the icon object which was set for this widget.
*
* @see elm_radio_icon_set()
- * @deprecated use elm_object_content_part_unset() instead.
+ * @deprecated use elm_object_part_content_unset() instead.
*
*/
EAPI Evas_Object *elm_radio_icon_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
* elm_progressbar_icon_unset() function.
*
* @see elm_progressbar_icon_get()
- * @deprecated use elm_object_content_part_set() instead.
+ * @deprecated use elm_object_part_content_set() instead.
*
* @ingroup Progressbar
*/
* otherwise (and on errors)
*
* @see elm_progressbar_icon_set() for more details
- * @deprecated use elm_object_content_part_get() instead.
+ * @deprecated use elm_object_part_content_get() instead.
*
* @ingroup Progressbar
*/
* for this widget, previously, on success.
*
* @see elm_progressbar_icon_set() for more details
- * @deprecated use elm_object_content_part_unset() instead.
+ * @deprecated use elm_object_part_content_unset() instead.
*
* @ingroup Progressbar
*/
* @see elm_panes_content_left_get()
* @see elm_panes_content_right_set() to set content on the other side.
*
+ * @deprecated use elm_object_part_content_set() instead
+ *
* @ingroup Panes
*/
EINA_DEPRECATED EAPI void elm_panes_content_left_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
* @see elm_panes_content_right_get()
* @see elm_panes_content_left_set() to set content on the other side.
*
+ * @deprecated use elm_object_part_content_set() instead
+ *
* @ingroup Panes
*/
EINA_DEPRECATED EAPI void elm_panes_content_right_set(Evas_Object *obj, Evas_Object *content) EINA_ARG_NONNULL(1);
*
* @see elm_panes_content_left_set() for details.
*
+ * @deprecated use elm_object_part_content_get() instead
+ *
* @ingroup Panes
*/
EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
*
* @see elm_panes_content_right_set() for details.
*
+ * @deprecated use elm_object_part_content_get() instead
+ *
* @ingroup Panes
*/
EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_right_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
* @see elm_panes_content_left_set() for details.
* @see elm_panes_content_left_get().
*
+ * @deprecated use elm_object_part_content_unset() instead
+ *
* @ingroup Panes
*/
EINA_DEPRECATED EAPI Evas_Object *elm_panes_content_left_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
* @see elm_panes_content_right_set() for details.
* @see elm_panes_content_right_get().
*
+ * @deprecated use elm_object_part_content_unset() instead
+ *
* @ingroup Panes
*/
EAPI Evas_Object *elm_panes_content_right_unset(Evas_Object *obj) EINA_ARG_NONNULL(1);
*
* This function inserts a new player widget on the canvas.
*
- * @see elm_object_content_part_set()
+ * @see elm_object_part_content_set()
*
* @ingroup Video
*/
*
* @see elm_player_add()
* @see elm_video_add()
- * @deprecated use elm_object_content_part_set() instead
+ * @deprecated use elm_object_part_content_set() instead
*
* @ingroup Video
*/
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(parent);
elm_widget_mirrored_automatic_set(bt, EINA_FALSE);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_domain_translatable_text_set(bt, PACKAGE, N_("Up"));
evas_object_size_hint_align_set(bt, 0.0, 0.0);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(parent);
elm_widget_mirrored_automatic_set(bt, EINA_FALSE);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
elm_object_domain_translatable_text_set(bt, PACKAGE, N_("Home"));
evas_object_size_hint_align_set(bt, 0.0, 0.0);
evas_object_del(icon);
return;
}
- elm_object_content_part_set(wd->btn, "icon", icon);
+ elm_object_part_content_set(wd->btn, "icon", icon);
}
EAPI Evas_Object *
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- return elm_object_content_part_get(wd->btn, "icon");
+ return elm_object_part_content_get(wd->btn, "icon");
}
EAPI Evas_Object *
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- return elm_object_content_part_unset(wd->btn, "icon");
+ return elm_object_part_content_unset(wd->btn, "icon");
}
elm_icon_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_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_show(ic);
}
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- elm_object_content_part_set(wd->btn, "icon", icon);
+ elm_object_part_content_set(wd->btn, "icon", icon);
}
EAPI Evas_Object *
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!wd->btn)) return NULL;
- return elm_object_content_part_get(wd->btn, "icon");
+ return elm_object_part_content_get(wd->btn, "icon");
}
EAPI Evas_Object *
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if ((!wd) || (!wd->btn)) return NULL;
- return elm_object_content_part_unset(wd->btn, "icon");
+ return elm_object_part_content_unset(wd->btn, "icon");
}
EAPI void
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
bt = elm_button_add(parent);
elm_widget_mirrored_automatic_set(bt, EINA_FALSE);
- elm_object_content_part_set(bt, "icon", ic);
+ elm_object_part_content_set(bt, "icon", ic);
evas_object_size_hint_align_set(bt, 0.0, 0.0);
elm_object_style_set(bt, "anchor");
evas_object_smart_callback_add(bt, "clicked", func, obj);
}
EAPI void
+elm_object_part_content_set(Evas_Object *obj, const char *part, Evas_Object *content)
+{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
+ elm_widget_content_part_set(obj, part, content);
+}
+
+EAPI void
elm_object_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content)
{
EINA_SAFETY_ON_NULL_RETURN(obj);
elm_widget_content_part_set(obj, part, content);
}
+
+EAPI Evas_Object *
+elm_object_part_content_get(const Evas_Object *obj, const char *part)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+ return elm_widget_content_part_get(obj, part);
+}
+
EAPI Evas_Object *
elm_object_content_part_get(const Evas_Object *obj, const char *part)
{
}
EAPI Evas_Object *
+elm_object_part_content_unset(Evas_Object *obj, const char *part)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+ return elm_widget_content_part_unset(obj, part);
+}
+
+
+EAPI Evas_Object *
elm_object_content_part_unset(Evas_Object *obj, const char *part)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
group->obj = elm_layout_add(group->wd->obj);
elm_layout_theme_set(group->obj, "map/marker", style, elm_widget_style_get(group->wd->obj));
- if (icon) elm_object_content_part_set(group->obj, "elm.icon", icon);
+ if (icon) elm_object_part_content_set(group->obj, "elm.icon", icon);
evas_object_smart_member_add(group->obj, group->wd->pan_smart);
elm_widget_sub_object_add(group->wd->obj, group->obj);
EAPI void
elm_toggle_icon_set(Evas_Object *obj, Evas_Object *icon)
{
- elm_object_content_part_set(obj, "icon", icon);
+ elm_object_part_content_set(obj, "icon", icon);
}
EAPI Evas_Object *
elm_toggle_icon_get(const Evas_Object *obj)
{
- return elm_object_content_part_get(obj, "icon");
+ return elm_object_part_content_get(obj, "icon");
}
EAPI Evas_Object *
elm_toggle_icon_unset(Evas_Object *obj)
{
- return elm_object_content_part_unset(obj, "icon");
+ return elm_object_part_content_unset(obj, "icon");
}
EAPI void