ffi-efl 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module EcoreEvas
9
+ #
10
+ FCT_PREFIX = 'ecore_evas_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'ecore_evas_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -75,6 +76,72 @@ module Efl
75
76
  [ :ecore_evas_engines_free, [ :eina_list_p ], :void ],
76
77
  # EAPI Ecore_Evas *ecore_evas_new(const char *engine_name, int x, int y, int w, int h, const char *extra_options);
77
78
  [ :ecore_evas_new, [ :string, :int, :int, :int, :int, :string ], :ecore_evas_p ],
79
+ # EAPI void ecore_evas_alpha_set(Ecore_Evas *ee, Eina_Bool alpha);
80
+ [ :ecore_evas_alpha_set, [ :ecore_evas_p, :eina_bool ], :void ],
81
+ # EAPI Eina_Bool ecore_evas_alpha_get(const Ecore_Evas *ee);
82
+ [ :ecore_evas_alpha_get, [ :ecore_evas_p ], :eina_bool ],
83
+ # EAPI void ecore_evas_transparent_set(Ecore_Evas *ee, Eina_Bool transparent);
84
+ [ :ecore_evas_transparent_set, [ :ecore_evas_p, :eina_bool ], :void ],
85
+ # EAPI Eina_Bool ecore_evas_transparent_get(const Ecore_Evas *ee);
86
+ [ :ecore_evas_transparent_get, [ :ecore_evas_p ], :eina_bool ],
87
+ # EAPI void ecore_evas_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, int *h);
88
+ [ :ecore_evas_geometry_get, [ :ecore_evas_p, :int_p, :int_p, :int_p, :int_p ], :void ],
89
+ # EAPI void ecore_evas_focus_set(Ecore_Evas *ee, Eina_Bool on);
90
+ [ :ecore_evas_focus_set, [ :ecore_evas_p, :eina_bool ], :void ],
91
+ # EAPI Eina_Bool ecore_evas_focus_get(const Ecore_Evas *ee);
92
+ [ :ecore_evas_focus_get, [ :ecore_evas_p ], :eina_bool ],
93
+ # EAPI void ecore_evas_iconified_set(Ecore_Evas *ee, Eina_Bool on);
94
+ [ :ecore_evas_iconified_set, [ :ecore_evas_p, :eina_bool ], :void ],
95
+ # EAPI Eina_Bool ecore_evas_iconified_get(const Ecore_Evas *ee);
96
+ [ :ecore_evas_iconified_get, [ :ecore_evas_p ], :eina_bool ],
97
+ # EAPI void ecore_evas_borderless_set(Ecore_Evas *ee, Eina_Bool on);
98
+ [ :ecore_evas_borderless_set, [ :ecore_evas_p, :eina_bool ], :void ],
99
+ # EAPI Eina_Bool ecore_evas_borderless_get(const Ecore_Evas *ee);
100
+ [ :ecore_evas_borderless_get, [ :ecore_evas_p ], :eina_bool ],
101
+ # EAPI void ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on);
102
+ [ :ecore_evas_fullscreen_set, [ :ecore_evas_p, :eina_bool ], :void ],
103
+ # EAPI Eina_Bool ecore_evas_fullscreen_get(const Ecore_Evas *ee);
104
+ [ :ecore_evas_fullscreen_get, [ :ecore_evas_p ], :eina_bool ],
105
+ # EAPI void ecore_evas_ignore_events_set(Ecore_Evas *ee, Eina_Bool ignore);
106
+ [ :ecore_evas_ignore_events_set, [ :ecore_evas_p, :eina_bool ], :void ],
107
+ # EAPI Eina_Bool ecore_evas_ignore_events_get(const Ecore_Evas *ee);
108
+ [ :ecore_evas_ignore_events_get, [ :ecore_evas_p ], :eina_bool ],
109
+ # EAPI int ecore_evas_visibility_get(const Ecore_Evas *ee);
110
+ [ :ecore_evas_visibility_get, [ :ecore_evas_p ], :int ],
111
+ # EAPI void ecore_evas_layer_set(Ecore_Evas *ee, int layer);
112
+ [ :ecore_evas_layer_set, [ :ecore_evas_p, :int ], :void ],
113
+ # EAPI int ecore_evas_layer_get(const Ecore_Evas *ee);
114
+ [ :ecore_evas_layer_get, [ :ecore_evas_p ], :int ],
115
+ # EAPI void ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on);
116
+ [ :ecore_evas_maximized_set, [ :ecore_evas_p, :eina_bool ], :void ],
117
+ # EAPI Eina_Bool ecore_evas_maximized_get(const Ecore_Evas *ee);
118
+ [ :ecore_evas_maximized_get, [ :ecore_evas_p ], :eina_bool ],
119
+ # EAPI void ecore_evas_move(Ecore_Evas *ee, int x, int y);
120
+ [ :ecore_evas_move, [ :ecore_evas_p, :int, :int ], :void ],
121
+ # EAPI void ecore_evas_resize(Ecore_Evas *ee, int w, int h);
122
+ [ :ecore_evas_resize, [ :ecore_evas_p, :int, :int ], :void ],
123
+ # EAPI void ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h);
124
+ [ :ecore_evas_move_resize, [ :ecore_evas_p, :int, :int, :int, :int ], :void ],
125
+ # EAPI void ecore_evas_rotation_set(Ecore_Evas *ee, int rot);
126
+ [ :ecore_evas_rotation_set, [ :ecore_evas_p, :int ], :void ],
127
+ # EAPI void ecore_evas_rotation_with_resize_set(Ecore_Evas *ee, int rot);
128
+ [ :ecore_evas_rotation_with_resize_set, [ :ecore_evas_p, :int ], :void ],
129
+ # EAPI int ecore_evas_rotation_get(const Ecore_Evas *ee);
130
+ [ :ecore_evas_rotation_get, [ :ecore_evas_p ], :int ],
131
+ # EAPI void ecore_evas_raise(Ecore_Evas *ee);
132
+ [ :ecore_evas_raise, [ :ecore_evas_p ], :void ],
133
+ # EAPI void ecore_evas_lower(Ecore_Evas *ee);
134
+ [ :ecore_evas_lower, [ :ecore_evas_p ], :void ],
135
+ # EAPI void ecore_evas_title_set(Ecore_Evas *ee, const char *t);
136
+ [ :ecore_evas_title_set, [ :ecore_evas_p, :string ], :void ],
137
+ # EAPI const char *ecore_evas_title_get(const Ecore_Evas *ee);
138
+ [ :ecore_evas_title_get, [ :ecore_evas_p ], :string ],
139
+ # EAPI void ecore_evas_name_class_set(Ecore_Evas *ee, const char *n, const char *c);
140
+ [ :ecore_evas_name_class_set, [ :ecore_evas_p, :string, :string ], :void ],
141
+ # EAPI void ecore_evas_name_class_get(const Ecore_Evas *ee, const char **n, const char **c);
142
+ [ :ecore_evas_name_class_get, [ :ecore_evas_p, :string_array, :string_array ], :void ],
143
+ # EAPI Ecore_Window ecore_evas_window_get(const Ecore_Evas *ee);
144
+ [ :ecore_evas_window_get, [ :ecore_evas_p ], :uintptr_t ],
78
145
  # EAPI Ecore_Evas *ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
