summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_icon_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_icon_eo.c')
-rw-r--r--src/lib/elementary/elm_icon_eo.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_icon_eo.c b/src/lib/elementary/elm_icon_eo.c
new file mode 100644
index 0000000..ce76bed
--- /dev/null
+++ b/src/lib/elementary/elm_icon_eo.c
@@ -0,0 +1,47 @@
1EWAPI const Efl_Event_Description _ELM_ICON_EVENT_THUMB_DONE =
2 EFL_EVENT_DESCRIPTION("thumb,done");
3EWAPI const Efl_Event_Description _ELM_ICON_EVENT_THUMB_ERROR =
4 EFL_EVENT_DESCRIPTION("thumb,error");
5
6Efl_Object *_elm_icon_efl_object_constructor(Eo *obj, Elm_Icon_Data *pd);
7
8
9Eina_Error _elm_icon_efl_ui_widget_theme_apply(Eo *obj, Elm_Icon_Data *pd);
10
11
12Eina_Error _elm_icon_efl_file_load(Eo *obj, Elm_Icon_Data *pd);
13
14
15static Eina_Bool
16_elm_icon_class_initializer(Efl_Class *klass)
17{
18 const Efl_Object_Ops *opsp = NULL;
19
20 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
21
22#ifndef ELM_ICON_EXTRA_OPS
23#define ELM_ICON_EXTRA_OPS
24#endif
25
26 EFL_OPS_DEFINE(ops,
27 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_icon_efl_object_constructor),
28 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_icon_efl_ui_widget_theme_apply),
29 EFL_OBJECT_OP_FUNC(efl_file_load, _elm_icon_efl_file_load),
30 ELM_ICON_EXTRA_OPS
31 );
32 opsp = &ops;
33
34 return efl_class_functions_set(klass, opsp, ropsp);
35}
36
37static const Efl_Class_Description _elm_icon_class_desc = {
38 EO_VERSION,
39 "Elm.Icon",
40 EFL_CLASS_TYPE_REGULAR,
41 sizeof(Elm_Icon_Data),
42 _elm_icon_class_initializer,
43 _elm_icon_class_constructor,
44 NULL
45};
46
47EFL_DEFINE_CLASS(elm_icon_class_get, &_elm_icon_class_desc, EFL_UI_IMAGE_CLASS, EFL_UI_LEGACY_INTERFACE, NULL);