1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
require 'efl/native/elm/elm_gen'
require 'efl/native/elm/elm_list'
require 'efl/native/elm/elm_scroller'
#
module Efl
#
module ElmGenList
#
FCT_PREFIX = 'elm_genlist_' unless const_defined? :FCT_PREFIX
#
def self.method_missing meth, *args, &block
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
self.send sym, *args, &block
end
#
end
#
module Native
#
ffi_lib 'elementary-ver-pre-svn-09.so.0'
#
# ENUMS
# typedef enum {...} Elm_Genlist_Item_Type;
enum :elm_genlist_item_type, [ :elm_genlist_item_none, 0, :elm_genlist_item_subitems, (1<<0), :elm_genlist_item_group, (1<<1),
:elm_genlist_item_max, (1<<2) ]
# typedef enum {...} Elm_Genlist_Item_Field_Type;
enum :elm_genlist_item_field_type, [ :elm_genlist_item_field_all, 0, :elm_genlist_item_field_text, (1<<0), :elm_genlist_item_field_content,
(1<<1), :elm_genlist_item_field_state, (1<<2) ]
# typedef enum {...} Elm_Genlist_Item_Scrollto_Type;
enum :elm_genlist_item_scrollto_type, [ :elm_genlist_item_scrollto_none, 0, :elm_genlist_item_scrollto_in, (1<<0),
:elm_genlist_item_scrollto_top, (1<<1), :elm_genlist_item_scrollto_middle, (1<<2) ]
#
# TYPEDEFS
# typedef Elm_Gen_Item_Class Elm_Genlist_Item_Class;
typedef :elm_gen_item_class, :elm_genlist_item_class
# typedef Elm_Gen_Item_Text_Get_Cb Elm_Genlist_Item_Text_Get_Cb;
typedef :elm_gen_item_text_get_cb, :elm_genlist_item_text_get_cb
# typedef Elm_Gen_Item_Content_Get_Cb Elm_Genlist_Item_Content_Get_Cb;
typedef :elm_gen_item_content_get_cb, :elm_genlist_item_content_get_cb
# typedef Elm_Gen_Item_State_Get_Cb Elm_Genlist_Item_State_Get_Cb;
typedef :elm_gen_item_state_get_cb, :elm_genlist_item_state_get_cb
# typedef Elm_Gen_Item_Del_Cb Elm_Genlist_Item_Del_Cb;
typedef :elm_gen_item_del_cb, :elm_genlist_item_del_cb
#
# FUNCTIONS
fcts = [
# EAPI Evas_Object *elm_genlist_add(Evas_Object *parent);
[ :elm_genlist_add, [ :evas_object ], :evas_object ],
# EAPI void elm_genlist_clear(Evas_Object *obj);
[ :elm_genlist_clear, [ :evas_object ], :void ],
# EAPI void elm_genlist_multi_select_set(Evas_Object *obj, Eina_Bool multi);
[ :elm_genlist_multi_select_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_multi_select_get(const Evas_Object *obj);
[ :elm_genlist_multi_select_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_mode_set(Evas_Object *obj, Elm_List_Mode mode);
[ :elm_genlist_mode_set, [ :evas_object, :elm_list_mode ], :void ],
# EAPI Elm_List_Mode elm_genlist_mode_get(const Evas_Object *obj);
[ :elm_genlist_mode_get, [ :evas_object ], :elm_list_mode ],
# EAPI void elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
[ :elm_genlist_always_select_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_always_select_mode_get(const Evas_Object *obj);
[ :elm_genlist_always_select_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
[ :elm_genlist_no_select_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_no_select_mode_get(const Evas_Object *obj);
[ :elm_genlist_no_select_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
[ :elm_genlist_bounce_set, [ :evas_object, :bool, :bool ], :void ],
# EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
[ :elm_genlist_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
# EAPI Elm_Object_Item *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
[ :elm_genlist_item_append, [ :evas_object, :pointer, :pointer, :elm_object_item, :elm_genlist_item_type, :evas_smart_cb, :pointer ],
:elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
[ :elm_genlist_item_prepend, [ :evas_object, :pointer, :pointer, :elm_object_item, :elm_genlist_item_type, :evas_smart_cb, :pointer ],
:elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
[ :elm_genlist_item_insert_before, [ :evas_object, :pointer, :pointer, :elm_object_item, :elm_object_item, :elm_genlist_item_type,
:evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
[ :elm_genlist_item_insert_after, [ :evas_object, :pointer, :pointer, :elm_object_item, :elm_object_item, :elm_genlist_item_type,
:evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
[ :elm_genlist_item_sorted_insert, [ :evas_object, :pointer, :pointer, :elm_object_item, :elm_genlist_item_type, :eina_compare_cb,
:evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_selected_item_get(const Evas_Object *obj);
[ :elm_genlist_selected_item_get, [ :evas_object ], :elm_object_item ],
# EAPI const Eina_List *elm_genlist_selected_items_get(const Evas_Object *obj);
[ :elm_genlist_selected_items_get, [ :evas_object ], :eina_list ],
# EAPI Eina_List *elm_genlist_realized_items_get(const Evas_Object *obj);
[ :elm_genlist_realized_items_get, [ :evas_object ], :eina_list ],
# EAPI Elm_Object_Item *elm_genlist_first_item_get(const Evas_Object *obj);
[ :elm_genlist_first_item_get, [ :evas_object ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_last_item_get(const Evas_Object *obj);
[ :elm_genlist_last_item_get, [ :evas_object ], :elm_object_item ],
# EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
[ :elm_genlist_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
# EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
[ :elm_genlist_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
# EAPI Elm_Object_Item *elm_genlist_item_next_get(const Elm_Object_Item *it);
[ :elm_genlist_item_next_get, [ :elm_object_item ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_item_prev_get(const Elm_Object_Item *it);
[ :elm_genlist_item_prev_get, [ :elm_object_item ], :elm_object_item ],
# EAPI void elm_genlist_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
[ :elm_genlist_item_selected_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_item_selected_get(const Elm_Object_Item *it);
[ :elm_genlist_item_selected_get, [ :elm_object_item ], :bool ],
# EAPI void elm_genlist_item_show(Elm_Object_Item *it, Elm_Genlist_Item_Scrollto_Type type);
[ :elm_genlist_item_show, [ :elm_object_item, :elm_genlist_item_scrollto_type ], :void ],
# EAPI void elm_genlist_item_bring_in(Elm_Object_Item *it, Elm_Genlist_Item_Scrollto_Type type);
[ :elm_genlist_item_bring_in, [ :elm_object_item, :elm_genlist_item_scrollto_type ], :void ],
# EAPI void elm_genlist_item_update(Elm_Object_Item *it);
[ :elm_genlist_item_update, [ :elm_object_item ], :void ],
# EAPI void elm_genlist_item_item_class_update(Elm_Object_Item *it, const Elm_Genlist_Item_Class *itc);
[ :elm_genlist_item_item_class_update, [ :elm_object_item, :pointer ], :void ],
# EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Object_Item *it);
[ :elm_genlist_item_item_class_get, [ :elm_object_item ], :pointer ],
# EAPI int elm_genlist_item_index_get(const Elm_Object_Item *it);
[ :elm_genlist_item_index_get, [ :elm_object_item ], :int ],
# EAPI void elm_genlist_realized_items_update(Evas_Object *obj);
[ :elm_genlist_realized_items_update, [ :evas_object ], :void ],
# EAPI unsigned int elm_genlist_items_count(const Evas_Object *obj);
[ :elm_genlist_items_count, [ :evas_object ], :uint ],
# EAPI Elm_Genlist_Item_Class *elm_genlist_item_class_new(void);
[ :elm_genlist_item_class_new, [ ], :pointer ],
# EAPI void elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc);
[ :elm_genlist_item_class_free, [ :pointer ], :void ],
# EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc);
[ :elm_genlist_item_class_ref, [ :pointer ], :void ],
# EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc);
[ :elm_genlist_item_class_unref, [ :pointer ], :void ],
# EAPI void elm_genlist_item_tooltip_text_set(Elm_Object_Item *it, const char *text);
[ :elm_genlist_item_tooltip_text_set, [ :elm_object_item, :string ], :void ],
# EAPI void elm_genlist_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
[ :elm_genlist_item_tooltip_content_cb_set, [ :elm_object_item, :elm_tooltip_item_content_cb, :pointer, :evas_smart_cb ], :void ],
# EAPI void elm_genlist_item_tooltip_unset(Elm_Object_Item *it);
[ :elm_genlist_item_tooltip_unset, [ :elm_object_item ], :void ],
# EAPI void elm_genlist_item_tooltip_style_set(Elm_Object_Item *it, const char *style);
[ :elm_genlist_item_tooltip_style_set, [ :elm_object_item, :string ], :void ],
# EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it);
[ :elm_genlist_item_tooltip_style_get, [ :elm_object_item ], :string ],
# EAPI Eina_Bool elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable);
[ :elm_genlist_item_tooltip_window_mode_set, [ :elm_object_item, :bool ], :bool ],
# EAPI Eina_Bool elm_genlist_item_tooltip_window_mode_get(const Elm_Object_Item *it);
[ :elm_genlist_item_tooltip_window_mode_get, [ :elm_object_item ], :bool ],
# EAPI void elm_genlist_item_cursor_set(Elm_Object_Item *it, const char *cursor);
[ :elm_genlist_item_cursor_set, [ :elm_object_item, :string ], :void ],
# EAPI const char *elm_genlist_item_cursor_get(const Elm_Object_Item *it);
[ :elm_genlist_item_cursor_get, [ :elm_object_item ], :string ],
# EAPI void elm_genlist_item_cursor_unset(Elm_Object_Item *it);
[ :elm_genlist_item_cursor_unset, [ :elm_object_item ], :void ],
# EAPI void elm_genlist_item_cursor_style_set(Elm_Object_Item *it, const char *style);
[ :elm_genlist_item_cursor_style_set, [ :elm_object_item, :string ], :void ],
# EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Object_Item *it);
[ :elm_genlist_item_cursor_style_get, [ :elm_object_item ], :string ],
# EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only);
[ :elm_genlist_item_cursor_engine_only_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *it);
[ :elm_genlist_item_cursor_engine_only_get, [ :elm_object_item ], :bool ],
# EAPI void elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress);
[ :elm_genlist_compress_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_compress_mode_get(const Evas_Object *obj);
[ :elm_genlist_compress_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width);
[ :elm_genlist_height_for_width_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_height_for_width_mode_get(const Evas_Object *obj);
[ :elm_genlist_height_for_width_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous);
[ :elm_genlist_homogeneous_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_homogeneous_get(const Evas_Object *obj);
[ :elm_genlist_homogeneous_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_block_count_set(Evas_Object *obj, int count);
[ :elm_genlist_block_count_set, [ :evas_object, :int ], :void ],
# EAPI int elm_genlist_block_count_get(const Evas_Object *obj);
[ :elm_genlist_block_count_get, [ :evas_object ], :int ],
# EAPI void elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout);
[ :elm_genlist_longpress_timeout_set, [ :evas_object, :double ], :void ],
# EAPI double elm_genlist_longpress_timeout_get(const Evas_Object *obj);
[ :elm_genlist_longpress_timeout_get, [ :evas_object ], :double ],
# EAPI Elm_Object_Item *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret);
[ :elm_genlist_at_xy_item_get, [ :evas_object, :int, :int, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_genlist_item_parent_get(const Elm_Object_Item *it);
[ :elm_genlist_item_parent_get, [ :elm_object_item ], :elm_object_item ],
# EAPI void elm_genlist_item_subitems_clear(Elm_Object_Item *it);
[ :elm_genlist_item_subitems_clear, [ :elm_object_item ], :void ],
# EAPI void elm_genlist_item_expanded_set(Elm_Object_Item *it, Eina_Bool expanded);
[ :elm_genlist_item_expanded_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_item_expanded_get(const Elm_Object_Item *it);
[ :elm_genlist_item_expanded_get, [ :elm_object_item ], :bool ],
# EAPI int elm_genlist_item_expanded_depth_get(const Elm_Object_Item *it);
[ :elm_genlist_item_expanded_depth_get, [ :elm_object_item ], :int ],
# EAPI void elm_genlist_item_display_only_set(Elm_Object_Item *it, Eina_Bool display_only);
[ :elm_genlist_item_display_only_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_item_display_only_get(const Elm_Object_Item *it);
[ :elm_genlist_item_display_only_get, [ :elm_object_item ], :bool ],
# EAPI void elm_genlist_item_all_contents_unset(Elm_Object_Item *it, Eina_List **l);
[ :elm_genlist_item_all_contents_unset, [ :elm_object_item, :eina_list ], :void ],
# EAPI void elm_genlist_item_promote(Elm_Object_Item *it);
[ :elm_genlist_item_promote, [ :elm_object_item ], :void ],
# EAPI void elm_genlist_item_demote(Elm_Object_Item *it);
[ :elm_genlist_item_demote, [ :elm_object_item ], :void ],
# EAPI void elm_genlist_item_fields_update(Elm_Object_Item *it, const char *parts, Elm_Genlist_Item_Field_Type itf);
[ :elm_genlist_item_fields_update, [ :elm_object_item, :string, :elm_genlist_item_field_type ], :void ],
# EAPI void elm_genlist_item_mode_set(Elm_Object_Item *it, const char *mode_type, Eina_Bool mode_set);
[ :elm_genlist_item_mode_set, [ :elm_object_item, :string, :bool ], :void ],
# EAPI const char *elm_genlist_mode_type_get(const Evas_Object *obj);
[ :elm_genlist_mode_type_get, [ :evas_object ], :string ],
# EAPI const Elm_Object_Item *elm_genlist_mode_item_get(const Evas_Object *obj);
[ :elm_genlist_mode_item_get, [ :evas_object ], :elm_object_item ],
# EAPI void elm_genlist_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode);
[ :elm_genlist_reorder_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_reorder_mode_get(const Evas_Object *obj);
[ :elm_genlist_reorder_mode_get, [ :evas_object ], :bool ],
# EAPI Elm_Genlist_Item_Type elm_genlist_item_type_get(const Elm_Object_Item *it);
[ :elm_genlist_item_type_get, [ :elm_object_item ], :elm_genlist_item_type ],
# EAPI void elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode);
[ :elm_genlist_edit_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_edit_mode_get(const Evas_Object *obj);
[ :elm_genlist_edit_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_genlist_item_flip_set(Elm_Object_Item *it, Eina_Bool flip);
[ :elm_genlist_item_flip_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_genlist_item_flip_get(const Elm_Object_Item *it);
[ :elm_genlist_item_flip_get, [ :elm_object_item ], :bool ],
]
#
attach_fcts fcts
#
end
end
#
# EOF
|