added a usage hint about casting int to void* and back

SVN revision: 49071
This commit is contained in:
Andreas Volz 2010-05-20 18:00:33 +00:00
parent b93adb9b7c
commit 317230f240
1 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,14 @@
#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
/* Hint:
* In this example some calls to elm_genlist_item_append() are used which give the
* value of an int as 'item data' and 'func data' after casting into (void*). For
* sure this works only on architectures where sizeof(int)==sizeof(void*).
* For real world usage you should hold a data structure or value in your
* application and then give only a pointer to this data as data pointer.
*/
typedef struct _Testitem
{
Elm_Genlist_Item *item;