{
Eina_List *list = elm_box_children_get(m_Box);
size_t index = eina_list_data_idx(list, page->getEvasObject());
- if (elm_object_mirrored_get(m_Box)) {
- size_t count = eina_list_count(list);
- index = count - index - 1;
- }
eina_list_free(list);
return index;
}
TabPage *ScrollNavigator::getPageByIndex(size_t index) const
{
Eina_List *list = elm_box_children_get(m_Box);
- if (elm_object_mirrored_get(m_Box)) {
- size_t count = eina_list_count(list);
- index = count - index - 1;
- }
Evas_Object *obj = (Evas_Object *) eina_list_nth(list, index);
eina_list_free(list);