summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_plug_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_plug_eo.c')
-rw-r--r--src/lib/elementary/elm_plug_eo.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_plug_eo.c b/src/lib/elementary/elm_plug_eo.c
new file mode 100644
index 0000000..7dc8c4d
--- /dev/null
+++ b/src/lib/elementary/elm_plug_eo.c
@@ -0,0 +1,59 @@
1EWAPI const Efl_Event_Description _ELM_PLUG_EVENT_IMAGE_DELETED =
2 EFL_EVENT_DESCRIPTION("image,deleted");
3EWAPI const Efl_Event_Description _ELM_PLUG_EVENT_IMAGE_RESIZED =
4 EFL_EVENT_DESCRIPTION("image,resized");
5
6Efl_Canvas_Object *_elm_plug_image_object_get(const Eo *obj, void *pd);
7
8EOAPI EFL_FUNC_BODY_CONST(elm_obj_plug_image_object_get, Efl_Canvas_Object *, NULL);
9
10Eina_Bool _elm_plug_connect(Eo *obj, void *pd, const char *svcname, int svcnum, Eina_Bool svcsys);
11
12EOAPI EFL_FUNC_BODYV(elm_obj_plug_connect, Eina_Bool, 0, EFL_FUNC_CALL(svcname, svcnum, svcsys), const char *svcname, int svcnum, Eina_Bool svcsys);
13
14Efl_Object *_elm_plug_efl_object_constructor(Eo *obj, void *pd);
15
16
17Eina_Error _elm_plug_efl_ui_widget_theme_apply(Eo *obj, void *pd);
18
19
20Eina_Bool _elm_plug_efl_ui_focus_object_on_focus_update(Eo *obj, void *pd);
21
22
23static Eina_Bool
24_elm_plug_class_initializer(Efl_Class *klass)
25{
26 const Efl_Object_Ops *opsp = NULL;
27
28 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
29
30#ifndef ELM_PLUG_EXTRA_OPS
31#define ELM_PLUG_EXTRA_OPS
32#endif
33
34 EFL_OPS_DEFINE(ops,
35 EFL_OBJECT_OP_FUNC(elm_obj_plug_image_object_get, _elm_plug_image_object_get),
36 EFL_OBJECT_OP_FUNC(elm_obj_plug_connect, _elm_plug_connect),
37 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_plug_efl_object_constructor),
38 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_plug_efl_ui_widget_theme_apply),
39 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_on_focus_update, _elm_plug_efl_ui_focus_object_on_focus_update),
40 ELM_PLUG_EXTRA_OPS
41 );
42 opsp = &ops;
43
44 return efl_class_functions_set(klass, opsp, ropsp);
45}
46
47static const Efl_Class_Description _elm_plug_class_desc = {
48 EO_VERSION,
49 "Elm.Plug",
50 EFL_CLASS_TYPE_REGULAR,
51 0,
52 _elm_plug_class_initializer,
53 _elm_plug_class_constructor,
54 NULL
55};
56
57EFL_DEFINE_CLASS(elm_plug_class_get, &_elm_plug_class_desc, EFL_UI_WIDGET_CLASS, EFL_UI_CLICKABLE_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
58
59#include "elm_plug_eo.legacy.c"