37 lines
825 B
C
37 lines
825 B
C
|
#ifndef ELMXX_GEN_LIST_DATA_MODEL_H
|
||
|
#define ELMXX_GEN_LIST_DATA_MODEL_H
|
||
|
|
||
|
/* EFL */
|
||
|
#include <evasxx/Evasxx.h>
|
||
|
#include <Elementary.h>
|
||
|
|
||
|
/* STD */
|
||
|
#include <string>
|
||
|
|
||
|
namespace Elmxx {
|
||
|
|
||
|
/* forward declarations */
|
||
|
class GenList;
|
||
|
|
||
|
class GenListDataModel
|
||
|
{
|
||
|
public:
|
||
|
friend class GenList;
|
||
|
|
||
|
GenListDataModel ();
|
||
|
|
||
|
std::string getLabel (Evasxx::Object &obj, const std::string &part) const;
|
||
|
|
||
|
private:
|
||
|
static char *gl_label_get (const void *data, Evas_Object *obj, const char *part);
|
||
|
static Evas_Object *gl_icon_get (const void *data, Evas_Object *obj, const char *part);
|
||
|
static Eina_Bool gl_state_get (const void *data, Evas_Object *obj, const char *part);
|
||
|
static void gl_del (const void *data, Evas_Object *obj);
|
||
|
|
||
|
Elm_Genlist_Item_Class mGLIC;
|
||
|
};
|
||
|
|
||
|
} // end namespace Elmxx
|
||
|
|
||
|
#endif // ELMXX_GEN_LIST_DATA_MODEL_H
|