summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_thumb_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_thumb_eo.c')
-rw-r--r--src/lib/elementary/elm_thumb_eo.c85
1 files changed, 85 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_thumb_eo.c b/src/lib/elementary/elm_thumb_eo.c
new file mode 100644
index 0000000..d65f2ee
--- /dev/null
+++ b/src/lib/elementary/elm_thumb_eo.c
@@ -0,0 +1,85 @@
1EWAPI const Efl_Event_Description _ELM_THUMB_EVENT_GENERATE_ERROR =
2 EFL_EVENT_DESCRIPTION("generate,error");
3EWAPI const Efl_Event_Description _ELM_THUMB_EVENT_GENERATE_START =
4 EFL_EVENT_DESCRIPTION("generate,start");
5EWAPI const Efl_Event_Description _ELM_THUMB_EVENT_GENERATE_STOP =
6 EFL_EVENT_DESCRIPTION("generate,stop");
7EWAPI const Efl_Event_Description _ELM_THUMB_EVENT_LOAD_ERROR =
8 EFL_EVENT_DESCRIPTION("load,error");
9EWAPI const Efl_Event_Description _ELM_THUMB_EVENT_PRESS =
10 EFL_EVENT_DESCRIPTION("press");
11
12Efl_Object *_elm_thumb_efl_object_constructor(Eo *obj, Elm_Thumb_Data *pd);
13
14
15Efl_Object *_elm_thumb_efl_object_finalize(Eo *obj, Elm_Thumb_Data *pd);
16
17
18Eina_Error _elm_thumb_efl_file_load(Eo *obj, Elm_Thumb_Data *pd);
19
20
21Eina_Bool _elm_thumb_efl_file_loaded_get(const Eo *obj, Elm_Thumb_Data *pd);
22
23
24Eina_Error _elm_thumb_efl_file_file_set(Eo *obj, Elm_Thumb_Data *pd, const char *file);
25
26
27const char *_elm_thumb_efl_file_file_get(const Eo *obj, Elm_Thumb_Data *pd);
28
29
30void _elm_thumb_efl_file_key_set(Eo *obj, Elm_Thumb_Data *pd, const char *key);
31
32
33const char *_elm_thumb_efl_file_key_get(const Eo *obj, Elm_Thumb_Data *pd);
34
35
36void _elm_thumb_efl_gfx_entity_visible_set(Eo *obj, Elm_Thumb_Data *pd, Eina_Bool v);
37
38
39void _elm_thumb_efl_ui_draggable_drag_target_set(Eo *obj, Elm_Thumb_Data *pd, Eina_Bool set);
40
41
42Eina_Bool _elm_thumb_efl_ui_draggable_drag_target_get(const Eo *obj, Elm_Thumb_Data *pd);
43
44
45static Eina_Bool
46_elm_thumb_class_initializer(Efl_Class *klass)
47{
48 const Efl_Object_Ops *opsp = NULL;
49
50 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
51
52#ifndef ELM_THUMB_EXTRA_OPS
53#define ELM_THUMB_EXTRA_OPS
54#endif
55
56 EFL_OPS_DEFINE(ops,
57 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_thumb_efl_object_constructor),
58 EFL_OBJECT_OP_FUNC(efl_finalize, _elm_thumb_efl_object_finalize),
59 EFL_OBJECT_OP_FUNC(efl_file_load, _elm_thumb_efl_file_load),
60 EFL_OBJECT_OP_FUNC(efl_file_loaded_get, _elm_thumb_efl_file_loaded_get),
61 EFL_OBJECT_OP_FUNC(efl_file_set, _elm_thumb_efl_file_file_set),
62 EFL_OBJECT_OP_FUNC(efl_file_get, _elm_thumb_efl_file_file_get),
63 EFL_OBJECT_OP_FUNC(efl_file_key_set, _elm_thumb_efl_file_key_set),
64 EFL_OBJECT_OP_FUNC(efl_file_key_get, _elm_thumb_efl_file_key_get),
65 EFL_OBJECT_OP_FUNC(efl_gfx_entity_visible_set, _elm_thumb_efl_gfx_entity_visible_set),
66 EFL_OBJECT_OP_FUNC(efl_ui_draggable_drag_target_set, _elm_thumb_efl_ui_draggable_drag_target_set),
67 EFL_OBJECT_OP_FUNC(efl_ui_draggable_drag_target_get, _elm_thumb_efl_ui_draggable_drag_target_get),
68 ELM_THUMB_EXTRA_OPS
69 );
70 opsp = &ops;
71
72 return efl_class_functions_set(klass, opsp, ropsp);
73}
74
75static const Efl_Class_Description _elm_thumb_class_desc = {
76 EO_VERSION,
77 "Elm.Thumb",
78 EFL_CLASS_TYPE_REGULAR,
79 sizeof(Elm_Thumb_Data),
80 _elm_thumb_class_initializer,
81 _elm_thumb_class_constructor,
82 NULL
83};
84
85EFL_DEFINE_CLASS(elm_thumb_class_get, &_elm_thumb_class_desc, EFL_UI_LAYOUT_BASE_CLASS, EFL_FILE_MIXIN, EFL_UI_CLICKABLE_INTERFACE, EFL_UI_DRAGGABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);