ffi-efl 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,17 @@
1
+ 2012-XX-YY Jérémy Zurcher <jeremy@asynk.ch>
2
+ * release 0.0.15
3
+ * add ethumb ethumb_client and ethumb_plugin
4
+
5
+ 2012-07-10 Jérémy Zurcher <jeremy@asynk.ch>
6
+ * release 0.0.14
7
+ * add missing Gemfile and Gemfile.lock files
8
+ * mostly elementary API updates
9
+
10
+ 2012-05-19 Jérémy Zurcher <jeremy@asynk.ch>
11
+ * release 0.0.13
12
+ * now uses bundler http://http://gembundler.com
13
+ * mostly elementary API updates
14
+
1
15
  2012-03-08 Jérémy Zurcher <jeremy@asynk.ch>
2
16
  * release 0.0.12
3
17
  * elementary API freeze 2012.03.07
data/Gemfile.lock CHANGED
@@ -1,23 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ffi-efl (0.0.14)
4
+ ffi-efl (0.0.15)
5
5
  ffi
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.1.3)
11
- ffi (1.0.11)
12
- rake (0.9.2.2)
13
- rspec (2.11.0)
14
- rspec-core (~> 2.11.0)
15
- rspec-expectations (~> 2.11.0)
16
- rspec-mocks (~> 2.11.0)
17
- rspec-core (2.11.0)
18
- rspec-expectations (2.11.1)
11
+ ffi (1.2.0)
12
+ rake (10.0.2)
13
+ rspec (2.12.0)
14
+ rspec-core (~> 2.12.0)
15
+ rspec-expectations (~> 2.12.0)
16
+ rspec-mocks (~> 2.12.0)
17
+ rspec-core (2.12.0)
18
+ rspec-expectations (2.12.0)
19
19
  diff-lcs (~> 1.1.3)
20
- rspec-mocks (2.11.1)
20
+ rspec-mocks (2.12.0)
21
21
 
22
22
  PLATFORMS
23
23
  ruby
data/lib/efl.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  module Efl
5
5
  #
6
- VERSION = '0.0.14'
6
+ VERSION = '0.0.15'
7
7
  #
8
8
  module MethodResolver
9
9
  def self.resolve mod, meth, prefix
@@ -42,11 +42,11 @@ require 'efl/elm/elm_hoversel'
42
42
  require 'efl/elm/elm_icon'
43
43
  require 'efl/elm/elm_image'
44
44
  require 'efl/elm/elm_index'
45
+ require 'efl/elm/elm_inwin'
45
46
  require 'efl/elm/elm_label'
46
47
  require 'efl/elm/elm_layout'
47
48
  require 'efl/elm/elm_list'
48
49
  require 'efl/elm/elm_mapbuf'
49
- require 'efl/elm/elm_map'
50
50
  require 'efl/elm/elm_menu'
51
51
  require 'efl/elm/elm_mirroring'
52
52
  require 'efl/elm/elm_multibuttonentry'
@@ -60,7 +60,6 @@ require 'efl/elm/elm_plug'
60
60
  require 'efl/elm/elm_popup'
61
61
  require 'efl/elm/elm_progressbar'
62
62
  require 'efl/elm/elm_radio'
63
- require 'efl/elm/elm_route'
64
63
  require 'efl/elm/elm_scale'
65
64
  require 'efl/elm/elm_scroll'
66
65
  require 'efl/elm/elm_scroller'
@@ -2,17 +2,17 @@
2
2
  # -*- coding: UTF-8 -*-
3
3
  #
4
4
  require 'efl/elm/elm_object'
5
- require 'efl/native/elm/elm_map'
6
5
  #
7
6
  module Efl
8
7
  #
9
8
  module Elm
10
9
  #
11
- class ElmMap < ElmObject
10
+ class ElmInwin < ElmObject
12
11
  #
13
12
  include Helper
14
- constructor :elm_map_add
15
- search_prefixes 'elm_map_'
13
+ constructor :elm_button_add
14
+ search_prefixes 'elm_button_'
15
+ search_prefixes 'elm_win_inwin_'
16
16
  #
17
17
  end
18
18
  #
@@ -15,9 +15,9 @@ module Efl
15
15
  def initialize parent, title, type=:elm_win_basic, &block
16
16
  super Native.method(:elm_win_add), parent, title, type, &block
17
17
  end
18
- # def inwin_add
19
- # ElmInWin.new @ptr
20
- # end
18
+ def inwin_add
19
+ ElmInWin.new @ptr
20
+ end
21
21
  def screen_position_get
22
22
  x = FFI::MemoryPointer.new :int
23
23
  y = FFI::MemoryPointer.new :int
@@ -155,6 +155,12 @@ module Efl
155
155
  [ :ecore_main_loop_begin, [ ], :void ],