79
146
  [ :ecore_evas_software_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ],
80
147
  # EAPI Ecore_X_Window ecore_evas_software_x11_window_get(const Ecore_Evas *ee);
@@ -221,54 +288,18 @@ module Efl
221
288
  [ :ecore_evas_callback_pre_free_set, [:ecore_evas_p, :ecore_evas_event_cb], :void],
222
289
  # EAPI Evas *ecore_evas_get(const Ecore_Evas *ee);
223
290
  [ :ecore_evas_get, [ :ecore_evas_p ], :evas_p ],
224
- # EAPI void ecore_evas_move(Ecore_Evas *ee, int x, int y);
225
- [ :ecore_evas_move, [ :ecore_evas_p, :int, :int ], :void ],
226
291
  # EAPI void ecore_evas_managed_move(Ecore_Evas *ee, int x, int y);
227
292
  [ :ecore_evas_managed_move, [ :ecore_evas_p, :int, :int ], :void ],
228
- # EAPI void ecore_evas_resize(Ecore_Evas *ee, int w, int h);
229
- [ :ecore_evas_resize, [ :ecore_evas_p, :int, :int ], :void ],
230
- # EAPI void ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h);
231
- [ :ecore_evas_move_resize, [ :ecore_evas_p, :int, :int, :int, :int ], :void ],
232
- # EAPI void ecore_evas_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, int *h);
233
- [ :ecore_evas_geometry_get, [ :ecore_evas_p, :int_p, :int_p, :int_p, :int_p ], :void ],
234
- # EAPI void ecore_evas_rotation_set(Ecore_Evas *ee, int rot);
235
- [ :ecore_evas_rotation_set, [ :ecore_evas_p, :int ], :void ],
236
- # EAPI void ecore_evas_rotation_with_resize_set(Ecore_Evas *ee, int rot);
237
- [ :ecore_evas_rotation_with_resize_set, [ :ecore_evas_p, :int ], :void ],
238
- # EAPI int ecore_evas_rotation_get(const Ecore_Evas *ee);
239
- [ :ecore_evas_rotation_get, [ :ecore_evas_p ], :int ],
240
293
  # EAPI void ecore_evas_shaped_set(Ecore_Evas *ee, Eina_Bool shaped);
