/** * @brief * * @param naviframe an AtkObject * @param navi_tab_item an Elm_Object_Item item * @returns accessible naviframe page */ AtkObject * eail_naviframe_page_new(AtkObject *naviframe, Elm_Object_Item *navi_tab_item) { AtkObject *atk_object; EailNaviframePage *page; Evas_Object *o, *widget; g_return_val_if_fail(EAIL_IS_NAVIFRAME(naviframe), NULL); widget = eail_widget_get_widget(EAIL_WIDGET(naviframe)); g_return_val_if_fail(widget != NULL, NULL); atk_object = g_object_new(EAIL_TYPE_NAVIFRAME_PAGE, NULL); page = EAIL_NAVIFRAME_PAGE(atk_object); page->naviframe = widget; page->page = navi_tab_item; page->child_count = 0; o = elm_object_item_part_content_get(page->page, "prev_btn"); if (o && elm_object_widget_check(o)) page->content[page->child_count++] = o; o = elm_object_item_part_content_get(page->page, "icon"); if (o && elm_object_widget_check(o)) page->content[page->child_count++] = o; o = elm_object_item_part_content_get(page->page, "next_btn"); if (o && elm_object_widget_check(o)) page->content[page->child_count++] = o; o = elm_object_item_part_content_get(page->page, "default"); if (o && elm_object_widget_check(o)) page->content[page->child_count++] = o; page->parent_naviframe = naviframe; atk_object->layer = ATK_LAYER_WIDGET; return atk_object; }
/** * @brief Gets list of children widgets * * @param widget EailWidget object * * @return list of children, NULL otherwise */ static Eina_List * eail_slider_get_widget_children(EailWidget *widget) { Eina_List *list = NULL; Evas_Object *child, *obj; obj = eail_widget_get_widget(EAIL_WIDGET(widget)); if (obj) { child = elm_object_part_content_get(obj, "icon"); if (child && elm_object_widget_check(child)) list = eina_list_append(list, child); child = elm_object_part_content_get(obj, "end"); if (child && elm_object_widget_check(child)) list = eina_list_append(list, child); } return list; }
bool Object::checkWidget () { return elm_object_widget_check (o); }