forked from enlightenment/efl
elementray/naviframe - added more macros.
these macros are more clear than part names in using content/text_part_set/get/unset functions. SVN revision: 64525
This commit is contained in:
parent
1e3d557d25
commit
771202d8f8
|
@ -54,8 +54,8 @@ _page4(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
bt,
|
bt,
|
||||||
bt2,
|
bt2,
|
||||||
NULL);
|
NULL);
|
||||||
elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
|
elm_object_item_text_part_set(it, ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE, "Here is sub-title part!");
|
||||||
elm_object_item_content_part_set(it, "elm.swallow.icon", ic);
|
elm_object_item_content_part_set(it, ELM_NAVIFRAME_ITEM_CONTENT_ICON, ic);
|
||||||
elm_naviframe_item_title_visible_set(it, EINA_FALSE);
|
elm_naviframe_item_title_visible_set(it, EINA_FALSE);
|
||||||
evas_object_smart_callback_add(bt2, "clicked", _title_visible, it);
|
evas_object_smart_callback_add(bt2, "clicked", _title_visible, it);
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ _page3(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
bt3,
|
bt3,
|
||||||
NULL);
|
NULL);
|
||||||
elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
|
elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
|
||||||
elm_object_item_content_part_set(it, "elm.swallow.icon", ic);
|
elm_object_item_content_part_set(it, ELM_NAVIFRAME_ITEM_CONTENT_ICON, ic);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -123,7 +123,7 @@ _page2(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
bt,
|
bt,
|
||||||
bt2,
|
bt2,
|
||||||
NULL);
|
NULL);
|
||||||
elm_object_item_text_part_set(it, "elm.text.subtitle", "Here is sub-title part!");
|
elm_object_item_text_part_set(it, ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE, "Here is sub-title part!");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -143,6 +143,7 @@ test_naviframe(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_i
|
||||||
|
|
||||||
nf = elm_naviframe_add(win);
|
nf = elm_naviframe_add(win);
|
||||||
elm_win_resize_object_add(win, nf);
|
elm_win_resize_object_add(win, nf);
|
||||||
|
evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
evas_object_show(nf);
|
evas_object_show(nf);
|
||||||
evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0);
|
evas_object_smart_callback_add(nf, "title,clicked", _title_clicked, 0);
|
||||||
|
|
||||||
|
|
|
@ -28192,17 +28192,21 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* Default contents parts of the naviframe items that you can use for are:
|
* Default contents parts of the naviframe items that you can use for are:
|
||||||
* @li "elm.swallow.content" - A main content of the page
|
* @li "elm.swallow.content" - A main content of the page
|
||||||
|
* @li "elm.swallow.icon" - A icon in the title area
|
||||||
* @li "elm.swallow.prev_btn" - A button to go to the previous page
|
* @li "elm.swallow.prev_btn" - A button to go to the previous page
|
||||||
* @li "elm.swallow.next_btn" - A button to go to the next page
|
* @li "elm.swallow.next_btn" - A button to go to the next page
|
||||||
*
|
*
|
||||||
* Default text parts of the naviframe items that you can use for are:
|
* Default text parts of the naviframe items that you can use for are:
|
||||||
* @li "elm.text.title" - Title label in the title area
|
* @li "elm.text.title" - Title label in the title area
|
||||||
|
* @li "elm.text.subtitle" - Sub-title label in the title area
|
||||||
*
|
*
|
||||||
* @ref tutorial_naviframe gives a good overview of the usage of the API.
|
* @ref tutorial_naviframe gives a good overview of the usage of the API.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ELM_NAVIFRAME_ITEM_PREV_BTN "elm.swallow.prev_btn"
|
#define ELM_NAVIFRAME_ITEM_CONTENT_ICON "elm.swallow.icon"
|
||||||
#define ELM_NAVIFRAME_ITEM_NEXT_BTN "elm.swallow.next_btn"
|
#define ELM_NAVIFRAME_ITEM_CONTENT_PREV_BTN "elm.swallow.prev_btn"
|
||||||
|
#define ELM_NAVIFRAME_ITEM_CONTNET_NEXT_BTN "elm.swallow.next_btn"
|
||||||
|
#define ELM_NAVIFRAME_ITEM_TEXT_SUBTITLE "elm.text.subtitle"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup Naviframe
|
* @addtogroup Naviframe
|
||||||
|
|
Loading…
Reference in New Issue