156
156
  # EAPI void ecore_main_loop_quit(void);
157
157
  [ :ecore_main_loop_quit, [ ], :void ],
158
+ # EAPI Eina_Bool ecore_fork_reset_callback_add(Ecore_Cb func, const void *data);
159
+ [ :ecore_fork_reset_callback_add, [ :ecore_cb, :pointer ], :bool ],
160
+ # EAPI Eina_Bool ecore_fork_reset_callback_del(Ecore_Cb func, const void *data);
161
+ [ :ecore_fork_reset_callback_del, [ :ecore_cb, :pointer ], :bool ],
162
+ # EAPI void ecore_fork_reset(void);
163
+ [ :ecore_fork_reset, [ ], :void ],
158
164
  # EAPI void ecore_main_loop_thread_safe_call_async(Ecore_Cb callback, void *data);
159
165
  [ :ecore_main_loop_thread_safe_call_async, [ :ecore_cb, :pointer ], :void ],
160
166
  # EAPI void *ecore_main_loop_thread_safe_call_sync(Ecore_Data_Cb callback, void *data);
@@ -239,6 +245,8 @@ module Efl
239
245
  [ :ecore_exe_hup, [ :ecore_exe ], :void ],
240
246
  # EAPI Ecore_Fd_Handler *ecore_main_fd_handler_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func, const void *data, Ecore_Fd_Cb buf_func, const void *buf_data);
241
247
  [ :ecore_main_fd_handler_add, [ :int, :ecore_fd_handler_flags, :ecore_fd_cb, :pointer, :ecore_fd_cb, :pointer ], :ecore_fd_handler ],
248
+ # EAPI Ecore_Fd_Handler *ecore_main_fd_handler_file_add(int fd, Ecore_Fd_Handler_Flags flags, Ecore_Fd_Cb func, const void *data, Ecore_Fd_Cb buf_func, const void *buf_data);
249
+ [ :ecore_main_fd_handler_file_add, [ :int, :ecore_fd_handler_flags, :ecore_fd_cb, :pointer, :ecore_fd_cb, :pointer ], :ecore_fd_handler ],
242
250
  # EAPI void ecore_main_fd_handler_prepare_callback_set(Ecore_Fd_Handler *fd_handler, Ecore_Fd_Prep_Cb func, const void *data);
243
251
  [ :ecore_main_fd_handler_prepare_callback_set, [ :ecore_fd_handler, :ecore_fd_prep_cb, :pointer ], :void ],
244
252
  # EAPI void *ecore_main_fd_handler_del(Ecore_Fd_Handler *fd_handler);
@@ -343,6 +343,8 @@ module Efl
343
343
  [ :eet_connection_new, [ :pointer, :pointer, :pointer ], :eet_connection ],
344
344
  # EAPI int eet_connection_received(Eet_Connection *conn, const void *data, size_t size);
345
345
  [ :eet_connection_received, [ :eet_connection, :pointer, :ulong ], :int ],
346
+ # EAPI Eina_Bool eet_connection_empty(Eet_Connection *conn);
347
+ [ :eet_connection_empty, [ :eet_connection ], :bool ],
346
348
  # EAPI Eina_Bool eet_connection_send(Eet_Connection *conn, Eet_Data_Descriptor *edd, const void *data_in, const char *cipher_key);
347
349
  [ :eet_connection_send, [ :eet_connection, :eet_data_descriptor, :pointer, :string ], :bool ],
348
350
  # EAPI Eina_Bool eet_connection_node_send(Eet_Connection *conn, Eet_Node *node, const char *cipher_key);
@@ -89,6 +89,8 @@ module Efl
89
89
  [ :eina_log_print_cb_stderr, [ :eina_log_domain, :eina_log_level, :string, :string, :int, :string, :pointer, :pointer ], :void ],
90
90
  # EAPI void eina_log_print_cb_file(const Eina_Log_Domain *d, Eina_Log_Level level, const char *file, const char *fnc, int line, const char *fmt, void *data, va_list args);
91
91
  [ :eina_log_print_cb_file, [ :eina_log_domain, :eina_log_level, :string, :string, :int, :string, :pointer, :pointer ], :void ],
92
+ # EAPI void eina_log_console_color_set(FILE *fp, const char *color);
93
+ [ :eina_log_console_color_set, [ :pointer, :string ], :void ],
92
94
  ]
93
95
  #
94
96
  attach_fcts fcts
@@ -46,8 +46,8 @@ module Efl
46
46
  [ :elm_cnp_selection_get, [ :evas_object, :elm_sel_type, :elm_sel_format, :elm_drop_cb, :pointer ], :bool ],
47
47
  # EAPI Eina_Bool elm_object_cnp_selection_clear(Evas_Object *obj, Elm_Sel_Type selection);