241
294
  [ :ecore_evas_shaped_set, [ :ecore_evas_p, :eina_bool ], :void ],
242
295
  # EAPI Eina_Bool ecore_evas_shaped_get(const Ecore_Evas *ee);
243
296
  [ :ecore_evas_shaped_get, [ :ecore_evas_p ], :eina_bool ],
244
- # EAPI void ecore_evas_alpha_set(Ecore_Evas *ee, Eina_Bool alpha);
245
- [ :ecore_evas_alpha_set, [ :ecore_evas_p, :eina_bool ], :void ],
246
- # EAPI Eina_Bool ecore_evas_alpha_get(const Ecore_Evas *ee);
247
- [ :ecore_evas_alpha_get, [ :ecore_evas_p ], :eina_bool ],
248
- # EAPI void ecore_evas_transparent_set(Ecore_Evas *ee, Eina_Bool transparent);
249
- [ :ecore_evas_transparent_set, [ :ecore_evas_p, :eina_bool ], :void ],
250
- # EAPI Eina_Bool ecore_evas_transparent_get(const Ecore_Evas *ee);
251
- [ :ecore_evas_transparent_get, [ :ecore_evas_p ], :eina_bool ],
252
297
  # EAPI void ecore_evas_show(Ecore_Evas *ee);
253
298
  [ :ecore_evas_show, [ :ecore_evas_p ], :void ],
254
299
  # EAPI void ecore_evas_hide(Ecore_Evas *ee);
255
300
  [ :ecore_evas_hide, [ :ecore_evas_p ], :void ],
256
- # EAPI int ecore_evas_visibility_get(const Ecore_Evas *ee);
257
- [ :ecore_evas_visibility_get, [ :ecore_evas_p ], :int ],
258
- # EAPI void ecore_evas_raise(Ecore_Evas *ee);
259
- [ :ecore_evas_raise, [ :ecore_evas_p ], :void ],
260
- # EAPI void ecore_evas_lower(Ecore_Evas *ee);
261
- [ :ecore_evas_lower, [ :ecore_evas_p ], :void ],
262
301
  # EAPI void ecore_evas_activate(Ecore_Evas *ee);
263
302
  [ :ecore_evas_activate, [ :ecore_evas_p ], :void ],
264
- # EAPI void ecore_evas_title_set(Ecore_Evas *ee, const char *t);
265
- [ :ecore_evas_title_set, [ :ecore_evas_p, :string ], :void ],
266
- # EAPI const char *ecore_evas_title_get(const Ecore_Evas *ee);
267
- [ :ecore_evas_title_get, [ :ecore_evas_p ], :string ],
268
- # EAPI void ecore_evas_name_class_set(Ecore_Evas *ee, const char *n, const char *c);
269
- [ :ecore_evas_name_class_set, [ :ecore_evas_p, :string, :string ], :void ],
270
- # EAPI void ecore_evas_name_class_get(const Ecore_Evas *ee, const char **n, const char **c);
271
- [ :ecore_evas_name_class_get, [ :ecore_evas_p, :string_array, :string_array ], :void ],
272
303
  # EAPI void ecore_evas_size_min_set(Ecore_Evas *ee, int w, int h);
