ffi-efl 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (209) hide show
  1. data/Changelog +10 -2
  2. data/README.rdoc +41 -30
  3. data/lib/efl.rb +88 -14
  4. data/lib/efl/ecore.rb +1 -0
  5. data/lib/efl/ecore_evas.rb +4 -2
  6. data/lib/efl/ecore_getopt.rb +12 -11
  7. data/lib/efl/ecore_input.rb +1 -0
  8. data/lib/efl/eet.rb +1 -0
  9. data/lib/efl/eina.rb +1 -0
  10. data/lib/efl/eina_hash.rb +1 -0
  11. data/lib/efl/eina_list.rb +1 -0
  12. data/lib/efl/eina_log.rb +4 -0
  13. data/lib/efl/elementary.rb +0 -662
  14. data/lib/efl/elementary_all.rb +82 -0
  15. data/lib/efl/elm/elm_actionslider.rb +22 -0
  16. data/lib/efl/elm/elm_anchorblock.rb +22 -0
  17. data/lib/efl/elm/elm_anchorview.rb +22 -0
  18. data/lib/efl/elm/elm_bg.rb +37 -0
  19. data/lib/efl/elm/elm_box.rb +42 -0
  20. data/lib/efl/elm/elm_bubble.rb +22 -0
  21. data/lib/efl/elm/elm_button.rb +22 -0
  22. data/lib/efl/elm/elm_calendar.rb +22 -0
  23. data/lib/efl/elm/elm_check.rb +22 -0
  24. data/lib/efl/elm/elm_clock.rb +22 -0
  25. data/lib/efl/elm/elm_cnp.rb +30 -0
  26. data/lib/efl/elm/elm_colorselector.rb +22 -0
  27. data/lib/efl/elm/elm_conform.rb +26 -0
  28. data/lib/efl/elm/elm_ctxpopup.rb +27 -0
  29. data/lib/efl/elm/elm_cursor.rb +20 -0
  30. data/lib/efl/elm/elm_debug.rb +25 -0
  31. data/lib/efl/elm/elm_diskselector.rb +51 -0
  32. data/lib/efl/elm/elm_entry.rb +22 -0
  33. data/lib/efl/elm/elm_factory.rb +22 -0
  34. data/lib/efl/elm/elm_fileselector.rb +22 -0
  35. data/lib/efl/elm/elm_fileselector_button.rb +22 -0
  36. data/lib/efl/elm/elm_fileselector_entry.rb +22 -0
  37. data/lib/efl/elm/elm_flip.rb +22 -0
  38. data/lib/efl/elm/elm_flipselector.rb +56 -0
  39. data/lib/efl/elm/elm_focus.rb +74 -0
  40. data/lib/efl/elm/elm_frame.rb +22 -0
  41. data/lib/efl/elm/elm_gengrid.rb +68 -0
  42. data/lib/efl/elm/elm_genlist.rb +79 -0
  43. data/lib/efl/elm/elm_gesture_layer.rb +22 -0
  44. data/lib/efl/elm/elm_glview.rb +22 -0
  45. data/lib/efl/elm/elm_grid.rb +22 -0
  46. data/lib/efl/elm/elm_hover.rb +22 -0
  47. data/lib/efl/elm/elm_hoversel.rb +27 -0
  48. data/lib/efl/elm/elm_icon.rb +26 -0
  49. data/lib/efl/elm/elm_image.rb +22 -0
  50. data/lib/efl/elm/elm_index.rb +31 -0
  51. data/lib/efl/elm/elm_label.rb +22 -0
  52. data/lib/efl/elm/elm_layout.rb +26 -0
  53. data/lib/efl/elm/elm_list.rb +55 -0
  54. data/lib/efl/elm/elm_map.rb +22 -0
  55. data/lib/efl/elm/elm_mapbuf.rb +22 -0
  56. data/lib/efl/elm/elm_menu.rb +55 -0
  57. data/lib/efl/elm/elm_mirroring.rb +36 -0
  58. data/lib/efl/elm/elm_multibuttonentry.rb +58 -0
  59. data/lib/efl/elm/elm_naviframe.rb +42 -0
  60. data/lib/efl/elm/elm_notify.rb +22 -0
  61. data/lib/efl/elm/elm_object.rb +68 -0
  62. data/lib/efl/elm/elm_object_item.rb +20 -0
  63. data/lib/efl/elm/elm_panel.rb +22 -0
  64. data/lib/efl/elm/elm_panes.rb +22 -0
  65. data/lib/efl/elm/elm_photo.rb +22 -0
  66. data/lib/efl/elm/elm_photocam.rb +22 -0
  67. data/lib/efl/elm/elm_plug.rb +22 -0
  68. data/lib/efl/elm/elm_progressbar.rb +22 -0
  69. data/lib/efl/elm/elm_radio.rb +22 -0
  70. data/lib/efl/elm/elm_route.rb +22 -0
  71. data/lib/efl/elm/elm_scale.rb +28 -0
  72. data/lib/efl/elm/elm_scroll.rb +50 -0
  73. data/lib/efl/elm/elm_scroller.rb +22 -0
  74. data/lib/efl/elm/elm_segment_control.rb +39 -0
  75. data/lib/efl/elm/elm_separator.rb +22 -0
  76. data/lib/efl/elm/elm_slider.rb +22 -0
  77. data/lib/efl/elm/elm_slideshow.rb +41 -0
  78. data/lib/efl/elm/elm_spinner.rb +22 -0
  79. data/lib/efl/elm/elm_store.rb +43 -0
  80. data/lib/efl/elm/elm_table.rb +22 -0
  81. data/lib/efl/elm/elm_theme.rb +42 -0
  82. data/lib/efl/elm/elm_thumb.rb +22 -0
  83. data/lib/efl/elm/elm_toolbar.rb +63 -0
  84. data/lib/efl/elm/elm_tooltip.rb +20 -0
  85. data/lib/efl/elm/elm_transit.rb +78 -0
  86. data/lib/efl/elm/elm_video.rb +30 -0
  87. data/lib/efl/elm/elm_web.rb +22 -0
  88. data/lib/efl/elm/elm_win.rb +33 -0
  89. data/lib/efl/evas.rb +8 -7
  90. data/lib/efl/native.rb +45 -11
  91. data/lib/efl/native/ecore.rb +188 -210
  92. data/lib/efl/native/ecore_evas.rb +260 -207
  93. data/lib/efl/native/ecore_getopt.rb +17 -24
  94. data/lib/efl/native/ecore_input.rb +7 -11
  95. data/lib/efl/native/edje.rb +250 -202
  96. data/lib/efl/native/eet.rb +154 -155
  97. data/lib/efl/native/eina.rb +7 -13
  98. data/lib/efl/native/eina_hash.rb +41 -47
  99. data/lib/efl/native/eina_list.rb +39 -48
  100. data/lib/efl/native/eina_log.rb +21 -23
  101. data/lib/efl/native/eina_types.rb +8 -14
  102. data/lib/efl/native/eina_xattr.rb +21 -18
  103. data/lib/efl/native/elementary.rb +9 -3381
  104. data/lib/efl/native/elm/elm_actionslider.rb +54 -0
  105. data/lib/efl/native/elm/elm_anchorblock.rb +55 -0
  106. data/lib/efl/native/elm/elm_anchorview.rb +59 -0
  107. data/lib/efl/native/elm/elm_app.rb +53 -0
  108. data/lib/efl/native/elm/elm_bg.rb +53 -0
  109. data/lib/efl/native/elm/elm_box.rb +81 -0
  110. data/lib/efl/native/elm/elm_bubble.rb +44 -0
  111. data/lib/efl/native/elm/elm_button.rb +47 -0
  112. data/lib/efl/native/elm/elm_cache.rb +59 -0
  113. data/lib/efl/native/elm/elm_calendar.rb +76 -0
  114. data/lib/efl/native/elm/elm_check.rb +41 -0
  115. data/lib/efl/native/elm/elm_clock.rb +64 -0
  116. data/lib/efl/native/elm/elm_cnp.rb +54 -0
  117. data/lib/efl/native/elm/elm_colorselector.rb +39 -0
  118. data/lib/efl/native/elm/elm_config.rb +103 -0
  119. data/lib/efl/native/elm/elm_conform.rb +37 -0
  120. data/lib/efl/native/elm/elm_ctxpopup.rb +59 -0
  121. data/lib/efl/native/elm/elm_cursor.rb +51 -0
  122. data/lib/efl/native/elm/elm_debug.rb +37 -0
  123. data/lib/efl/native/elm/elm_diskselector.rb +76 -0
  124. data/lib/efl/native/elm/elm_engine.rb +41 -0
  125. data/lib/efl/native/elm/elm_entry.rb +242 -0
  126. data/lib/efl/native/elm/elm_factory.rb +41 -0
  127. data/lib/efl/native/elm/elm_fileselector.rb +67 -0
  128. data/lib/efl/native/elm/elm_fileselector_button.rb +63 -0
  129. data/lib/efl/native/elm/elm_fileselector_entry.rb +67 -0
  130. data/lib/efl/native/elm/elm_finger.rb +39 -0
  131. data/lib/efl/native/elm/elm_flip.rb +62 -0
  132. data/lib/efl/native/elm/elm_flipselector.rb +63 -0
  133. data/lib/efl/native/elm/elm_focus.rb +65 -0
  134. data/lib/efl/native/elm/elm_fonts.rb +66 -0
  135. data/lib/efl/native/elm/elm_frame.rb +45 -0
  136. data/lib/efl/native/elm/elm_general.rb +105 -0
  137. data/lib/efl/native/elm/elm_gengrid.rb +184 -0
  138. data/lib/efl/native/elm/elm_genlist.rb +240 -0
  139. data/lib/efl/native/elm/elm_gesture_layer.rb +76 -0
  140. data/lib/efl/native/elm/elm_glview.rb +70 -0
  141. data/lib/efl/native/elm/elm_grid.rb +51 -0
  142. data/lib/efl/native/elm/elm_hover.rb +51 -0
  143. data/lib/efl/native/elm/elm_hoversel.rb +60 -0
  144. data/lib/efl/native/elm/elm_icon.rb +97 -0
  145. data/lib/efl/native/elm/elm_image.rb +80 -0
  146. data/lib/efl/native/elm/elm_index.rb +63 -0
  147. data/lib/efl/native/elm/elm_label.rb +60 -0
  148. data/lib/efl/native/elm/elm_layout.rb +77 -0
  149. data/lib/efl/native/elm/elm_list.rb +105 -0
  150. data/lib/efl/native/elm/elm_map.rb +225 -0
  151. data/lib/efl/native/elm/elm_mapbuf.rb +47 -0
  152. data/lib/efl/native/elm/elm_menu.rb +77 -0
  153. data/lib/efl/native/elm/elm_mirroring.rb +45 -0
  154. data/lib/efl/native/elm/elm_multibuttonentry.rb +81 -0
  155. data/lib/efl/native/elm/elm_naviframe.rb +79 -0
  156. data/lib/efl/native/elm/elm_need.rb +41 -0
  157. data/lib/efl/native/elm/elm_notify.rb +57 -0
  158. data/lib/efl/native/elm/elm_object.rb +74 -0
  159. data/lib/efl/native/elm/elm_object_item.rb +93 -0
  160. data/lib/efl/native/elm/elm_panel.rb +55 -0
  161. data/lib/efl/native/elm/elm_panes.rb +51 -0
  162. data/lib/efl/native/elm/elm_password.rb +41 -0
  163. data/lib/efl/native/elm/elm_photo.rb +49 -0
  164. data/lib/efl/native/elm/elm_photocam.rb +74 -0
  165. data/lib/efl/native/elm/elm_plug.rb +39 -0
  166. data/lib/efl/native/elm/elm_progressbar.rb +61 -0
  167. data/lib/efl/native/elm/elm_radio.rb +49 -0
  168. data/lib/efl/native/elm/elm_route.rb +42 -0
  169. data/lib/efl/native/elm/elm_scale.rb +41 -0
  170. data/lib/efl/native/elm/elm_scroll.rb +49 -0
  171. data/lib/efl/native/elm/elm_scroller.rb +80 -0
  172. data/lib/efl/native/elm/elm_segment_control.rb +57 -0
  173. data/lib/efl/native/elm/elm_separator.rb +39 -0
  174. data/lib/efl/native/elm/elm_slider.rb +71 -0
  175. data/lib/efl/native/elm/elm_slideshow.rb +97 -0
  176. data/lib/efl/native/elm/elm_spinner.rb +73 -0
  177. data/lib/efl/native/elm/elm_store.rb +110 -0
  178. data/lib/efl/native/elm/elm_table.rb +53 -0
  179. data/lib/efl/native/elm/elm_theme.rb +81 -0
  180. data/lib/efl/native/elm/elm_thumb.rb +60 -0
  181. data/lib/efl/native/elm/elm_toolbar.rb +145 -0
  182. data/lib/efl/native/elm/elm_tooltip.rb +59 -0
  183. data/lib/efl/native/elm/elm_transit.rb +135 -0
  184. data/lib/efl/native/elm/elm_video.rb +71 -0
  185. data/lib/efl/native/elm/elm_web.rb +165 -0
  186. data/lib/efl/native/elm/elm_win.rb +221 -0
  187. data/lib/efl/native/emap.rb +28 -34
  188. data/lib/efl/native/evas.rb +640 -618
  189. data/spec/ecore_evas_spec.rb +28 -22
  190. data/spec/ecore_spec.rb +1 -0
  191. data/spec/edje_spec.rb +8 -1
  192. data/spec/eina_hash_spec.rb +0 -1
  193. data/spec/eina_list_spec.rb +0 -1
  194. data/spec/eina_log_spec.rb +10 -8
  195. data/spec/elm_spec.rb +4 -114
  196. data/spec/evas_spec.rb +13 -244
  197. data/spec/helper.rb +16 -15
  198. data/tasks/constants.rb +9 -9
  199. data/test/test_elm_win-native.rb +6 -4
  200. data/test/test_elm_win.rb +20 -19
  201. data/test/test_evas.rb +12 -12
  202. metadata +209 -64
  203. data/lib/efl/ffi.rb +0 -172
  204. data/test/test_elementary.rb +0 -271
  205. data/test/tests/test_actionslider.rb +0 -132
  206. data/test/tests/test_anchorbock.rb +0 -73
  207. data/test/tests/test_bg.rb +0 -151
  208. data/test/tests/test_box.rb +0 -147
  209. data/test/tests/test_buttons.rb +0 -114
