From: Hyoyoung Chang <hyoyoung@gmail.com>

Subject: [E-devel] [patch] elm_genlist - add comments for item class
Date: Tue, 6 Mar 2012 16:26:37 +0900

Dear all.

after working several hours, i made some comments. :P
If it's only, plz comit it.
Thanks.


SVN revision: 68785
This commit is contained in:
Hyoyoung Chang 2012-03-06 07:33:23 +00:00 committed by Mike Blumenkrantz
parent 2634455235
commit 2b5c91ba41
2 changed files with 9 additions and 4 deletions

View File

@ -44,12 +44,12 @@ typedef void (*Elm_Gen_Item_Del_Cb)(void *data, Evas_Ob
struct _Elm_Gen_Item_Class
{
int version; /**< Set by elementary if you alloc an item class via elm_gengrid_item_class_new() or elm_genlist_item_class_new(), or if you sety your own class (must be const) then set it to ELM_GENGRID_ITEM_CLASS_VERSION */
int version; /**< Set by elementary if you alloc an item class using elm_gengrid_item_class_new() or elm_genlist_item_class_new(), or if you set your own class (must be const) then set it to ELM_GENGRID_ITEM_CLASS_VERSION */
unsigned int refcount; /**< Set it to 0 if you use your own const class, or its managed for you by class ref/unref calls */
Eina_Bool delete_me : 1; /**< Leave this alone - set it to 0 if you have a const class of your own */
const char *item_style; /**< Name of the visual style to use for this item. If you don't know use "default" */
const char *mode_item_style; /**< Style used if item is set to a specific mode. @see elm_genlist_item_mode_set() or NULL if you don't care */
const char *edit_item_style; /**< Style to use when in edit mode, or NULL if you dont care */
const char *mode_item_style; /**< Style used if item is set to a specific mode. @see elm_genlist_item_mode_set() or NULL if you don't care. currenly it's used only in genlist. */
const char *edit_item_style; /**< Style to use when in edit mode, or NULL if you don't care. currenly it's used only in genlist. */
struct {
Elm_Gen_Item_Text_Get_Cb text_get; /**< Text fetching class function for gengrid/list item classes.*/
Elm_Gen_Item_Content_Get_Cb content_get; /**< Content fetching class function for gengrid/list item classes. */

View File

@ -31,7 +31,12 @@
* - @c item_style - This is a constant string and simply defines the name
* of the item style. It @b must be specified and the default should be @c
* "default".
*
* - @c mode_item_style - This is a constant string and simply defines the name
* of the mode item style. It is used to specify mode item style. It can be
* used to set sweep mode.
* - @c edit_item_style - This is a constant string and simply defines the name
* of the edit item style. It is used to specify edit item style. It can be
* used to set selection, checking and deletion mode.
* - @c func - A struct with pointers to functions that will be called when
* an item is going to be actually created. All of them receive a @c data
* parameter that will point to the same data passed to