273
304
  [ :ecore_evas_size_min_set, [ :ecore_evas_p, :int, :int ], :void ],
274
305
  # EAPI void ecore_evas_size_min_get(const Ecore_Evas *ee, int *w, int *h);
@@ -287,38 +318,14 @@ module Efl
287
318
  [ :ecore_evas_size_step_get, [ :ecore_evas_p, :int_p, :int_p ], :void ],
288
319
  # EAPI void ecore_evas_cursor_set(Ecore_Evas *ee, const char *file, int layer, int hot_x, int hot_y);
289
320
  [ :ecore_evas_cursor_set, [ :ecore_evas_p, :string, :int, :int, :int ], :void ],
290
- # EAPI void ecore_evas_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y);
291
- [ :ecore_evas_object_cursor_set, [ :ecore_evas_p, :evas_object_p, :int, :int, :int ], :void ],
292
321
  # EAPI void ecore_evas_cursor_get(const Ecore_Evas *ee, Evas_Object **obj, int *layer, int *hot_x, int *hot_y);
293
322
  [ :ecore_evas_cursor_get, [ :ecore_evas_p, :evas_object_pp, :int_p, :int_p, :int_p ], :void ],
294
- # EAPI void ecore_evas_layer_set(Ecore_Evas *ee, int layer);
295
- [ :ecore_evas_layer_set, [ :ecore_evas_p, :int ], :void ],
296
- # EAPI int ecore_evas_layer_get(const Ecore_Evas *ee);
297
- [ :ecore_evas_layer_get, [ :ecore_evas_p ], :int ],
298
- # EAPI void ecore_evas_focus_set(Ecore_Evas *ee, Eina_Bool on);
299
- [ :ecore_evas_focus_set, [ :ecore_evas_p, :eina_bool ], :void ],
300
- # EAPI Eina_Bool ecore_evas_focus_get(const Ecore_Evas *ee);
301
- [ :ecore_evas_focus_get, [ :ecore_evas_p ], :eina_bool ],
302
- # EAPI void ecore_evas_iconified_set(Ecore_Evas *ee, Eina_Bool on);
303
- [ :ecore_evas_iconified_set, [ :ecore_evas_p, :eina_bool ], :void ],
304
- # EAPI Eina_Bool ecore_evas_iconified_get(const Ecore_Evas *ee);
305
- [ :ecore_evas_iconified_get, [ :ecore_evas_p ], :eina_bool ],
306
- # EAPI void ecore_evas_borderless_set(Ecore_Evas *ee, Eina_Bool on);
307
- [ :ecore_evas_borderless_set, [ :ecore_evas_p, :eina_bool ], :void ],
308
- # EAPI Eina_Bool ecore_evas_borderless_get(const Ecore_Evas *ee);
309
- [ :ecore_evas_borderless_get, [ :ecore_evas_p ], :eina_bool ],
323
+ # EAPI void ecore_evas_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y);
324
+ [ :ecore_evas_object_cursor_set, [ :ecore_evas_p, :evas_object_p, :int, :int, :int ], :void ],
310
325
  # EAPI void ecore_evas_override_set(Ecore_Evas *ee, Eina_Bool on);
311
326
  [ :ecore_evas_override_set, [ :ecore_evas_p, :eina_bool ], :void ],
312
327
  # EAPI Eina_Bool ecore_evas_override_get(const Ecore_Evas *ee);
313
328
  [ :ecore_evas_override_get, [ :ecore_evas_p ], :eina_bool ],
314
- # EAPI void ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on);
315
- [ :ecore_evas_maximized_set, [ :ecore_evas_p, :eina_bool ], :void ],
316
- # EAPI Eina_Bool ecore_evas_maximized_get(const Ecore_Evas *ee);
317
- [ :ecore_evas_maximized_get, [ :ecore_evas_p ], :eina_bool ],
318
- # EAPI void ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on);
319
- [ :ecore_evas_fullscreen_set, [ :ecore_evas_p, :eina_bool ], :void ],
320
- # EAPI Eina_Bool ecore_evas_fullscreen_get(const Ecore_Evas *ee);
321
- [ :ecore_evas_fullscreen_get, [ :ecore_evas_p ], :eina_bool ],
322
329
  # EAPI void ecore_evas_avoid_damage_set(Ecore_Evas *ee, Ecore_Evas_Avoid_Damage_Type on);