@@ -0,0 +1,76 @@
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 ElmGestureLayer
10
+ #
11
+ FCT_PREFIX = 'elm_gesture_layer_' 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-ver-pre-svn-09.so.0'
23
+ #
24
+ # ENUMS
25
+ # typedef enum {...} Elm_Gesture_Type;
26
+ enum :elm_gesture_type, [ :elm_gesture_first, 0, :elm_gesture_n_taps, 1, :elm_gesture_n_long_taps, 2, :elm_gesture_n_double_taps, 3,
27
+ :elm_gesture_n_triple_taps, 4, :elm_gesture_momentum, 5, :elm_gesture_n_lines, 6, :elm_gesture_n_flicks, 7, :elm_gesture_zoom, 8, :elm_gesture_rotate,
28
+ 9, :elm_gesture_last, 10 ]
29
+ # typedef enum {...} Elm_Gesture_State;
30
+ enum :elm_gesture_state, [ :elm_gesture_state_undefined, -1, :elm_gesture_state_start, 0, :elm_gesture_state_move, 1, :elm_gesture_state_end,
31
+ 2, :elm_gesture_state_abort, 3 ]
32
+ #
33
+ # TYPEDEFS
34
+ # typedef struct _Elm_Gesture_Taps_Info Elm_Gesture_Taps_Info;
35
+ typedef :pointer, :elm_gesture_taps_info
36
+ # typedef struct _Elm_Gesture_Momentum_Info Elm_Gesture_Momentum_Info;
37
+ typedef :pointer, :elm_gesture_momentum_info
38
+ # typedef struct _Elm_Gesture_Line_Info Elm_Gesture_Line_Info;
39
+ typedef :pointer, :elm_gesture_line_info
40
+ # typedef struct _Elm_Gesture_Zoom_Info Elm_Gesture_Zoom_Info;
41
+ typedef :pointer, :elm_gesture_zoom_info
42
+ # typedef struct _Elm_Gesture_Rotate_Info Elm_Gesture_Rotate_Info;
43
+ typedef :pointer, :elm_gesture_rotate_info
44
+ #
45
+ # CALLBACKS
46
+ # typedef Evas_Event_Flags (*Elm_Gesture_Event_Cb) (void *data, void *event_info);
47
+ callback :elm_gesture_event_cb, [ :pointer, :pointer ], :evas_event_flags
48
+ #
49
+ # FUNCTIONS
50
+ fcts = [
51
+ # EAPI void elm_gesture_layer_cb_set(Evas_Object *obj, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data);
52
+ [ :elm_gesture_layer_cb_set, [ :evas_object, :elm_gesture_type, :elm_gesture_state, :elm_gesture_event_cb, :pointer ], :void ],
53
+ # EAPI Eina_Bool elm_gesture_layer_hold_events_get(const Evas_Object *obj);
54
+ [ :elm_gesture_layer_hold_events_get, [ :evas_object ], :bool ],
55
+ # EAPI void elm_gesture_layer_hold_events_set(Evas_Object *obj, Eina_Bool hold_events);
56
+ [ :elm_gesture_layer_hold_events_set, [ :evas_object, :bool ], :void ],
57
+ # EAPI void elm_gesture_layer_zoom_step_set(Evas_Object *obj, double step);
58
+ [ :elm_gesture_layer_zoom_step_set, [ :evas_object, :double ], :void ],
59
+ # EAPI double elm_gesture_layer_zoom_step_get(const Evas_Object *obj);
60
+ [ :elm_gesture_layer_zoom_step_get, [ :evas_object ], :double ],
61
+ # EAPI void elm_gesture_layer_rotate_step_set(Evas_Object *obj, double step);
62
+ [ :elm_gesture_layer_rotate_step_set, [ :evas_object, :double ], :void ],
63
+ # EAPI double elm_gesture_layer_rotate_step_get(const Evas_Object *obj);
64
+ [ :elm_gesture_layer_rotate_step_get, [ :evas_object ], :double ],
65
+ # EAPI Eina_Bool elm_gesture_layer_attach(Evas_Object *obj, Evas_Object *target);
66
+ [ :elm_gesture_layer_attach, [ :evas_object, :evas_object ], :bool ],
67
+ # EAPI Evas_Object *elm_gesture_layer_add(Evas_Object *parent);
68
+ [ :elm_gesture_layer_add, [ :evas_object ], :evas_object ],
69
+ ]
70
+ #
71
+ attach_fcts fcts
72
+ #
73
+ end
74
+ end
75
+ #
76
+ # EOF
@@ -0,0 +1,70 @@
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 ElmGLView
10
+ #
11
+ FCT_PREFIX = 'elm_glview_' 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-ver-pre-svn-09.so.0'
23
+ #
24
+ # ENUMS
25
+ # typedef enum _Elm_GLView_Mode {...} Elm_GLView_Mode;
26
+ enum :elm_glview_mode, [ :elm_glview_none, 0, :elm_glview_alpha, (1<<1), :elm_glview_depth, (1<<2), :elm_glview_stencil, (1<<3),
27
+ :elm_glview_direct, (1<<4) ]
28
+ # typedef enum {...} Elm_GLView_Resize_Policy;
29
+ enum :elm_glview_resize_policy, [ :elm_glview_resize_policy_recreate, 1, :elm_glview_resize_policy_scale, 2 ]
30
+ # typedef enum {...} Elm_GLView_Render_Policy;
31
+ enum :elm_glview_render_policy, [ :elm_glview_render_policy_on_demand, 1, :elm_glview_render_policy_always, 2 ]
32
+ #
33
+ # CALLBACKS
34
+ # typedef void (*Elm_GLView_Func_Cb) (Evas_Object *obj);
35
+ callback :elm_glview_func_cb, [ :evas_object ], :void
36
+ #
37
+ # FUNCTIONS
38
+ fcts = [
39
+ # EAPI Evas_Object *elm_glview_add(Evas_Object *parent);
40
+ [ :elm_glview_add, [ :evas_object ], :evas_object ],
41
+ # EAPI void elm_glview_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
42
+ [ :elm_glview_size_set, [ :evas_object, :int, :int ], :void ],
43
+ # EAPI void elm_glview_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
44
+ [ :elm_glview_size_get, [ :evas_object, :pointer, :pointer ], :void ],
45
+ # EAPI Evas_GL_API *elm_glview_gl_api_get(const Evas_Object *obj);
46
+ [ :elm_glview_gl_api_get, [ :evas_object ], :pointer ],
47
+ # EAPI Eina_Bool elm_glview_mode_set(Evas_Object *obj, Elm_GLView_Mode mode);
48
+ [ :elm_glview_mode_set, [ :evas_object, :elm_glview_mode ], :bool ],
49
+ # EAPI Eina_Bool elm_glview_resize_policy_set(Evas_Object *obj, Elm_GLView_Resize_Policy policy);
50
+ [ :elm_glview_resize_policy_set, [ :evas_object, :elm_glview_resize_policy ], :bool ],
51
+ # EAPI Eina_Bool elm_glview_render_policy_set(Evas_Object *obj, Elm_GLView_Render_Policy policy);
52
+ [ :elm_glview_render_policy_set, [ :evas_object, :elm_glview_render_policy ], :bool ],
53
+ # EAPI void elm_glview_init_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func);
54
+ [ :elm_glview_init_func_set, [ :evas_object, :elm_glview_func_cb ], :void ],
55
+ # EAPI void elm_glview_del_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func);
56
+ [ :elm_glview_del_func_set, [ :evas_object, :elm_glview_func_cb ], :void ],
57
+ # EAPI void elm_glview_resize_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func);
58
+ [ :elm_glview_resize_func_set, [ :evas_object, :elm_glview_func_cb ], :void ],
59
+ # EAPI void elm_glview_render_func_set(Evas_Object *obj, Elm_GLView_Func_Cb func);
60
+ [ :elm_glview_render_func_set, [ :evas_object, :elm_glview_func_cb ], :void ],
61
+ # EAPI void elm_glview_changed_set(Evas_Object *obj);
62
+ [ :elm_glview_changed_set, [ :evas_object ], :void ],
63
+ ]
64
+ #
65
+ attach_fcts fcts
66
+ #
67
+ end
68
+ end
69
+ #
70
+ # EOF
@@ -0,0 +1,51 @@
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 ElmGrid
10
+ #
11
+ FCT_PREFIX = 'elm_grid_' 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-ver-pre-svn-09.so.0'
23
+ #
24
+ # FUNCTIONS
25
+ fcts = [
26
+ # EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
27
+ [ :elm_grid_add, [ :evas_object ], :evas_object ],
28
+ # EAPI void elm_grid_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
29
+ [ :elm_grid_size_set, [ :evas_object, :int, :int ], :void ],
30
+ # EAPI void elm_grid_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
31
+ [ :elm_grid_size_get, [ :evas_object, :pointer, :pointer ], :void ],
32
+ # EAPI void elm_grid_pack(Evas_Object *obj, Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
33
+ [ :elm_grid_pack, [ :evas_object, :evas_object, :int, :int, :int, :int ], :void ],
34
+ # EAPI void elm_grid_unpack(Evas_Object *obj, Evas_Object *subobj);
35
+ [ :elm_grid_unpack, [ :evas_object, :evas_object ], :void ],
36
+ # EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
37
+ [ :elm_grid_clear, [ :evas_object, :bool ], :void ],
38
+ # EAPI void elm_grid_pack_set(Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
39
+ [ :elm_grid_pack_set, [ :evas_object, :int, :int, :int, :int ], :void ],
40
+ # EAPI void elm_grid_pack_get(Evas_Object *subobj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
41
+ [ :elm_grid_pack_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
42
+ # EAPI Eina_List *elm_grid_children_get(const Evas_Object *obj);
43
+ [ :elm_grid_children_get, [ :evas_object ], :eina_list ],
44
+ ]
45
+ #
46
+ attach_fcts fcts
47
+ #
48
+ end
49
+ end
50
+ #
51
+ # EOF
@@ -0,0 +1,51 @@
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 ElmHover
10
+ #
11
+ FCT_PREFIX = 'elm_hover_' 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-ver-pre-svn-09.so.0'
23
+ #
24
+ # ENUMS
25
+ # typedef enum {...} Elm_Hover_Axis;
26
+ enum :elm_hover_axis, [ :elm_hover_axis_none, :elm_hover_axis_horizontal, :elm_hover_axis_vertical, :elm_hover_axis_both ]
27
+ #
28
+ # FUNCTIONS
29
+ fcts = [
30
+ # EAPI Evas_Object *elm_hover_add(Evas_Object *parent);
31
+ [ :elm_hover_add, [ :evas_object ], :evas_object ],
32
+ # EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target);
33
+ [ :elm_hover_target_set, [ :evas_object, :evas_object ], :void ],
34
+ # EAPI Evas_Object *elm_hover_target_get(const Evas_Object *obj);
35
+ [ :elm_hover_target_get, [ :evas_object ], :evas_object ],
36
+ # EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
37
+ [ :elm_hover_parent_set, [ :evas_object, :evas_object ], :void ],
38
+ # EAPI Evas_Object *elm_hover_parent_get(const Evas_Object *obj);
39
+ [ :elm_hover_parent_get, [ :evas_object ], :evas_object ],
40
+ # EAPI const char *elm_hover_best_content_location_get(const Evas_Object *obj, Elm_Hover_Axis pref_axis);
41
+ [ :elm_hover_best_content_location_get, [ :evas_object, :elm_hover_axis ], :string ],
42
+ # EAPI void elm_hover_dismiss(Evas_Object *obj);
43
+ [ :elm_hover_dismiss, [ :evas_object ], :void ],
44
+ ]
45
+ #
46
+ attach_fcts fcts
47
+ #
48
+ end
49
+ end
50
+ #
51
+ # EOF
@@ -0,0 +1,60 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ require 'efl/native'
5
+ require 'efl/native/elementary'
6
+ require 'efl/native/elm/elm_icon'
7
+ #
8
+ module Efl
9
+ #
10
+ module ElmHoverSel
11
+ #
12
+ FCT_PREFIX = 'elm_hoversel_' unless const_defined? :FCT_PREFIX
13
+ #
14
+ def self.method_missing meth, *args, &block
15
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
16
+ self.send sym, *args, &block
17
+ end
18
+ #
19
+ end
20
+ #
21
+ module Native
22
+ #
23
+ ffi_lib 'elementary-ver-pre-svn-09.so.0'
24
+ #
25
+ # FUNCTIONS
26
+ fcts = [
27
+ # EAPI Evas_Object *elm_hoversel_add(Evas_Object *parent);
28
+ [ :elm_hoversel_add, [ :evas_object ], :evas_object ],
29
+ # EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
30
+ [ :elm_hoversel_horizontal_set, [ :evas_object, :bool ], :void ],
31
+ # EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj);
32
+ [ :elm_hoversel_horizontal_get, [ :evas_object ], :bool ],
33
+ # EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent);
34
+ [ :elm_hoversel_hover_parent_set, [ :evas_object, :evas_object ], :void ],
35
+ # EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj);
36
+ [ :elm_hoversel_hover_parent_get, [ :evas_object ], :evas_object ],
37
+ # EAPI void elm_hoversel_hover_begin(Evas_Object *obj);
38
+ [ :elm_hoversel_hover_begin, [ :evas_object ], :void ],
39
+ # EAPI void elm_hoversel_hover_end(Evas_Object *obj);
40
+ [ :elm_hoversel_hover_end, [ :evas_object ], :void ],
41
+ # EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj);
42
+ [ :elm_hoversel_expanded_get, [ :evas_object ], :bool ],
43
+ # EAPI void elm_hoversel_clear(Evas_Object *obj);
44
+ [ :elm_hoversel_clear, [ :evas_object ], :void ],
45
+ # EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj);
46
+ [ :elm_hoversel_items_get, [ :evas_object ], :eina_list ],
47
+ # EAPI Elm_Object_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data);
48
+ [ :elm_hoversel_item_add, [ :evas_object, :string, :string, :elm_icon_type, :evas_smart_cb, :pointer ], :elm_object_item ],
49
+ # EAPI void elm_hoversel_item_icon_set(Elm_Object_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type);
50
+ [ :elm_hoversel_item_icon_set, [ :elm_object_item, :string, :string, :elm_icon_type ], :void ],
51
+ # EAPI void elm_hoversel_item_icon_get(const Elm_Object_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type);
52
+ [ :elm_hoversel_item_icon_get, [ :elm_object_item, :pointer, :pointer, :pointer ], :void ],
53
+ ]
54
+ #
55
+ attach_fcts fcts
56
+ #
57
+ end
58
+ end
59
+ #
60
+ # EOF
@@ -0,0 +1,97 @@
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 ElmIcon
10
+ #
11
+ FCT_PREFIX = 'elm_icon_' 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-ver-pre-svn-09.so.0'
23
+ #
24
+ # ENUMS
25
+ # typedef enum {...} Elm_Icon_Type;
26
+ enum :elm_icon_type, [ :elm_icon_none, :elm_icon_file, :elm_icon_standard ]
27
+ # typedef enum {...} Elm_Icon_Lookup_Order;
28
+ enum :elm_icon_lookup_order, [ :elm_icon_lookup_fdo_theme, :elm_icon_lookup_theme_fdo, :elm_icon_lookup_fdo, :elm_icon_lookup_theme ]
29
+ #
30
+ # FUNCTIONS
31
+ fcts = [
32
+ # EAPI Evas_Object *elm_icon_add(Evas_Object *parent);
33
+ [ :elm_icon_add, [ :evas_object ], :evas_object ],
34
+ # EAPI Eina_Bool elm_icon_file_set(Evas_Object *obj, const char *file, const char *group);
35
+ [ :elm_icon_file_set, [ :evas_object, :string, :string ], :bool ],
36
+ # EAPI Eina_Bool elm_icon_memfile_set(Evas_Object *obj, const void *img, size_t size, const char *format, const char *key);
37
+ [ :elm_icon_memfile_set, [ :evas_object, :pointer, :ulong, :string, :string ], :bool ],
38
+ # EAPI void elm_icon_file_get(const Evas_Object *obj, const char **file, const char **group);
39
+ [ :elm_icon_file_get, [ :evas_object, :pointer, :pointer ], :void ],
40
+ # EAPI void elm_icon_thumb_set(Evas_Object *obj, const char *file, const char *group);
41
+ [ :elm_icon_thumb_set, [ :evas_object, :string, :string ], :void ],
42
+ # EAPI Eina_Bool elm_icon_standard_set(Evas_Object *obj, const char *name);
43
+ [ :elm_icon_standard_set, [ :evas_object, :string ], :bool ],
44
+ # EAPI const char *elm_icon_standard_get(const Evas_Object *obj);
45
+ [ :elm_icon_standard_get, [ :evas_object ], :string ],
46
+ # EAPI void elm_icon_smooth_set(Evas_Object *obj, Eina_Bool smooth);
47
+ [ :elm_icon_smooth_set, [ :evas_object, :bool ], :void ],
48
+ # EAPI Eina_Bool elm_icon_smooth_get(const Evas_Object *obj);
49
+ [ :elm_icon_smooth_get, [ :evas_object ], :bool ],
50
+ # EAPI void elm_icon_no_scale_set(Evas_Object *obj, Eina_Bool no_scale);
51
+ [ :elm_icon_no_scale_set, [ :evas_object, :bool ], :void ],
52
+ # EAPI Eina_Bool elm_icon_no_scale_get(const Evas_Object *obj);
53
+ [ :elm_icon_no_scale_get, [ :evas_object ], :bool ],
54
+ # EAPI void elm_icon_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down);
55
+ [ :elm_icon_scale_set, [ :evas_object, :bool, :bool ], :void ],
56
+ # EAPI void elm_icon_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down);
57
+ [ :elm_icon_scale_get, [ :evas_object, :pointer, :pointer ], :void ],
58
+ # EAPI void elm_icon_size_get(const Evas_Object *obj, int *w, int *h);
59
+ [ :elm_icon_size_get, [ :evas_object, :pointer, :pointer ], :void ],
60
+ # EAPI void elm_icon_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside);
61
+ [ :elm_icon_fill_outside_set, [ :evas_object, :bool ], :void ],
62
+ # EAPI Eina_Bool elm_icon_fill_outside_get(const Evas_Object *obj);
63
+ [ :elm_icon_fill_outside_get, [ :evas_object ], :bool ],
64
+ # EAPI void elm_icon_prescale_set(Evas_Object *obj, int size);
65
+ [ :elm_icon_prescale_set, [ :evas_object, :int ], :void ],
66
+ # EAPI int elm_icon_prescale_get(const Evas_Object *obj);
67
+ [ :elm_icon_prescale_get, [ :evas_object ], :int ],
68
+ # EAPI Evas_Object *elm_icon_object_get(Evas_Object *obj);
69
+ [ :elm_icon_object_get, [ :evas_object ], :evas_object ],
70
+ # EAPI void elm_icon_order_lookup_set(Evas_Object *obj, Elm_Icon_Lookup_Order order);
71
+ [ :elm_icon_order_lookup_set, [ :evas_object, :elm_icon_lookup_order ], :void ],
72
+ # EAPI Elm_Icon_Lookup_Order elm_icon_order_lookup_get(const Evas_Object *obj);
73
+ [ :elm_icon_order_lookup_get, [ :evas_object ], :elm_icon_lookup_order ],
74
+ # EAPI void elm_icon_preload_set(Evas_Object *obj, Eina_Bool disable);
75
+ [ :elm_icon_preload_set, [ :evas_object, :bool ], :void ],
76
+ # EAPI Eina_Bool elm_icon_animated_available_get(const Evas_Object *obj);
77
+ [ :elm_icon_animated_available_get, [ :evas_object ], :bool ],
78
+ # EAPI void elm_icon_animated_set(Evas_Object *obj, Eina_Bool animated);
79
+ [ :elm_icon_animated_set, [ :evas_object, :bool ], :void ],
80
+ # EAPI Eina_Bool elm_icon_animated_get(const Evas_Object *obj);
81
+ [ :elm_icon_animated_get, [ :evas_object ], :bool ],
82
+ # EAPI void elm_icon_animated_play_set(Evas_Object *obj, Eina_Bool play);
83
+ [ :elm_icon_animated_play_set, [ :evas_object, :bool ], :void ],
84
+ # EAPI Eina_Bool elm_icon_animated_play_get(const Evas_Object *obj);
85
+ [ :elm_icon_animated_play_get, [ :evas_object ], :bool ],
86
+ # EAPI void elm_icon_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed);
87
+ [ :elm_icon_aspect_fixed_set, [ :evas_object, :bool ], :void ],
88
+ # EAPI Eina_Bool elm_icon_aspect_fixed_get(const Evas_Object *obj);
89
+ [ :elm_icon_aspect_fixed_get, [ :evas_object ], :bool ],
90
+ ]
91
+ #
92
+ attach_fcts fcts
93
+ #
94
+ end
95
+ end
96
+ #
97
+ # EOF
@@ -0,0 +1,80 @@
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 ElmImage
10
+ #
11
+ FCT_PREFIX = 'elm_image_' 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-ver-pre-svn-09.so.0'
23
+ #
24
+ # ENUMS
25
+ # typedef enum {...} Elm_Image_Orient;
26
+ enum :elm_image_orient, [ :elm_image_orient_none, 0, :elm_image_orient_0, 0, :elm_image_rotate_90, 1, :elm_image_rotate_180, 2,
27
+ :elm_image_rotate_270, 3, :elm_image_flip_horizontal, 4, :elm_image_flip_vertical, 5, :elm_image_flip_transpose, 6, :elm_image_flip_transverse, 7 ]
28
+ #
29
+ # FUNCTIONS
30
+ fcts = [
31
+ # EAPI Evas_Object *elm_image_add(Evas_Object *parent);
32
+ [ :elm_image_add, [ :evas_object ], :evas_object ],
33
+ # EAPI Eina_Bool elm_image_file_set(Evas_Object *obj, const char *file, const char *group);
34
+ [ :elm_image_file_set, [ :evas_object, :string, :string ], :bool ],
35
+ # EAPI void elm_image_file_get(const Evas_Object *obj, const char **file, const char **group);
36
+ [ :elm_image_file_get, [ :evas_object, :pointer, :pointer ], :void ],
37
+ # EAPI void elm_image_smooth_set(Evas_Object *obj, Eina_Bool smooth);
38
+ [ :elm_image_smooth_set, [ :evas_object, :bool ], :void ],
39
+ # EAPI Eina_Bool elm_image_smooth_get(const Evas_Object *obj);
40
+ [ :elm_image_smooth_get, [ :evas_object ], :bool ],
41
+ # EAPI void elm_image_object_size_get(const Evas_Object *obj, int *w, int *h);
42
+ [ :elm_image_object_size_get, [ :evas_object, :pointer, :pointer ], :void ],
43
+ # EAPI void elm_image_no_scale_set(Evas_Object *obj, Eina_Bool no_scale);
44
+ [ :elm_image_no_scale_set, [ :evas_object, :bool ], :void ],
45
+ # EAPI Eina_Bool elm_image_no_scale_get(const Evas_Object *obj);
46
+ [ :elm_image_no_scale_get, [ :evas_object ], :bool ],
47
+ # EAPI void elm_image_scale_set(Evas_Object *obj, Eina_Bool scale_up, Eina_Bool scale_down);
48
+ [ :elm_image_scale_set, [ :evas_object, :bool, :bool ], :void ],
49
+ # EAPI void elm_image_scale_get(const Evas_Object *obj, Eina_Bool *scale_up, Eina_Bool *scale_down);
50
+ [ :elm_image_scale_get, [ :evas_object, :pointer, :pointer ], :void ],
51
+ # EAPI void elm_image_fill_outside_set(Evas_Object *obj, Eina_Bool fill_outside);
52
+ [ :elm_image_fill_outside_set, [ :evas_object, :bool ], :void ],
53
+ # EAPI Eina_Bool elm_image_fill_outside_get(const Evas_Object *obj);
54
+ [ :elm_image_fill_outside_get, [ :evas_object ], :bool ],
55
+ # EAPI void elm_image_prescale_set(Evas_Object *obj, int size);
56
+ [ :elm_image_prescale_set, [ :evas_object, :int ], :void ],
57
+ # EAPI int elm_image_prescale_get(const Evas_Object *obj);
58
+ [ :elm_image_prescale_get, [ :evas_object ], :int ],
59
+ # EAPI void elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient orient);
60
+ [ :elm_image_orient_set, [ :evas_object, :elm_image_orient ], :void ],
61
+ # EAPI Elm_Image_Orient elm_image_orient_get(const Evas_Object *obj);
62
+ [ :elm_image_orient_get, [ :evas_object ], :elm_image_orient ],
63
+ # EAPI void elm_image_editable_set(Evas_Object *obj, Eina_Bool set);
64
+ [ :elm_image_editable_set, [ :evas_object, :bool ], :void ],
65
+ # EAPI Eina_Bool elm_image_editable_get(const Evas_Object *obj);
66
+ [ :elm_image_editable_get, [ :evas_object ], :bool ],
67
+ # EAPI Evas_Object *elm_image_object_get(const Evas_Object *obj);
68
+ [ :elm_image_object_get, [ :evas_object ], :evas_object ],
69
+ # EAPI void elm_image_aspect_fixed_set(Evas_Object *obj, Eina_Bool fixed);
70
+ [ :elm_image_aspect_fixed_set, [ :evas_object, :bool ], :void ],
71
+ # EAPI Eina_Bool elm_image_aspect_fixed_get(const Evas_Object *obj);
72
+ [ :elm_image_aspect_fixed_get, [ :evas_object ], :bool ],
73
+ ]
74
+ #
75
+ attach_fcts fcts
76
+ #
77
+ end
78
+ end
79
+ #
80
+ # EOF