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
|
#! /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_scroller'
#
module Efl
#
module ElmGenGrid
#
FCT_PREFIX = 'elm_gengrid_' 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.so.1'
#
# ENUMS
# typedef enum {...} Elm_Gengrid_Item_Scrollto_Type;
enum :elm_gengrid_item_scrollto_type, [ :elm_gengrid_item_scrollto_none, 0, :elm_gengrid_item_scrollto_in, (1<<0),
:elm_gengrid_item_scrollto_top, (1<<1), :elm_gengrid_item_scrollto_middle, (1<<2) ]
#
# TYPEDEFS
# typedef Elm_Gen_Item_Class Elm_Gengrid_Item_Class;
typedef :elm_gen_item_class, :elm_gengrid_item_class
# typedef Elm_Gen_Item_Text_Get_Cb Elm_Gengrid_Item_Text_Get_Cb;
typedef :elm_gen_item_text_get_cb, :elm_gengrid_item_text_get_cb
# typedef Elm_Gen_Item_Content_Get_Cb Elm_Gengrid_Item_Content_Get_Cb;
typedef :elm_gen_item_content_get_cb, :elm_gengrid_item_content_get_cb
# typedef Elm_Gen_Item_State_Get_Cb Elm_Gengrid_Item_State_Get_Cb;
typedef :elm_gen_item_state_get_cb, :elm_gengrid_item_state_get_cb
# typedef Elm_Gen_Item_Del_Cb Elm_Gengrid_Item_Del_Cb;
typedef :elm_gen_item_del_cb, :elm_gengrid_item_del_cb
#
# FUNCTIONS
fcts = [
# EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent);
[ :elm_gengrid_add, [ :evas_object ], :evas_object ],
# EAPI void elm_gengrid_clear(Evas_Object *obj);
[ :elm_gengrid_clear, [ :evas_object ], :void ],
# EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi);
[ :elm_gengrid_multi_select_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj);
[ :elm_gengrid_multi_select_get, [ :evas_object ], :bool ],
# EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
[ :elm_gengrid_horizontal_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj);
[ :elm_gengrid_horizontal_get, [ :evas_object ], :bool ],
# EAPI Elm_Object_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data);
[ :elm_gengrid_item_append, [ :evas_object, :pointer, :pointer, :evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data);
[ :elm_gengrid_item_prepend, [ :evas_object, :pointer, :pointer, :evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_item_insert_before(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Object_Item *relative, Evas_Smart_Cb func, const void *func_data);
[ :elm_gengrid_item_insert_before, [ :evas_object, :pointer, :pointer, :elm_object_item, :evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_item_insert_after(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Object_Item *relative, Evas_Smart_Cb func, const void *func_data);
[ :elm_gengrid_item_insert_after, [ :evas_object, :pointer, :pointer, :elm_object_item, :evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_item_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
[ :elm_gengrid_item_sorted_insert, [ :evas_object, :pointer, :pointer, :eina_compare_cb, :evas_smart_cb, :pointer ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_selected_item_get(const Evas_Object *obj);
[ :elm_gengrid_selected_item_get, [ :evas_object ], :elm_object_item ],
# EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj);
[ :elm_gengrid_selected_items_get, [ :evas_object ], :eina_list ],
# EAPI Eina_List *elm_gengrid_realized_items_get(const Evas_Object *obj);
[ :elm_gengrid_realized_items_get, [ :evas_object ], :eina_list ],
# EAPI void elm_gengrid_realized_items_update(Evas_Object *obj);
[ :elm_gengrid_realized_items_update, [ :evas_object ], :void ],
# EAPI Elm_Object_Item *elm_gengrid_first_item_get(const Evas_Object *obj);
[ :elm_gengrid_first_item_get, [ :evas_object ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_last_item_get(const Evas_Object *obj);
[ :elm_gengrid_last_item_get, [ :evas_object ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_item_next_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_next_get, [ :elm_object_item ], :elm_object_item ],
# EAPI Elm_Object_Item *elm_gengrid_item_prev_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_prev_get, [ :elm_object_item ], :elm_object_item ],
# EAPI void elm_gengrid_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
[ :elm_gengrid_item_selected_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_selected_get, [ :elm_object_item ], :bool ],
# EAPI void elm_gengrid_item_show(Elm_Object_Item *it, Elm_Gengrid_Item_Scrollto_Type type);
[ :elm_gengrid_item_show, [ :elm_object_item, :elm_gengrid_item_scrollto_type ], :void ],
# EAPI void elm_gengrid_item_bring_in(Elm_Object_Item *it, Elm_Gengrid_Item_Scrollto_Type type);
[ :elm_gengrid_item_bring_in, [ :elm_object_item, :elm_gengrid_item_scrollto_type ], :void ],
# EAPI void elm_gengrid_item_update(Elm_Object_Item *it);
[ :elm_gengrid_item_update, [ :elm_object_item ], :void ],
# EAPI void elm_gengrid_item_item_class_update(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
[ :elm_gengrid_item_item_class_update, [ :elm_object_item, :pointer ], :void ],
# EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_item_class_get, [ :elm_object_item ], :pointer ],
# EAPI int elm_gengrid_item_index_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_index_get, [ :elm_object_item ], :int ],
# EAPI unsigned int elm_gengrid_items_count(const Evas_Object *obj);
[ :elm_gengrid_items_count, [ :evas_object ], :uint ],
# EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void);
[ :elm_gengrid_item_class_new, [ ], :pointer ],
# EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc);
[ :elm_gengrid_item_class_free, [ :pointer ], :void ],
# EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc);
[ :elm_gengrid_item_class_ref, [ :pointer ], :void ],
# EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc);
[ :elm_gengrid_item_class_unref, [ :pointer ], :void ],
# EAPI void elm_gengrid_item_tooltip_text_set(Elm_Object_Item *it, const char *text);
[ :elm_gengrid_item_tooltip_text_set, [ :elm_object_item, :string ], :void ],
# EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
[ :elm_gengrid_item_tooltip_content_cb_set, [ :elm_object_item, :elm_tooltip_item_content_cb, :pointer, :evas_smart_cb ], :void ],
# EAPI void elm_gengrid_item_tooltip_unset(Elm_Object_Item *it);
[ :elm_gengrid_item_tooltip_unset, [ :elm_object_item ], :void ],
# EAPI void elm_gengrid_item_tooltip_style_set(Elm_Object_Item *it, const char *style);
[ :elm_gengrid_item_tooltip_style_set, [ :elm_object_item, :string ], :void ],
# EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_tooltip_style_get, [ :elm_object_item ], :string ],
# EAPI Eina_Bool elm_gengrid_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable);
[ :elm_gengrid_item_tooltip_window_mode_set, [ :elm_object_item, :bool ], :bool ],
# EAPI Eina_Bool elm_gengrid_item_tooltip_window_mode_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_tooltip_window_mode_get, [ :elm_object_item ], :bool ],
# EAPI void elm_gengrid_item_cursor_set(Elm_Object_Item *it, const char *cursor);
[ :elm_gengrid_item_cursor_set, [ :elm_object_item, :string ], :void ],
# EAPI const char *elm_gengrid_item_cursor_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_cursor_get, [ :elm_object_item ], :string ],
# EAPI void elm_gengrid_item_cursor_unset(Elm_Object_Item *it);
[ :elm_gengrid_item_cursor_unset, [ :elm_object_item ], :void ],
# EAPI void elm_gengrid_item_cursor_style_set(Elm_Object_Item *it, const char *style);
[ :elm_gengrid_item_cursor_style_set, [ :elm_object_item, :string ], :void ],
# EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_cursor_style_get, [ :elm_object_item ], :string ],
# EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only);
[ :elm_gengrid_item_cursor_engine_only_set, [ :elm_object_item, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_cursor_engine_only_get, [ :elm_object_item ], :bool ],
# EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
[ :elm_gengrid_item_size_set, [ :evas_object, :int, :int ], :void ],
# EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
[ :elm_gengrid_item_size_get, [ :evas_object, :pointer, :pointer ], :void ],
# EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
[ :elm_gengrid_group_item_size_set, [ :evas_object, :int, :int ], :void ],
# EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
[ :elm_gengrid_group_item_size_get, [ :evas_object, :pointer, :pointer ], :void ],
# EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y);
[ :elm_gengrid_align_set, [ :evas_object, :double, :double ], :void ],
# EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y);
[ :elm_gengrid_align_get, [ :evas_object, :pointer, :pointer ], :void ],
# EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode);
[ :elm_gengrid_reorder_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj);
[ :elm_gengrid_reorder_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
[ :elm_gengrid_page_show, [ :evas_object, :int, :int ], :void ],
# EAPI void elm_gengrid_item_pos_get(const Elm_Object_Item *it, unsigned int *x, unsigned int *y);
[ :elm_gengrid_item_pos_get, [ :elm_object_item, :pointer, :pointer ], :void ],
# EAPI void elm_gengrid_filled_set(Evas_Object *obj, Eina_Bool fill);
[ :elm_gengrid_filled_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_filled_get(const Evas_Object *obj);
[ :elm_gengrid_filled_get, [ :evas_object ], :bool ],
# EAPI void elm_gengrid_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode mode);
[ :elm_gengrid_select_mode_set, [ :evas_object, :elm_object_select_mode ], :void ],
# EAPI Elm_Object_Select_Mode elm_gengrid_select_mode_get(const Evas_Object *obj);
[ :elm_gengrid_select_mode_get, [ :evas_object ], :elm_object_select_mode ],
# EAPI void elm_gengrid_highlight_mode_set(Evas_Object *obj, Eina_Bool highlight);
[ :elm_gengrid_highlight_mode_set, [ :evas_object, :bool ], :void ],
# EAPI Eina_Bool elm_gengrid_highlight_mode_get(const Evas_Object *obj);
[ :elm_gengrid_highlight_mode_get, [ :evas_object ], :bool ],
# EAPI void elm_gengrid_item_select_mode_set(Elm_Object_Item *it, Elm_Object_Select_Mode mode);
[ :elm_gengrid_item_select_mode_set, [ :elm_object_item, :elm_object_select_mode ], :void ],
# EAPI Elm_Object_Select_Mode elm_gengrid_item_select_mode_get(const Elm_Object_Item *it);
[ :elm_gengrid_item_select_mode_get, [ :elm_object_item ], :elm_object_select_mode ],
]
#
attach_fcts fcts
#
end
end
#
# EOF
|