323
330
  [ :ecore_evas_avoid_damage_set, [ :ecore_evas_p, :ecore_evas_avoid_damage_type ], :void ],
324
331
  # EAPI Ecore_Evas_Avoid_Damage_Type ecore_evas_avoid_damage_get(const Ecore_Evas *ee);
@@ -331,10 +338,6 @@ module Efl
331
338
  [ :ecore_evas_sticky_set, [ :ecore_evas_p, :eina_bool ], :void ],
332
339
  # EAPI Eina_Bool ecore_evas_sticky_get(const Ecore_Evas *ee);
333
340
  [ :ecore_evas_sticky_get, [ :ecore_evas_p ], :eina_bool ],
334
- # EAPI void ecore_evas_ignore_events_set(Ecore_Evas *ee, Eina_Bool ignore);
335
- [ :ecore_evas_ignore_events_set, [ :ecore_evas_p, :eina_bool ], :void ],
336
- # EAPI Eina_Bool ecore_evas_ignore_events_get(const Ecore_Evas *ee);
337
- [ :ecore_evas_ignore_events_get, [ :ecore_evas_p ], :eina_bool ],
338
341
  # EAPI void ecore_evas_manual_render_set(Ecore_Evas *ee, Eina_Bool manual_render);
339
342
  [ :ecore_evas_manual_render_set, [ :ecore_evas_p, :eina_bool ], :void ],
340
343
  # EAPI Eina_Bool ecore_evas_manual_render_get(const Ecore_Evas *ee);
@@ -345,8 +348,8 @@ module Efl
345
348
  [ :ecore_evas_comp_sync_set, [ :ecore_evas_p, :eina_bool ], :void ],
346
349
  # EAPI Eina_Bool ecore_evas_comp_sync_get(const Ecore_Evas *ee);
347
350
  [ :ecore_evas_comp_sync_get, [ :ecore_evas_p ], :eina_bool ],
348
- # EAPI Ecore_Window ecore_evas_window_get(const Ecore_Evas *ee);
349
- [ :ecore_evas_window_get, [ :ecore_evas_p ], :uintptr_t ],
351
+ # EAPI void ecore_evas_screen_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, int *h);
352
+ [ :ecore_evas_screen_geometry_get, [ :ecore_evas_p, :int_p, :int_p, :int_p, :int_p ], :void ],
350
353
  # EAPI Eina_Bool ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags);
351
354
  [ :ecore_evas_object_associate, [ :ecore_evas_p, :evas_object_p, :ecore_evas_object_associate_flags ], :eina_bool ],
352
355
  # EAPI Eina_Bool ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj);
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module EcoreGetopt
9
+ #
10
+ FCT_PREFIX = 'ecore_getopt_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'ecore_getopt_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module EcoreInput
9
+ #
10
+ FCT_PREFIX = 'ecore_event_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'ecore_event_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module Edje
9
+ #
10
+ FCT_PREFIX = 'edje_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'edje_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -50,7 +51,8 @@ module Efl
50
51
  :edje_action_type_reserved00, 9, :edje_action_type_focus_object, 10, :edje_action_type_param_copy, 11, :edje_action_type_param_set, 12, :edje_action_type_last, 13 ]
51
52
  # typedef enum _Edje_Tween_Mode {...} Edje_Tween_Mode;
52
53
  enum :edje_tween_mode, [ :edje_tween_mode_none, 0, :edje_tween_mode_linear, 1, :edje_tween_mode_sinusoidal, 2, :edje_tween_mode_accelerate, 3,
53
- :edje_tween_mode_decelerate, 4, :edje_tween_mode_last, 5 ]
54
+ :edje_tween_mode_decelerate, 4, :edje_tween_mode_accelerate_factor, 5, :edje_tween_mode_decelerate_factor, 6, :edje_tween_mode_sinusoidal_factor, 7,
55
+ :edje_tween_mode_divisor_interp, 8, :edje_tween_mode_bounce, 9, :edje_tween_mode_spring, 10, :edje_tween_mode_last, 11 ]
54
56
  # typedef enum _Edje_Cursor {...} Edje_Cursor;
