WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=fe20efc8058230f9f592077e18421823c5246c22
commit fe20efc8058230f9f592077e18421823c5246c22 Author: Pierre Couderc <[email protected]> Date: Mon Dec 11 09:14:00 2017 -0800 Wiki page modifications changed with summary [] by Pierre Couderc --- .../develop/legacy/tutorial/genlist/modifications.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pages/develop/legacy/tutorial/genlist/modifications.txt b/pages/develop/legacy/tutorial/genlist/modifications.txt index 34d79c12e..2d354f9a5 100644 --- a/pages/develop/legacy/tutorial/genlist/modifications.txt +++ b/pages/develop/legacy/tutorial/genlist/modifications.txt @@ -1,7 +1,7 @@ ~~Title: Genlist Modifications~~ ==== Genlist Modifications ==== -=== Choosing Another Item Style to Add or Remove Parts === +== Choosing Another Item Style to Add or Remove Parts == As mentioned above, the number of parts to fill depends on the item style that is chosen when adding a new item. This is simply a matter of setting the right @@ -36,7 +36,7 @@ So far the genlist examples have all featured bare lists while the genlist widget is able to display trees or even a "group" mode where scrolling keeps the item at the top of the widget until another group comes and replaces it. -//**__Group Mode__**// +==Group Mode== The group mode makes it possible to keep an element visible as long as one of its children is visible. This is most useful for "title" items. @@ -99,7 +99,7 @@ for (i = 0; i < 1000; i++) } </code> -//**__Tree Mode__**// +==Tree Mode== Like group mode, tree mode uses the parenting relationship with other items. Unlike group mode, the child elements are created on-demand when their parent @@ -209,7 +209,7 @@ _tree_item_contracted(void *data, Evas_Object *o, void *event_info) } </code> -//**__Mixing Group and Tree Modes__**// +==Mixing Group and Tree Modes== A common UI design is to mix group and tree modes. It allows for a tree behavior while also keeping the group header item. The EFLs do not do any @@ -219,7 +219,7 @@ callbacks to populate the children of the tree item in the regular way. === Using Other APIs === -//**__Homogeneous Item Size__**// +==Homogeneous Item Size== Because of the scroller, the actual height and/or width of the genlist must be computed. This means summing the sizes of all the items, the sizes must be @@ -231,7 +231,7 @@ assuming all the items are the same size as the first one of the list. It speeds up large insertions. However, it may lead to serious graphical issues if the items are not actually the same size. Use with care. -//**__Changing the Item Class of an Item After Its Creation__**// +==Changing the Item Class of an Item After Its Creation== Changing the item class of a widget is an easy way to change the appearance upon selection or others actions of the user. This is done by calling @@ -248,5 +248,7 @@ _tree_item_expand_request(void *data, Evas_Object *o, void *event_info) elm_genlist_item_expanded_set(it, EINA_TRUE); } </code> -\\ -//**__The whole code__**// : {{/code_c/tutorial/genlist/modifications_genlist.c}} + +==The whole code== + + {{/code_c/tutorial/genlist/modifications_genlist.c}} --