48
48
  [ :elm_object_cnp_selection_clear, [ :evas_object, :elm_sel_type ], :bool ],
49
- # EAPI void elm_cnp_selection_loss_callback_set(Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data);
50
- [ :elm_cnp_selection_loss_callback_set, [ :elm_sel_type, :elm_selection_loss_cb, :pointer ], :void ],
49
+ # EAPI void elm_cnp_selection_loss_callback_set(Evas_Object *obj, Elm_Sel_Type selection, Elm_Selection_Loss_Cb func, const void *data);
50
+ [ :elm_cnp_selection_loss_callback_set, [ :evas_object, :elm_sel_type, :elm_selection_loss_cb, :pointer ], :void ],
51
51
  ]
52
52
  #
53
53
  attach_fcts fcts
@@ -38,14 +38,6 @@ module Efl
38
38
  [ :elm_diskselector_display_item_num_set, [ :evas_object, :int ], :void ],
39
39
  # EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj);
40
40
  [ :elm_diskselector_display_item_num_get, [ :evas_object ], :int ],
41
- # EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
42
- [ :elm_diskselector_bounce_set, [ :evas_object, :bool, :bool ], :void ],
43
- # EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
44
- [ :elm_diskselector_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
45
- # EAPI void elm_diskselector_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
46
- [ :elm_diskselector_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
47
- # EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
48
- [ :elm_diskselector_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
49
41
  # EAPI void elm_diskselector_clear(Evas_Object *obj);
50
42
  [ :elm_diskselector_clear, [ :evas_object ], :void ],
51
43
  # EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj);
@@ -40,6 +40,8 @@ module Efl
40
40
  [ :elm_flip_perspective_set, [ :evas_object, :int, :int, :int ], :void ],
41
41
  # EAPI void elm_flip_go(Evas_Object *obj, Elm_Flip_Mode mode);
42
42
  [ :elm_flip_go, [ :evas_object, :elm_flip_mode ], :void ],
43
+ # EAPI void elm_flip_go_to(Evas_Object *obj, Eina_Bool front, Elm_Flip_Mode mode);
44
+ [ :elm_flip_go_to, [ :evas_object, :bool, :elm_flip_mode ], :void ],
43
45
  # EAPI void elm_flip_interaction_set(Evas_Object *obj, Elm_Flip_Interaction mode);
44
46
  [ :elm_flip_interaction_set, [ :evas_object, :elm_flip_interaction ], :void ],
45
47
  # EAPI Elm_Flip_Interaction elm_flip_interaction_get(const Evas_Object *obj);
@@ -54,10 +54,6 @@ module Efl
54
54
  [ :elm_gengrid_horizontal_set, [ :evas_object, :bool ], :void ],
55
55
  # EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj);
56
56
  [ :elm_gengrid_horizontal_get, [ :evas_object ], :bool ],
57
- # EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
58
- [ :elm_gengrid_bounce_set, [ :evas_object, :bool, :bool ], :void ],
59
- # EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
60
- [ :elm_gengrid_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
61
57
  # 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);
62
58
  [ :elm_gengrid_item_append, [ :evas_object, :pointer, :pointer, :evas_smart_cb, :pointer ], :elm_object_item ],
63
59
  # 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);
@@ -80,10 +76,6 @@ module Efl
80
76
  [ :elm_gengrid_first_item_get, [ :evas_object ], :elm_object_item ],
81
77
  # EAPI Elm_Object_Item *elm_gengrid_last_item_get(const Evas_Object *obj);
82
78
  [ :elm_gengrid_last_item_get, [ :evas_object ], :elm_object_item ],
83
- # EAPI void elm_gengrid_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
84
- [ :elm_gengrid_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
85
- # EAPI void elm_gengrid_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
86
- [ :elm_gengrid_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
87
79
  # EAPI Elm_Object_Item *elm_gengrid_item_next_get(const Elm_Object_Item *it);
88
80
  [ :elm_gengrid_item_next_get, [ :elm_object_item ], :elm_object_item ],
89
81
  # EAPI Elm_Object_Item *elm_gengrid_item_prev_get(const Elm_Object_Item *it);
@@ -158,20 +150,8 @@ module Efl
158
150
  [ :elm_gengrid_reorder_mode_set, [ :evas_object, :bool ], :void ],
159
151
  # EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj);
160
152
  [ :elm_gengrid_reorder_mode_get, [ :evas_object ], :bool ],
161
- # EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
162
- [ :elm_gengrid_page_relative_set, [ :evas_object, :double, :double ], :void ],
163
- # EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
164
- [ :elm_gengrid_page_relative_get, [ :evas_object, :pointer, :pointer ], :void ],
165
- # EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
166
- [ :elm_gengrid_page_size_set, [ :evas_object, :int, :int ], :void ],
167
- # EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
168
- [ :elm_gengrid_current_page_get, [ :evas_object, :pointer, :pointer ], :void ],
169
- # EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
170
- [ :elm_gengrid_last_page_get, [ :evas_object, :pointer, :pointer ], :void ],
171
153
  # EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
172
154
  [ :elm_gengrid_page_show, [ :evas_object, :int, :int ], :void ],
173
- # EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
174
- [ :elm_gengrid_page_bring_in, [ :evas_object, :int, :int ], :void ],
175
155
  # EAPI void elm_gengrid_item_pos_get(const Elm_Object_Item *it, unsigned int *x, unsigned int *y);
176
156
  [ :elm_gengrid_item_pos_get, [ :elm_object_item, :pointer, :pointer ], :void ],
177
157
  # EAPI void elm_gengrid_filled_set(Evas_Object *obj, Eina_Bool fill);
@@ -61,10 +61,6 @@ module Efl
61
61
  [ :elm_genlist_mode_set, [ :evas_object, :elm_list_mode ], :void ],
62
62
  # EAPI Elm_List_Mode elm_genlist_mode_get(const Evas_Object *obj);
63
63
  [ :elm_genlist_mode_get, [ :evas_object ], :elm_list_mode ],
64
- # EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
65
- [ :elm_genlist_bounce_set, [ :evas_object, :bool, :bool ], :void ],
66
- # EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
67
- [ :elm_genlist_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
68
64
  # 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);
69
65
  [ :elm_genlist_item_append, [ :evas_object, :pointer, :pointer, :elm_object_item, :elm_genlist_item_type, :evas_smart_cb, :pointer ],
70
66
  :elm_object_item ],
@@ -90,10 +86,6 @@ module Efl
90
86
  [ :elm_genlist_first_item_get, [ :evas_object ], :elm_object_item ],
91
87
  # EAPI Elm_Object_Item *elm_genlist_last_item_get(const Evas_Object *obj);
92
88
  [ :elm_genlist_last_item_get, [ :evas_object ], :elm_object_item ],
93
- # EAPI void elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
94
- [ :elm_genlist_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
95
- # EAPI void elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
96
- [ :elm_genlist_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
97
89
  # EAPI Elm_Object_Item *elm_genlist_item_next_get(const Elm_Object_Item *it);
98
90
  [ :elm_genlist_item_next_get, [ :elm_object_item ], :elm_object_item ],
99
91
  # EAPI Elm_Object_Item *elm_genlist_item_prev_get(const Elm_Object_Item *it);
@@ -0,0 +1,43 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ require 'efl/native/elementary'
6
+ #
7
+ module Efl
8
+ #
9
+ module ElmInwin
10
+ #
11
+ FCT_PREFIX = 'elm_win_inwin_' unless const_defined? :FCT_PREFIX
12
+ #
13
+ def self.method_missing meth, *args, &block
14
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
15
+ self.send sym, *args, &block
16
+ end
17
+ #
18
+ end
19
+ #
20
+ module Native
21
+ #
22
+ ffi_lib 'elementary'
23
+ #
24
+ # FUNCTIONS
25
+ fcts = [
26
+ # EAPI Evas_Object *elm_win_inwin_add(Evas_Object *parent);
27
+ [ :elm_win_inwin_add, [ :evas_object ], :evas_object ],
28
+ # EAPI void elm_win_inwin_activate(Evas_Object *obj);
29
+ [ :elm_win_inwin_activate, [ :evas_object ], :void ],
30
+ # EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content);
31
+ [ :elm_win_inwin_content_set, [ :evas_object, :evas_object ], :void ],
32
+ # EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj);
33
+ [ :elm_win_inwin_content_get, [ :evas_object ], :evas_object ],
34
+ # EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj);
35
+ [ :elm_win_inwin_content_unset, [ :evas_object ], :evas_object ],
36
+ ]
37
+ #
38
+ attach_fcts fcts
39
+ #
40
+ end
41
+ end
42
+ #
43
+ # EOF
@@ -3,6 +3,7 @@
3
3
  #
4
4
  require 'efl/native'
5
5
  require 'efl/native/edje'
6
+ require 'efl/native/elementary'
6
7
  #
7
8
  module Efl
8
9
  #
@@ -27,6 +28,10 @@ module Efl
27
28
  [ :elm_layout_add, [ :evas_object ], :evas_object ],
28
29
  # EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group);
29
30
  [ :elm_layout_file_set, [ :evas_object, :string, :string ], :bool ],
31
+ # EAPI int elm_layout_freeze(Evas_Object *obj);
32
+ [ :elm_layout_freeze, [ :evas_object ], :int ],
33
+ # EAPI int elm_layout_thaw(Evas_Object *obj);
34
+ [ :elm_layout_thaw, [ :evas_object ], :int ],
30
35
  # EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style);
31
36
  [ :elm_layout_theme_set, [ :evas_object, :string, :string, :string ], :bool ],
32
37
  # EAPI void elm_layout_signal_emit(Evas_Object *obj, const char *emission, const char *source);
@@ -24,7 +24,7 @@ module Efl
24
24
  #
25
25
  # FUNCTIONS
26
26
  fcts = [
27
- # EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
27
+ # EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *text);
28
28
  [ :elm_object_part_text_set, [ :evas_object, :string, :string ], :void ],
29
29
  # EAPI const char *elm_object_part_text_get(const Evas_Object *obj, const char *part);
30
30
  [ :elm_object_part_text_get, [ :evas_object, :string ], :string ],
@@ -48,8 +48,12 @@ module Efl
48
48
  [ :elm_scroller_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
49
49
  # EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
50
50
  [ :elm_scroller_page_relative_set, [ :evas_object, :double, :double ], :void ],
51
+ # EAPI void elm_scroller_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
52
+ [ :elm_scroller_page_relative_get, [ :evas_object, :pointer, :pointer ], :void ],
51
53
  # EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
52
54
  [ :elm_scroller_page_size_set, [ :evas_object, :int, :int ], :void ],
55
+ # EAPI void elm_scroller_page_size_get(const Evas_Object *obj, Evas_Coord *h_pagesize, Evas_Coord *v_pagesize);
56
+ [ :elm_scroller_page_size_get, [ :evas_object, :pointer, :pointer ], :void ],
53
57
  # EAPI void elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
54
58
  [ :elm_scroller_current_page_get, [ :evas_object, :pointer, :pointer ], :void ],
55
59
  # EAPI void elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
@@ -8,7 +8,7 @@ module Efl
8
8
  #
9
9
  module ElmTooltip
10
10
  #
11
- FCT_PREFIX = 'elm_' unless const_defined? :FCT_PREFIX
11
+ FCT_PREFIX = 'elm_object_tooltip_' unless const_defined? :FCT_PREFIX
12
12
  #
13
13
  def self.method_missing meth, *args, &block
14
14
  sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
@@ -50,7 +50,7 @@ module Efl
50
50
  callback :elm_web_dialog_alert_cb, [ :pointer, :evas_object, :string ], :evas_object
51
51
  # typedef Evas_Object *(*Elm_Web_Dialog_Confirm) (void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
52
52
  callback :elm_web_dialog_confirm_cb, [ :pointer, :evas_object, :string, :pointer ], :evas_object
53
- # typedef Evas_Object *(*Elm_Web_Dialog_Prompt) (void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
53
+ # typedef Evas_Object *(*Elm_Web_Dialog_Prompt) (void *data, Evas_Object *obj, const char *message, const char *def_value, const char **value, Eina_Bool *ret);
54
54
  callback :elm_web_dialog_prompt_cb, [ :pointer, :evas_object, :string, :string, :pointer, :pointer ], :evas_object
55
55
  # typedef Evas_Object *(*Elm_Web_Dialog_File_Selector) (void *data, Evas_Object *obj, Eina_Bool allows_multiple, Eina_List *accept_types, Eina_List **selected, Eina_Bool *ret);
56
56
  callback :elm_web_dialog_file_selector_cb, [ :pointer, :evas_object, :bool, :eina_list, :eina_list, :pointer ], :evas_object
@@ -93,7 +93,7 @@ module Efl
93
93
  [ :elm_web_bg_color_set, [ :evas_object, :int, :int, :int, :int ], :void ],
94
94
  # EAPI void elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
95
95
  [ :elm_web_bg_color_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
96
- # EAPI char *elm_web_selection_get(const Evas_Object *obj);
96
+ # EAPI const char *elm_web_selection_get(const Evas_Object *obj);
97
97
  [ :elm_web_selection_get, [ :evas_object ], :string ],
98
98
  # EAPI void elm_web_popup_selected_set(Evas_Object *obj, int index);
99
99
  [ :elm_web_popup_selected_set, [ :evas_object, :int ], :void ],
@@ -2,6 +2,7 @@
2
2
  # -*- coding: UTF-8 -*-
3
3
  #
4
4
  require 'efl/native'
5
+ require 'efl/native/ecore_evas'
5
6
  require 'efl/native/elementary'
6
7
  #
7
8
  module Efl
@@ -40,6 +41,10 @@ module Efl
40
41
  enum :elm_illume_command, [ :elm_illume_command_focus_back, :elm_illume_command_focus_forward, :elm_illume_command_focus_home,
41
42
  :elm_illume_command_close ]
42
43
  #
44
+ # TYPEDEFS
45
+ # typedef struct _Elm_Win_Trap Elm_Win_Trap;
46
+ typedef :pointer, :elm_win_trap
47
+ #
43
48
  # FUNCTIONS
44
49
  fcts = [
45
50
  # EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
@@ -138,6 +143,14 @@ module Efl
138
143
  [ :elm_win_layer_set, [ :evas_object, :int ], :void ],
139
144
  # EAPI int elm_win_layer_get(const Evas_Object *obj);
140
145
  [ :elm_win_layer_get, [ :evas_object ], :int ],
146
+ # EAPI void elm_win_norender_push(Evas_Object *obj);
147
+ [ :elm_win_norender_push, [ :evas_object ], :void ],
148
+ # EAPI void elm_win_norender_pop(Evas_Object *obj);
149
+ [ :elm_win_norender_pop, [ :evas_object ], :void ],
150
+ # EAPI int elm_win_norender_get(Evas_Object *obj);
151
+ [ :elm_win_norender_get, [ :evas_object ], :int ],
152
+ # EAPI void elm_win_render(Evas_Object *obj);
153
+ [ :elm_win_render, [ :evas_object ], :void ],
141
154
  # EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation);
142
155
  [ :elm_win_rotation_set, [ :evas_object, :int ], :void ],
143
156
  # EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation);
@@ -216,6 +229,8 @@ module Efl
216
229
  [ :elm_win_xwindow_get, [ :evas_object ], :uint ],
217
230
  # EAPI Ecore_Wl_Window *elm_win_wl_window_get(const Evas_Object *obj);
218
231
  [ :elm_win_wl_window_get, [ :evas_object ], :ecore_wl_window ],
232
+ # EAPI Eina_Bool elm_win_trap_set(const Elm_Win_Trap *trap);
233
+ [ :elm_win_trap_set, [ :elm_win_trap ], :bool ],
219
234
  ]
220
235
  #
221
236
  attach_fcts fcts
@@ -0,0 +1,160 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ #
6
+ module Efl
7
+ #
8
+ module Ethumb
9
+ #
10
+ FCT_PREFIX = 'ethumb_' unless const_defined? :FCT_PREFIX
11
+ #
12
+ def self.method_missing meth, *args, &block
13
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
14
+ self.send sym, *args, &block
15
+ end
16
+ #
17
+ end
18
+ #
19
+ module Native
20
+ #
21
+ ffi_lib 'ethumb'
22
+ #
23
+ # ENUMS
24
+ # typedef enum _Ethumb_Thumb_FDO_Size {...} Ethumb_Thumb_FDO_Size;
25
+ enum :ethumb_thumb_fdo_size, [ :ethumb_thumb_normal, :ethumb_thumb_large ]
26
+ # typedef enum _Ethumb_Thumb_Format {...} Ethumb_Thumb_Format;
27
+ enum :ethumb_thumb_format, [ :ethumb_thumb_fdo, :ethumb_thumb_jpeg, :ethumb_thumb_eet ]
28
+ # typedef enum _Ethumb_Thumb_Aspect {...} Ethumb_Thumb_Aspect;
29
+ enum :ethumb_thumb_aspect, [ :ethumb_thumb_keep_aspect, :ethumb_thumb_ignore_aspect, :ethumb_thumb_crop ]
30
+ # typedef enum _Ethumb_Thumb_Orientation {...} Ethumb_Thumb_Orientation;
31
+ enum :ethumb_thumb_orientation, [ :ethumb_thumb_orient_none, :ethumb_thumb_rotate_90_cw, :ethumb_thumb_rotate_180,
32
+ :ethumb_thumb_rotate_90_ccw, :ethumb_thumb_flip_horizontal, :ethumb_thumb_flip_vertical, :ethumb_thumb_flip_transpose, :ethumb_thumb_flip_transverse,
33
+ :ethumb_thumb_orient_original ]
34
+ #
35
+ # TYPEDEFS
36
+ # typedef struct _Ethumb_Version Ethumb_Version;
37
+ typedef :pointer, :ethumb_version
38
+ # typedef struct _Ethumb Ethumb;
39
+ typedef :pointer, :ethumb
40
+ #
41
+ # CALLBACKS
42
+ # typedef void (*Ethumb_Generate_Cb) (void *data, Ethumb *e, Eina_Bool success);
43
+ callback :ethumb_generate_cb, [ :pointer, :ethumb, :bool ], :void
44
+ #
45
+ # VARIABLES
46
+ # EAPI extern Ethumb_Version *ethumb_version;
47
+ attach_variable :ethumb_version, :ethumb_version
48
+ #
49
+ # FUNCTIONS
50
+ fcts = [
51
+ # EAPI int ethumb_init(void);
52
+ [ :ethumb_init, [ ], :int ],
53
+ # EAPI int ethumb_shutdown(void);
54
+ [ :ethumb_shutdown, [ ], :int ],
55
+ # EAPI Ethumb * ethumb_new(void);
56
+ [ :ethumb_new, [ ], :ethumb ],
57
+ # EAPI void ethumb_free(Ethumb *e);
58
+ [ :ethumb_free, [ :ethumb ], :void ],
59
+ # EAPI Eina_Bool ethumb_frame_set(Ethumb *e, const char *theme_file, const char *group, const char *swallow);
60
+ [ :ethumb_frame_set, [ :ethumb, :string, :string, :string ], :bool ],
61
+ # EAPI void ethumb_frame_get(const Ethumb *e, const char **theme_file, const char **group, const char **swallow);
62
+ [ :ethumb_frame_get, [ :ethumb, :pointer, :pointer, :pointer ], :void ],
63
+ # EAPI void ethumb_thumb_dir_path_set(Ethumb *e, const char *path);
64
+ [ :ethumb_thumb_dir_path_set, [ :ethumb, :string ], :void ],
65
+ # EAPI const char *ethumb_thumb_dir_path_get(const Ethumb *e);
66
+ [ :ethumb_thumb_dir_path_get, [ :ethumb ], :string ],
67
+ # EAPI void ethumb_thumb_category_set(Ethumb *e, const char *category);
68
+ [ :ethumb_thumb_category_set, [ :ethumb, :string ], :void ],
69
+ # EAPI const char *ethumb_thumb_category_get(const Ethumb *e);
70
+ [ :ethumb_thumb_category_get, [ :ethumb ], :string ],
71
+ # EAPI void ethumb_thumb_path_set(Ethumb *e, const char *path, const char *key);
72
+ [ :ethumb_thumb_path_set, [ :ethumb, :string, :string ], :void ],
73
+ # EAPI void ethumb_thumb_path_get(Ethumb *e, const char **path, const char **key);
74
+ [ :ethumb_thumb_path_get, [ :ethumb, :pointer, :pointer ], :void ],
75
+ # EAPI void ethumb_thumb_hash(Ethumb *e);
76
+ [ :ethumb_thumb_hash, [ :ethumb ], :void ],
77
+ # EAPI void ethumb_thumb_hash_copy(Ethumb *dst, const Ethumb *src);
78
+ [ :ethumb_thumb_hash_copy, [ :ethumb, :ethumb ], :void ],
79
+ # EAPI void ethumb_thumb_fdo_set(Ethumb *e, Ethumb_Thumb_FDO_Size s);
80
+ [ :ethumb_thumb_fdo_set, [ :ethumb, :ethumb_thumb_fdo_size ], :void ],
81
+ # EAPI void ethumb_thumb_size_set(Ethumb *e, int tw, int th);
82
+ [ :ethumb_thumb_size_set, [ :ethumb, :int, :int ], :void ],
83
+ # EAPI void ethumb_thumb_size_get(const Ethumb *e, int *tw, int *th);
84
+ [ :ethumb_thumb_size_get, [ :ethumb, :pointer, :pointer ], :void ],
85
+ # EAPI void ethumb_thumb_format_set(Ethumb *e, Ethumb_Thumb_Format f);
86
+ [ :ethumb_thumb_format_set, [ :ethumb, :ethumb_thumb_format ], :void ],
87
+ # EAPI Ethumb_Thumb_Format ethumb_thumb_format_get(const Ethumb *e);
88
+ [ :ethumb_thumb_format_get, [ :ethumb ], :ethumb_thumb_format ],
89
+ # EAPI void ethumb_thumb_aspect_set(Ethumb *e, Ethumb_Thumb_Aspect a);
90
+ [ :ethumb_thumb_aspect_set, [ :ethumb, :ethumb_thumb_aspect ], :void ],
91
+ # EAPI Ethumb_Thumb_Aspect ethumb_thumb_aspect_get(const Ethumb *e);
92
+ [ :ethumb_thumb_aspect_get, [ :ethumb ], :ethumb_thumb_aspect ],
93
+ # EAPI void ethumb_thumb_orientation_set(Ethumb *e, Ethumb_Thumb_Orientation o);
94
+ [ :ethumb_thumb_orientation_set, [ :ethumb, :ethumb_thumb_orientation ], :void ],
95
+ # EAPI Ethumb_Thumb_Orientation ethumb_thumb_orientation_get(const Ethumb *e);
96
+ [ :ethumb_thumb_orientation_get, [ :ethumb ], :ethumb_thumb_orientation ],
97
+ # EAPI void ethumb_thumb_crop_align_set(Ethumb *e, float x, float y);
98
+ [ :ethumb_thumb_crop_align_set, [ :ethumb, :float, :float ], :void ],
99
+ # EAPI void ethumb_thumb_crop_align_get(const Ethumb *e, float *x, float *y);
100
+ [ :ethumb_thumb_crop_align_get, [ :ethumb, :pointer, :pointer ], :void ],
101
+ # EAPI void ethumb_thumb_quality_set(Ethumb *e, int quality);
102
+ [ :ethumb_thumb_quality_set, [ :ethumb, :int ], :void ],
103
+ # EAPI int ethumb_thumb_quality_get(const Ethumb *e);
104
+ [ :ethumb_thumb_quality_get, [ :ethumb ], :int ],
105
+ # EAPI void ethumb_thumb_compress_set(Ethumb *e, int compress);
106
+ [ :ethumb_thumb_compress_set, [ :ethumb, :int ], :void ],
107
+ # EAPI int ethumb_thumb_compress_get(const Ethumb *e);
108
+ [ :ethumb_thumb_compress_get, [ :ethumb ], :int ],
109
+ # EAPI void ethumb_video_start_set(Ethumb *e, float start);
110
+ [ :ethumb_video_start_set, [ :ethumb, :float ], :void ],
111
+ # EAPI float ethumb_video_start_get(const Ethumb *e);
112
+ [ :ethumb_video_start_get, [ :ethumb ], :float ],
113
+ # EAPI void ethumb_video_time_set(Ethumb *e, float time);
114
+ [ :ethumb_video_time_set, [ :ethumb, :float ], :void ],
115
+ # EAPI float ethumb_video_time_get(const Ethumb *e);
116
+ [ :ethumb_video_time_get, [ :ethumb ], :float ],
117
+ # EAPI void ethumb_video_interval_set(Ethumb *e, float interval);
118
+ [ :ethumb_video_interval_set, [ :ethumb, :float ], :void ],
119
+ # EAPI float ethumb_video_interval_get(const Ethumb *e);
120
+ [ :ethumb_video_interval_get, [ :ethumb ], :float ],
121
+ # EAPI void ethumb_video_ntimes_set(Ethumb *e, unsigned int ntimes);
122
+ [ :ethumb_video_ntimes_set, [ :ethumb, :uint ], :void ],
123
+ # EAPI unsigned int ethumb_video_ntimes_get(const Ethumb *e);
124
+ [ :ethumb_video_ntimes_get, [ :ethumb ], :uint ],
125
+ # EAPI void ethumb_video_fps_set(Ethumb *e, unsigned int fps);
126
+ [ :ethumb_video_fps_set, [ :ethumb, :uint ], :void ],
127
+ # EAPI unsigned int ethumb_video_fps_get(const Ethumb *e);
128
+ [ :ethumb_video_fps_get, [ :ethumb ], :uint ],
129
+ # EAPI void ethumb_document_page_set(Ethumb *e, unsigned int page);
130
+ [ :ethumb_document_page_set, [ :ethumb, :uint ], :void ],
131
+ # EAPI unsigned int ethumb_document_page_get(const Ethumb *e);
132
+ [ :ethumb_document_page_get, [ :ethumb ], :uint ],
133
+ # EAPI Eina_Bool ethumb_file_set(Ethumb *e, const char *path, const char *key);
134
+ [ :ethumb_file_set, [ :ethumb, :string, :string ], :bool ],
135
+ # EAPI void ethumb_file_get(const Ethumb *e, const char **path, const char **key);
136
+ [ :ethumb_file_get, [ :ethumb, :pointer, :pointer ], :void ],
137
+ # EAPI void ethumb_file_free(Ethumb *e);
138
+ [ :ethumb_file_free, [ :ethumb ], :void ],
139
+ # EAPI Eina_Bool ethumb_generate(Ethumb *e, Ethumb_Generate_Cb finished_cb, const void *data, Eina_Free_Cb free_data);
140
+ [ :ethumb_generate, [ :ethumb, :ethumb_generate_cb, :pointer, :eina_free_cb ], :bool ],
141
+ # EAPI Eina_Bool ethumb_exists(Ethumb *e);
142
+ [ :ethumb_exists, [ :ethumb ], :bool ],
143
+ # EAPI Ethumb *ethumb_dup(const Ethumb *e);
144
+ [ :ethumb_dup, [ :ethumb ], :ethumb ],
145
+ # EAPI Eina_Bool ethumb_cmp(const Ethumb *e1, const Ethumb *e2);
146
+ [ :ethumb_cmp, [ :ethumb, :ethumb ], :bool ],
147
+ # EAPI int ethumb_hash(const void *key, int key_length);
148
+ [ :ethumb_hash, [ :pointer, :int ], :int ],
149
+ # EAPI int ethumb_key_cmp(const void *key1, int key1_length, const void *key2, int key2_length);
150
+ [ :ethumb_key_cmp, [ :pointer, :int, :pointer, :int ], :int ],
151
+ # EAPI unsigned int ethumb_length(const void *key);
152
+ [ :ethumb_length, [ :pointer ], :uint ],
153
+ ]
154
+ #
155
+ attach_fcts fcts
156
+ #
157
+ end
158
+ end
159
+ #
160
+ # EOF