55
57
  enum :edje_cursor, [ :edje_cursor_main, :edje_cursor_selection_begin, :edje_cursor_selection_end, :edje_cursor_preedit_start, :edje_cursor_preedit_end,
56
58
  :edje_cursor_user, :edje_cursor_user_extra ]
@@ -150,6 +152,10 @@ module Efl
150
152
  [ :edje_scale_set, [ :double ], :void ],
151
153
  # EAPI double edje_scale_get (void);
152
154
  [ :edje_scale_get, [ ], :double ],
155
+ # EAPI void edje_password_show_last_set(Eina_Bool password_show_last);
156
+ [ :edje_password_show_last_set, [ :eina_bool ], :void ],
157
+ # EAPI void edje_password_show_last_timeout_set(double password_show_last_timeout);
158
+ [ :edje_password_show_last_timeout_set, [ :double ], :void ],
153
159
  # EAPI Eina_Bool edje_object_scale_set (Evas_Object *obj, double scale);
154
160
  [ :edje_object_scale_set, [ :evas_object_p, :double ], :eina_bool ],
155
161
  # EAPI double edje_object_scale_get (const Evas_Object *obj);
@@ -281,6 +287,8 @@ module Efl
281
287
  [ :edje_object_part_text_select_all, [ :evas_object_p, :string ], :void ],
282
288
  # EAPI void edje_object_part_text_insert (Evas_Object *obj, const char *part, const char *text);
283
289
  [ :edje_object_part_text_insert, [ :evas_object_p, :string, :string ], :void ],
290
+ # EAPI void edje_object_part_text_append(Evas_Object *obj, const char *part, const char *text);
291
+ [ :edje_object_part_text_append, [ :evas_object_p, :string, :string ], :void ],
284
292
  # EAPI const Eina_List *edje_object_part_text_anchor_list_get (const Evas_Object *obj, const char *part);
285
293
  [ :edje_object_part_text_anchor_list_get, [ :evas_object_p, :string ], :eina_list_p ],
286
294
  # EAPI const Eina_List *edje_object_part_text_anchor_geometry_get (const Evas_Object *obj, const char *part, const char *anchor);
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module Eet
9
+ #
10
+ FCT_PREFIX = 'eet_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'eet_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -161,6 +162,8 @@ module Efl
161
162
  [ :eet_delete, [ :eet_file_p, :string ], :int ],
162
163
  # EAPI Eina_Bool eet_alias(Eet_File *ef, const char *name, const char *destination, int compress);
163
164
  [ :eet_alias, [ :eet_file_p, :string, :string, :int ], :eina_bool ],
165
+ # EAPI const char * eet_alias_get(Eet_File *ef, const char *name);
166
+ [ :eet_alias_get, [ :eet_file_p, :string ], :string ],
164
167
  # EAPI char ** eet_list(Eet_File *ef, const char *glob, int *count_ret);
165
168
  [ :eet_list, [ :eet_file_p, :string, :int_p ], :string_array ],
166
169
  # EAPI int eet_num_entries(Eet_File *ef);
@@ -299,6 +302,12 @@ module Efl
299
302
  [ :eet_node_struct_new, [ :string, :eina_list_p ], :eet_node_p ],
300
303
  # EAPI Eet_Node * eet_node_struct_child_new(const char *parent, Eet_Node *child);
301
304
  [ :eet_node_struct_child_new, [ :string, :eet_node_p ], :eet_node_p ],
305
+ # EAPI Eet_Node * eet_node_children_get(Eet_Node *node);
306
+ [ :eet_node_children_get, [ :eet_node_p ], :eet_node_p ],
307
+ # EAPI Eet_Node * eet_node_next_get(Eet_Node *node);
308
+ [ :eet_node_next_get, [ :eet_node_p ], :eet_node_p ],
309
+ # EAPI Eet_Node * eet_node_parent_get(Eet_Node *node);
310
+ [ :eet_node_parent_get, [ :eet_node_p ], :eet_node_p ],
302
311
  # EAPI void eet_node_list_append(Eet_Node *parent, const char *name, Eet_Node *child);
