summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_calendar_item_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_calendar_item_eo.c')
-rw-r--r--src/lib/elementary/elm_calendar_item_eo.c85
1 files changed, 85 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_calendar_item_eo.c b/src/lib/elementary/elm_calendar_item_eo.c
new file mode 100644
index 0000000..f16163a
--- /dev/null
+++ b/src/lib/elementary/elm_calendar_item_eo.c
@@ -0,0 +1,85 @@
1
2void _elm_calendar_item_day_number_set(Eo *obj, Elm_Calendar_Item_Data *pd, int i);
3
4
5static Eina_Error
6__eolian_elm_calendar_item_day_number_set_reflect(Eo *obj, Eina_Value val)
7{
8 Eina_Error r = 0; int cval;
9 if (!eina_value_int_convert(&val, &cval))
10 {
11 r = EINA_ERROR_VALUE_FAILED;
12 goto end;
13 }
14 elm_calendar_item_day_number_set(obj, cval);
15 end:
16 eina_value_flush(&val);
17 return r;
18}
19
20EOAPI EFL_VOID_FUNC_BODYV(elm_calendar_item_day_number_set, EFL_FUNC_CALL(i), int i);
21
22int _elm_calendar_item_day_number_get(const Eo *obj, Elm_Calendar_Item_Data *pd);
23
24
25static Eina_Value
26__eolian_elm_calendar_item_day_number_get_reflect(Eo *obj)
27{
28 int val = elm_calendar_item_day_number_get(obj);
29 return eina_value_int_init(val);
30}
31
32EOAPI EFL_FUNC_BODY_CONST(elm_calendar_item_day_number_get, int, 0);
33
34void _elm_calendar_item_efl_ui_focus_object_focus_set(Eo *obj, Elm_Calendar_Item_Data *pd, Eina_Bool focus);
35
36
37Efl_Ui_Focus_Object *_elm_calendar_item_efl_ui_focus_object_focus_parent_get(const Eo *obj, Elm_Calendar_Item_Data *pd);
38
39
40Eina_Rect _elm_calendar_item_efl_ui_focus_object_focus_geometry_get(const Eo *obj, Elm_Calendar_Item_Data *pd);
41
42
43static Eina_Bool
44_elm_calendar_item_class_initializer(Efl_Class *klass)
45{
46 const Efl_Object_Ops *opsp = NULL;
47
48 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
49
50#ifndef ELM_CALENDAR_ITEM_EXTRA_OPS
51#define ELM_CALENDAR_ITEM_EXTRA_OPS
52#endif
53
54 EFL_OPS_DEFINE(ops,
55 EFL_OBJECT_OP_FUNC(elm_calendar_item_day_number_set, _elm_calendar_item_day_number_set),
56 EFL_OBJECT_OP_FUNC(elm_calendar_item_day_number_get, _elm_calendar_item_day_number_get),
57 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_set, _elm_calendar_item_efl_ui_focus_object_focus_set),
58 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_parent_get, _elm_calendar_item_efl_ui_focus_object_focus_parent_get),
59 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_geometry_get, _elm_calendar_item_efl_ui_focus_object_focus_geometry_get),
60 ELM_CALENDAR_ITEM_EXTRA_OPS
61 );
62 opsp = &ops;
63
64 static const Efl_Object_Property_Reflection refl_table[] = {
65 {"day_number", __eolian_elm_calendar_item_day_number_set_reflect, __eolian_elm_calendar_item_day_number_get_reflect},
66 };
67 static const Efl_Object_Property_Reflection_Ops rops = {
68 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
69 };
70 ropsp = &rops;
71
72 return efl_class_functions_set(klass, opsp, ropsp);
73}
74
75static const Efl_Class_Description _elm_calendar_item_class_desc = {
76 EO_VERSION,
77 "Elm.Calendar.Item",
78 EFL_CLASS_TYPE_REGULAR,
79 sizeof(Elm_Calendar_Item_Data),
80 _elm_calendar_item_class_initializer,
81 NULL,
82 NULL
83};
84
85EFL_DEFINE_CLASS(elm_calendar_item_class_get, &_elm_calendar_item_class_desc, EFL_OBJECT_CLASS, EFL_UI_FOCUS_OBJECT_MIXIN, NULL);