-EAPI void
-elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content)
-{
- ELM_CHECK_WIDTYPE(obj, widtype);
- Widget_Data *wd = elm_widget_data_get(obj);
- Subinfo *si;
- const Eina_List *l;
- if (!wd) return;
- EINA_LIST_FOREACH(wd->subs, l, si)
- {
- if ((si->type == SWALLOW) && (!strcmp(swallow, si->part)))
- {
- if (content == si->obj) return;
- evas_object_del(si->obj);
- break;
- }
- }
- if (content)
- {
- elm_widget_sub_object_add(obj, content);
- evas_object_event_callback_add(content,
- EVAS_CALLBACK_CHANGED_SIZE_HINTS,
- _changed_size_hints, wd);
- if (!edje_object_part_swallow(wd->lay, swallow, content))
- WRN("could not swallow %p into part '%s'", content, swallow);
- si = ELM_NEW(Subinfo);
- si->type = SWALLOW;
- si->part = eina_stringshare_add(swallow);
- si->obj = content;
- wd->subs = eina_list_append(wd->subs, si);
- }
- _request_sizing_eval(wd);
-}
-
-EAPI Evas_Object *
-elm_layout_content_get(const Evas_Object *obj, const char *swallow)
-{
- Widget_Data *wd = elm_widget_data_get(obj);
- const Eina_List *l;
- Subinfo *si;
- ELM_CHECK_WIDTYPE(obj, widtype) NULL;
-
- EINA_LIST_FOREACH(wd->subs, l, si)
- {
- if ((si->type == SWALLOW) && !strcmp(swallow, si->part))
- return si->obj;
- }
- return NULL;
-}
-
-EAPI Evas_Object *
-elm_layout_content_unset(Evas_Object *obj, const char *swallow)
-{
- ELM_CHECK_WIDTYPE(obj, widtype) NULL;
- Widget_Data *wd = elm_widget_data_get(obj);
- Subinfo *si;
- const Eina_List *l;
- if (!wd) return NULL;
- EINA_LIST_FOREACH(wd->subs, l, si)
- {
- if ((si->type == SWALLOW) && (!strcmp(swallow, si->part)))
- {
- Evas_Object *content;
- if (!si->obj) return NULL;
- content = si->obj; /* si will die in _sub_del due elm_widget_sub_object_del() */
- elm_widget_sub_object_del(obj, content);
- edje_object_part_unswallow(wd->lay, content);
- return content;
- }
- }
- return NULL;
-}
-
-EAPI void
-elm_layout_text_set(Evas_Object *obj, const char *part, const char *text)
-{
- _elm_layout_label_set(obj, part, text);
-}
-
-EAPI const char *
-elm_layout_text_get(const Evas_Object *obj, const char *part)
-{
- return _elm_layout_label_get(obj, part);
-}
-
-EAPI void