summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_scroller_eo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_scroller_eo.c')
-rw-r--r--src/lib/elementary/elm_scroller_eo.c150
1 files changed, 150 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_scroller_eo.c b/src/lib/elementary/elm_scroller_eo.c
new file mode 100644
index 0000000..aa977dd
--- /dev/null
+++ b/src/lib/elementary/elm_scroller_eo.c
@@ -0,0 +1,150 @@
1EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_PAGE_CHANGED =
2 EFL_EVENT_DESCRIPTION("scroll,page,changed");
3EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_HBAR_UNPRESS =
4 EFL_EVENT_DESCRIPTION("hbar,unpress");
5EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_HBAR_PRESS =
6 EFL_EVENT_DESCRIPTION("hbar,press");
7EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_HBAR_DRAG =
8 EFL_EVENT_DESCRIPTION("hbar,drag");
9EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_VBAR_UNPRESS =
10 EFL_EVENT_DESCRIPTION("vbar,unpress");
11EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_VBAR_PRESS =
12 EFL_EVENT_DESCRIPTION("vbar,press");
13EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_VBAR_DRAG =
14 EFL_EVENT_DESCRIPTION("vbar,drag");
15EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_LEFT =
16 EFL_EVENT_DESCRIPTION("scroll,left");
17EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_RIGHT =
18 EFL_EVENT_DESCRIPTION("scroll,right");
19EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_UP =
20 EFL_EVENT_DESCRIPTION("scroll,up");
21EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_SCROLL_DOWN =
22 EFL_EVENT_DESCRIPTION("scroll,down");
23EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_LEFT =
24 EFL_EVENT_DESCRIPTION("edge,left");
25EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_RIGHT =
26 EFL_EVENT_DESCRIPTION("edge,right");
27EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_TOP =
28 EFL_EVENT_DESCRIPTION("edge,top");
29EWAPI const Efl_Event_Description _ELM_SCROLLER_EVENT_EDGE_BOTTOM =
30 EFL_EVENT_DESCRIPTION("edge,bottom");
31
32void _elm_scroller_custom_widget_base_theme_set(Eo *obj, Elm_Scroller_Data *pd, const char *klass, const char *group);
33
34EOAPI EFL_VOID_FUNC_BODYV(elm_obj_scroller_custom_widget_base_theme_set, EFL_FUNC_CALL(klass, group), const char *klass, const char *group);
35
36void _elm_scroller_page_scroll_limit_set(const Eo *obj, Elm_Scroller_Data *pd, int page_limit_h, int page_limit_v);
37
38EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_scroller_page_scroll_limit_set, EFL_FUNC_CALL(page_limit_h, page_limit_v), int page_limit_h, int page_limit_v);
39
40void _elm_scroller_page_scroll_limit_get(const Eo *obj, Elm_Scroller_Data *pd, int *page_limit_h, int *page_limit_v);
41
42EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_scroller_page_scroll_limit_get, EFL_FUNC_CALL(page_limit_h, page_limit_v), int *page_limit_h, int *page_limit_v);
43
44Efl_Object *_elm_scroller_efl_object_constructor(Eo *obj, Elm_Scroller_Data *pd);
45
46
47void _elm_scroller_efl_gfx_entity_position_set(Eo *obj, Elm_Scroller_Data *pd, Eina_Position2D pos);
48
49
50void _elm_scroller_efl_gfx_entity_size_set(Eo *obj, Elm_Scroller_Data *pd, Eina_Size2D size);
51
52
53void _elm_scroller_efl_canvas_group_group_member_add(Eo *obj, Elm_Scroller_Data *pd, Efl_Canvas_Object *sub_obj);
54
55
56Eina_Bool _elm_scroller_efl_content_content_set(Eo *obj, Elm_Scroller_Data *pd, Efl_Gfx_Entity *content);
57
58
59Efl_Gfx_Entity *_elm_scroller_efl_content_content_get(const Eo *obj, Elm_Scroller_Data *pd);
60
61
62Efl_Gfx_Entity *_elm_scroller_efl_content_content_unset(Eo *obj, Elm_Scroller_Data *pd);
63
64
65Eina_Error _elm_scroller_efl_ui_widget_theme_apply(Eo *obj, Elm_Scroller_Data *pd);
66
67
68Eina_Bool _elm_scroller_efl_ui_widget_on_access_activate(Eo *obj, Elm_Scroller_Data *pd, Efl_Ui_Activate act);
69
70
71Eina_Bool _elm_scroller_efl_ui_widget_widget_sub_object_del(Eo *obj, Elm_Scroller_Data *pd, Efl_Canvas_Object *sub_obj);
72
73
74Eina_Bool _elm_scroller_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Scroller_Data *pd, const Efl_Event *eo_event, Efl_Canvas_Object *source);
75
76
77void _elm_scroller_elm_interface_scrollable_page_size_set(Eo *obj, Elm_Scroller_Data *pd, int x, int y);
78
79
80void _elm_scroller_elm_interface_scrollable_policy_set(Eo *obj, Elm_Scroller_Data *pd, Elm_Scroller_Policy hbar, Elm_Scroller_Policy vbar);
81
82
83void _elm_scroller_elm_interface_scrollable_single_direction_set(Eo *obj, Elm_Scroller_Data *pd, Elm_Scroller_Single_Direction single_dir);
84
85
86Elm_Scroller_Single_Direction _elm_scroller_elm_interface_scrollable_single_direction_get(const Eo *obj, Elm_Scroller_Data *pd);
87
88
89const Efl_Access_Action_Data *_elm_scroller_efl_access_widget_action_elm_actions_get(const Eo *obj, Elm_Scroller_Data *pd);
90
91
92Efl_Object *_elm_scroller_efl_part_part_get(const Eo *obj, Elm_Scroller_Data *pd, const char *name);
93
94
95Eina_Bool _elm_scroller_efl_ui_widget_focus_state_apply(Eo *obj, Elm_Scroller_Data *pd, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State *configured_state, Efl_Ui_Widget *redirect);
96
97
98static Eina_Bool
99_elm_scroller_class_initializer(Efl_Class *klass)
100{
101 const Efl_Object_Ops *opsp = NULL;
102
103 const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
104
105#ifndef ELM_SCROLLER_EXTRA_OPS
106#define ELM_SCROLLER_EXTRA_OPS
107#endif
108
109 EFL_OPS_DEFINE(ops,
110 EFL_OBJECT_OP_FUNC(elm_obj_scroller_custom_widget_base_theme_set, _elm_scroller_custom_widget_base_theme_set),
111 EFL_OBJECT_OP_FUNC(elm_obj_scroller_page_scroll_limit_set, _elm_scroller_page_scroll_limit_set),
112 EFL_OBJECT_OP_FUNC(elm_obj_scroller_page_scroll_limit_get, _elm_scroller_page_scroll_limit_get),
113 EFL_OBJECT_OP_FUNC(efl_constructor, _elm_scroller_efl_object_constructor),
114 EFL_OBJECT_OP_FUNC(efl_gfx_entity_position_set, _elm_scroller_efl_gfx_entity_position_set),
115 EFL_OBJECT_OP_FUNC(efl_gfx_entity_size_set, _elm_scroller_efl_gfx_entity_size_set),
116 EFL_OBJECT_OP_FUNC(efl_canvas_group_member_add, _elm_scroller_efl_canvas_group_group_member_add),
117 EFL_OBJECT_OP_FUNC(efl_content_set, _elm_scroller_efl_content_content_set),
118 EFL_OBJECT_OP_FUNC(efl_content_get, _elm_scroller_efl_content_content_get),
119 EFL_OBJECT_OP_FUNC(efl_content_unset, _elm_scroller_efl_content_content_unset),
120 EFL_OBJECT_OP_FUNC(efl_ui_widget_theme_apply, _elm_scroller_efl_ui_widget_theme_apply),
121 EFL_OBJECT_OP_FUNC(efl_ui_widget_on_access_activate, _elm_scroller_efl_ui_widget_on_access_activate),
122 EFL_OBJECT_OP_FUNC(efl_ui_widget_sub_object_del, _elm_scroller_efl_ui_widget_widget_sub_object_del),
123 EFL_OBJECT_OP_FUNC(efl_ui_widget_input_event_handler, _elm_scroller_efl_ui_widget_widget_input_event_handler),
124 EFL_OBJECT_OP_FUNC(elm_interface_scrollable_page_size_set, _elm_scroller_elm_interface_scrollable_page_size_set),
125 EFL_OBJECT_OP_FUNC(elm_interface_scrollable_policy_set, _elm_scroller_elm_interface_scrollable_policy_set),
126 EFL_OBJECT_OP_FUNC(elm_interface_scrollable_single_direction_set, _elm_scroller_elm_interface_scrollable_single_direction_set),
127 EFL_OBJECT_OP_FUNC(elm_interface_scrollable_single_direction_get, _elm_scroller_elm_interface_scrollable_single_direction_get),
128 EFL_OBJECT_OP_FUNC(efl_access_widget_action_elm_actions_get, _elm_scroller_efl_access_widget_action_elm_actions_get),
129 EFL_OBJECT_OP_FUNC(efl_part_get, _elm_scroller_efl_part_part_get),
130 EFL_OBJECT_OP_FUNC(efl_ui_widget_focus_state_apply, _elm_scroller_efl_ui_widget_focus_state_apply),
131 ELM_SCROLLER_EXTRA_OPS
132 );
133 opsp = &ops;
134
135 return efl_class_functions_set(klass, opsp, ropsp);
136}
137
138static const Efl_Class_Description _elm_scroller_class_desc = {
139 EO_VERSION,
140 "Elm.Scroller",
141 EFL_CLASS_TYPE_REGULAR,
142 sizeof(Elm_Scroller_Data),
143 _elm_scroller_class_initializer,
144 _elm_scroller_class_constructor,
145 NULL
146};
147
148EFL_DEFINE_CLASS(elm_scroller_class_get, &_elm_scroller_class_desc, EFL_UI_LAYOUT_BASE_CLASS, ELM_INTERFACE_SCROLLABLE_MIXIN, EFL_ACCESS_WIDGET_ACTION_MIXIN, EFL_UI_SCROLLABLE_INTERFACE, EFL_CONTENT_INTERFACE, EFL_UI_LEGACY_INTERFACE, NULL);
149
150#include "elm_scroller_eo.legacy.c"