303
312
  [ :eet_node_list_append, [ :eet_node_p, :string, :eet_node_p ], :void ],
304
313
  # EAPI void eet_node_struct_append(Eet_Node *parent, const char *name, Eet_Node *child);
@@ -307,6 +316,10 @@ module Efl
307
316
  [ :eet_node_hash_add, [ :eet_node_p, :string, :string, :eet_node_p ], :void ],
308
317
  # EAPI void eet_node_dump(Eet_Node *n, int dumplevel, Eet_Dump_Callback dumpfunc, void *dumpdata);
309
318
  [ :eet_node_dump, [ :eet_node_p, :int, :eet_dump_callback, :void_p ], :void ],
319
+ # EAPI int eet_node_type_get(Eet_Node *node);
320
+ [ :eet_node_type_get, [ :eet_node_p ], :int ],
321
+ # EAPI Eet_Node_Data * eet_node_value_get(Eet_Node *node);
322
+ [ :eet_node_value_get, [ :eet_node_p ], :eet_node_data_p ],
310
323
  # EAPI void eet_node_del(Eet_Node *n);
311
324
  [ :eet_node_del, [ :eet_node_p ], :void ],
312
325
  # EAPI void * eet_data_node_encode_cipher(Eet_Node *node, const char *cipher_key, int *size_ret);
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module Eina
9
+ #
10
+ FCT_PREFIX = 'eina_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'eina_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -45,6 +46,10 @@ module Efl
45
46
  [ :eina_threads_init, [ ], :int ],
46
47
  # EAPI int eina_threads_shutdown(void);
47
48
  [ :eina_threads_shutdown, [ ], :int ],
49
+ # EAPI Eina_Bool eina_main_loop_is(void);
50
+ [ :eina_main_loop_is, [ ], :eina_bool ],
51
+ # EAPI void eina_main_loop_define(void);
52
+ [ :eina_main_loop_define, [ ], :void ],
48
53
  ]
49
54
  #
50
55
  attach_fcts fcts
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module EinaHash
9
+ #
10
+ FCT_PREFIX = 'eina_hash_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'eina_hash_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -47,6 +48,8 @@ module Efl
47
48
  fcts = [
48
49
  # EAPI Eina_Hash *eina_hash_new(Eina_Key_Length key_length_cb, Eina_Key_Cmp key_cmp_cb, Eina_Key_Hash key_hash_cb, Eina_Free_Cb data_free_cb, int buckets_power_size);
49
50
  [ :eina_hash_new, [ :eina_key_length, :eina_key_cmp, :eina_key_hash, :eina_free_cb, :int ], :eina_hash_p ],
51
+ # EAPI void eina_hash_free_cb_set(Eina_Hash *hash, Eina_Free_Cb data_free_cb);
52
+ [ :eina_hash_free_cb_set, [ :eina_hash_p, :eina_free_cb ], :void ],
50
53
  # EAPI Eina_Hash *eina_hash_string_djb2_new(Eina_Free_Cb data_free_cb);
51
54
  [ :eina_hash_string_djb2_new, [ :eina_free_cb ], :eina_hash_p ],
52
55
  # EAPI Eina_Hash *eina_hash_string_superfast_new(Eina_Free_Cb data_free_cb);
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module EinaList
9
+ #
10
+ FCT_PREFIX = 'eina_list_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'eina_list_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module EinaLog
9
+ #
10
+ FCT_PREFIX = 'eina_log_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'eina_log_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #
@@ -6,11 +6,12 @@ require 'efl/ffi'
6
6
  module Efl
7
7
  #
8
8
  module Eina
9
+ #
10
+ FCT_PREFIX = 'eina_'
9
11
  #
10
12
  def self.method_missing m, *args, &block
11
- sym = 'eina_'+m.to_s
12
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not Efl::Native.respond_to? sym
13
- self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(*args); yield r if block_given?; r; end"
13
+ sym, args_s = ModuleHelper.find_function m, FCT_PREFIX
14
+ self.module_eval "def self.#{m} *args, █ r=Efl::Native.#{sym}(#{args_s}); yield r if block_given?; r; end"
14
15
  self.send m, *args, &block
15
16
  end
16
17
  #