summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_view_list_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_view_list_eo.c')
-rw-r--r--src/lib/elementary/elm_view_list_eo.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_view_list_eo.c b/src/lib/elementary/elm_view_list_eo.c
new file mode 100644
index 0000000..3c9a8c2
--- /dev/null
+++ b/src/lib/elementary/elm_view_list_eo.c
@@ -0,0 +1,62 @@
1EWAPI const Efl_Event_Description _ELM_VIEW_LIST_EVENT_MODEL_SELECTED =
2 EFL_EVENT_DESCRIPTION("model,selected");
3
4void _elm_view_list_genlist_set(Eo *obj, Elm_View_List_Data *pd, Efl_Canvas_Object *genlist, Elm_Genlist_Item_Type item_type, const char *item_style);
5
6EOAPI EFL_VOID_FUNC_BODYV(elm_view_list_genlist_set, EFL_FUNC_CALL(genlist, item_type, item_style), Efl_Canvas_Object *genlist, Elm_Genlist_Item_Type item_type, const char *item_style);
7
8void _elm_view_list_evas_object_get(Eo *obj, Elm_View_List_Data *pd, Efl_Canvas_Object **widget);
9
10EOAPI EFL_VOID_FUNC_BODYV(elm_view_list_evas_object_get, EFL_FUNC_CALL(widget), Efl_Canvas_Object **widget);
11
12void _elm_view_list_property_connect(Eo *obj, Elm_View_List_Data *pd, const char *property, const char *part);
13
14EOAPI EFL_VOID_FUNC_BODYV(elm_view_list_property_connect, EFL_FUNC_CALL(property, part), const char *property, const char *part);
15
16void _elm_view_list_model_set(Eo *obj, Elm_View_List_Data *pd, Efl_Model *model);
17
18EOAPI EFL_VOID_FUNC_BODYV(elm_view_list_model_set, EFL_FUNC_CALL(model), Efl_Model *model);
19
20Efl_Model *_elm_view_list_model_get(const Eo *obj, Elm_View_List_Data *pd);
21
22EOAPI EFL_FUNC_BODY_CONST(elm_view_list_model_get, Efl_Model *, NULL);
23
24void _elm_view_list_efl_object_destructor(Eo *obj, Elm_View_List_Data *pd);
25
26
27static Eina_Bool
28_elm_view_list_class_initializer(Efl_Class *klass)
29{
30 const Efl_Object_Ops *opsp = NULL;
31
32 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
33
34#ifndef ELM_VIEW_LIST_EXTRA_OPS
35#define ELM_VIEW_LIST_EXTRA_OPS
36#endif
37
38 EFL_OPS_DEFINE(ops,
39 EFL_OBJECT_OP_FUNC(elm_view_list_genlist_set, _elm_view_list_genlist_set),
40 EFL_OBJECT_OP_FUNC(elm_view_list_evas_object_get, _elm_view_list_evas_object_get),
41 EFL_OBJECT_OP_FUNC(elm_view_list_property_connect, _elm_view_list_property_connect),
42 EFL_OBJECT_OP_FUNC(elm_view_list_model_set, _elm_view_list_model_set),
43 EFL_OBJECT_OP_FUNC(elm_view_list_model_get, _elm_view_list_model_get),
44 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_view_list_efl_object_destructor),
45 ELM_VIEW_LIST_EXTRA_OPS
46 );
47 opsp = &ops;
48
49 return efl_class_functions_set(klass, opsp, ropsp);
50}
51
52static const Efl_Class_Description _elm_view_list_class_desc = {
53 EO_VERSION,
54 "Elm.View.List",
55 EFL_CLASS_TYPE_REGULAR,
56 sizeof(Elm_View_List_Data),
57 _elm_view_list_class_initializer,
58 NULL,
59 NULL
60};
61
62EFL_DEFINE_CLASS(elm_view_list_class_get, &_elm_view_list_class_desc, EFL_OBJECT_CLASS, NULL);