summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_color_item_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_color_item_eo.c')
-rw-r--r--src/lib/elementary/elm_color_item_eo.c137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_color_item_eo.c b/src/lib/elementary/elm_color_item_eo.c
new file mode 100644
index 0000000..64c6bf6
--- /dev/null
+++ b/src/lib/elementary/elm_color_item_eo.c
@@ -0,0 +1,137 @@
1
2void _elm_color_item_color_set(Eo *obj, Elm_Color_Item_Data *pd, int r, int g, int b, int a);
3
4EOAPI EFL_VOID_FUNC_BODYV(elm_obj_color_item_color_set, EFL_FUNC_CALL(r, g, b, a), int r, int g, int b, int a);
5
6void _elm_color_item_color_get(const Eo *obj, Elm_Color_Item_Data *pd, int *r, int *g, int *b, int *a);
7
8EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_color_item_color_get, EFL_FUNC_CALL(r, g, b, a), int *r, int *g, int *b, int *a);
9
10void _elm_color_item_selected_set(Eo *obj, Elm_Color_Item_Data *pd, Eina_Bool selected);
11
12
13static Eina_Error
14__eolian_elm_color_item_selected_set_reflect(Eo *obj, Eina_Value val)
15{
16 Eina_Error r = 0; Eina_Bool cval;
17 if (!eina_value_bool_convert(&val, &cval))
18 {
19 r = EINA_ERROR_VALUE_FAILED;
20 goto end;
21 }
22 elm_obj_color_item_selected_set(obj, cval);
23 end:
24 eina_value_flush(&val);
25 return r;
26}
27
28EOAPI EFL_VOID_FUNC_BODYV(elm_obj_color_item_selected_set, EFL_FUNC_CALL(selected), Eina_Bool selected);
29
30Eina_Bool _elm_color_item_selected_get(const Eo *obj, Elm_Color_Item_Data *pd);
31
32
33static Eina_Value
34__eolian_elm_color_item_selected_get_reflect(Eo *obj)
35{
36 Eina_Bool val = elm_obj_color_item_selected_get(obj);
37 return eina_value_bool_init(val);
38}
39
40EOAPI EFL_FUNC_BODY_CONST(elm_obj_color_item_selected_get, Eina_Bool, 0);
41
42Efl_Object *_elm_color_item_efl_object_constructor(Eo *obj, Elm_Color_Item_Data *pd);
43
44
45void _elm_color_item_efl_object_destructor(Eo *obj, Elm_Color_Item_Data *pd);
46
47
48Efl_Canvas_Object *_elm_color_item_elm_widget_item_access_register(Eo *obj, Elm_Color_Item_Data *pd);
49
50
51void _elm_color_item_elm_widget_item_signal_emit(Eo *obj, Elm_Color_Item_Data *pd, const char *emission, const char *source);
52
53
54void _elm_color_item_elm_widget_item_item_focus_set(Eo *obj, Elm_Color_Item_Data *pd, Eina_Bool focused);
55
56
57Eina_Bool _elm_color_item_elm_widget_item_item_focus_get(const Eo *obj, Elm_Color_Item_Data *pd);
58
59
60void _elm_color_item_efl_ui_focus_object_focus_set(Eo *obj, Elm_Color_Item_Data *pd, Eina_Bool focus);
61
62
63Eina_Rect _elm_color_item_efl_ui_focus_object_focus_geometry_get(const Eo *obj, Elm_Color_Item_Data *pd);
64
65
66Efl_Ui_Focus_Object *_elm_color_item_efl_ui_focus_object_focus_parent_get(const Eo *obj, Elm_Color_Item_Data *pd);
67
68
69Efl_Ui_Focus_Manager *_elm_color_item_efl_ui_focus_object_focus_manager_get(const Eo *obj, Elm_Color_Item_Data *pd);
70
71
72Efl_Access_State_Set _elm_color_item_efl_access_object_state_set_get(const Eo *obj, Elm_Color_Item_Data *pd);
73
74
75const char *_elm_color_item_efl_access_object_i18n_name_get(const Eo *obj, Elm_Color_Item_Data *pd);
76
77
78const Efl_Access_Action_Data *_elm_color_item_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Color_Item_Data *pd);
79
80
81static Eina_Bool
82_elm_color_item_class_initializer(Efl_Class *klass)
83{
84 const Efl_Object_Ops *opsp = NULL;
85
86 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
87
88#ifndef ELM_COLOR_ITEM_EXTRA_OPS
89#define ELM_COLOR_ITEM_EXTRA_OPS
90#endif
91
92 EFL_OPS_DEFINE(ops,
93 EFL_OBJECT_OP_FUNC(elm_obj_color_item_color_set, _elm_color_item_color_set),
94 EFL_OBJECT_OP_FUNC(elm_obj_color_item_color_get, _elm_color_item_color_get),
95 EFL_OBJECT_OP_FUNC(elm_obj_color_item_selected_set, _elm_color_item_selected_set),
96 EFL_OBJECT_OP_FUNC(elm_obj_color_item_selected_get, _elm_color_item_selected_get),
97 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_color_item_efl_object_constructor),
98 EFL_OBJECT_OP_FUNC(efl_destructor, _elm_color_item_efl_object_destructor),
99 EFL_OBJECT_OP_FUNC(elm_wdg_item_access_register, _elm_color_item_elm_widget_item_access_register),
100 EFL_OBJECT_OP_FUNC(elm_wdg_item_signal_emit, _elm_color_item_elm_widget_item_signal_emit),
101 EFL_OBJECT_OP_FUNC(elm_wdg_item_focus_set, _elm_color_item_elm_widget_item_item_focus_set),
102 EFL_OBJECT_OP_FUNC(elm_wdg_item_focus_get, _elm_color_item_elm_widget_item_item_focus_get),
103 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_set, _elm_color_item_efl_ui_focus_object_focus_set),
104 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_geometry_get, _elm_color_item_efl_ui_focus_object_focus_geometry_get),
105 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_parent_get, _elm_color_item_efl_ui_focus_object_focus_parent_get),
106 EFL_OBJECT_OP_FUNC(efl_ui_focus_object_focus_manager_get, _elm_color_item_efl_ui_focus_object_focus_manager_get),
107 EFL_OBJECT_OP_FUNC(efl_access_object_state_set_get, _elm_color_item_efl_access_object_state_set_get),
108 EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, _elm_color_item_efl_access_object_i18n_name_get),
109 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_color_item_efl_access_widget_action_elm_actions_get),
110 ELM_COLOR_ITEM_EXTRA_OPS
111 );
112 opsp = &ops;
113
114 static const Efl_Object_Property_Reflection refl_table[] = {
115 {"selected", __eolian_elm_color_item_selected_set_reflect, __eolian_elm_color_item_selected_get_reflect},
116 };
117 static const Efl_Object_Property_Reflection_Ops rops = {
118 refl_table, EINA_C_ARRAY_LENGTH(refl_table)
119 };
120 ropsp = &rops;
121
122 return efl_class_functions_set(klass, opsp, ropsp);
123}
124
125static const Efl_Class_Description _elm_color_item_class_desc = {
126 EO_VERSION,
127 "Elm.Color.Item",
128 EFL_CLASS_TYPE_REGULAR,
129 sizeof(Elm_Color_Item_Data),
130 _elm_color_item_class_initializer,
131 NULL,
132 NULL
133};
134
135EFL_DEFINE_CLASS(elm_color_item_class_get, &_elm_color_item_class_desc, ELM_WIDGET_ITEM_CLASS, EFL_UI_FOCUS_OBJECT_MIXIN, EFL_ACCESS_WIDGET_ACTION_MIXIN, NULL);
136
137#include "elm_color_item_eo.legacy.c"