ffi-efl 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,59 @@
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 ElmTooltip
10
+ #
11
+ FCT_PREFIX = 'elm_' 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
+ # CALLBACKS
25
+ # typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
26
+ callback :elm_tooltip_content_cb, [ :pointer, :evas_object, :evas_object ], :evas_object
27
+ # typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
28
+ callback :elm_tooltip_item_content_cb, [ :pointer, :evas_object, :evas_object, :pointer ], :evas_object
29
+ #
30
+ # FUNCTIONS
31
+ fcts = [
32
+ # EAPI void elm_object_tooltip_show(Evas_Object *obj);
33
+ [ :elm_object_tooltip_show, [ :evas_object ], :void ],
34
+ # EAPI void elm_object_tooltip_hide(Evas_Object *obj);
35
+ [ :elm_object_tooltip_hide, [ :evas_object ], :void ],
36
+ # EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text);
37
+ [ :elm_object_tooltip_text_set, [ :evas_object, :string ], :void ],
38
+ # EAPI void elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text);
39
+ [ :elm_object_tooltip_domain_translatable_text_set, [ :evas_object, :string, :string ], :void ],
40
+ # EAPI void elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
41
+ [ :elm_object_tooltip_content_cb_set, [ :evas_object, :elm_tooltip_content_cb, :pointer, :evas_smart_cb ], :void ],
42
+ # EAPI void elm_object_tooltip_unset(Evas_Object *obj);
43
+ [ :elm_object_tooltip_unset, [ :evas_object ], :void ],
44
+ # EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style);
45
+ [ :elm_object_tooltip_style_set, [ :evas_object, :string ], :void ],
46
+ # EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj);
47
+ [ :elm_object_tooltip_style_get, [ :evas_object ], :string ],
48
+ # EAPI Eina_Bool elm_object_tooltip_window_mode_set(Evas_Object *obj, Eina_Bool disable);
49
+ [ :elm_object_tooltip_window_mode_set, [ :evas_object, :bool ], :bool ],
50
+ # EAPI Eina_Bool elm_object_tooltip_window_mode_get(const Evas_Object *obj);
51
+ [ :elm_object_tooltip_window_mode_get, [ :evas_object ], :bool ],
52
+ ]
53
+ #
54
+ attach_fcts fcts
55
+ #
56
+ end
57
+ end
58
+ #
59
+ # EOF
@@ -0,0 +1,135 @@
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 ElmTransit
10
+ #
11
+ FCT_PREFIX = 'elm_transit_' 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_Transit_Tween_Mode;
26
+ enum :elm_transit_tween_mode, [ :elm_transit_tween_mode_linear, :elm_transit_tween_mode_sinusoidal, :elm_transit_tween_mode_decelerate,
27
+ :elm_transit_tween_mode_accelerate ]
28
+ # typedef enum {...} Elm_Transit_Effect_Flip_Axis;
29
+ enum :elm_transit_effect_flip_axis, [ :elm_transit_effect_flip_axis_x, :elm_transit_effect_flip_axis_y ]
30
+ # typedef enum {...} Elm_Transit_Effect_Wipe_Dir;
31
+ enum :elm_transit_effect_wipe_dir, [ :elm_transit_effect_wipe_dir_left, :elm_transit_effect_wipe_dir_right, :elm_transit_effect_wipe_dir_up,
32
+ :elm_transit_effect_wipe_dir_down ]
33
+ # typedef enum {...} Elm_Transit_Effect_Wipe_Type;
34
+ enum :elm_transit_effect_wipe_type, [ :elm_transit_effect_wipe_type_hide, :elm_transit_effect_wipe_type_show ]
35
+ #
36
+ # TYPEDEFS
37
+ # typedef struct _Elm_Transit Elm_Transit;
38
+ typedef :pointer, :elm_transit
39
+ # typedef void Elm_Transit_Effect;
40
+ typedef :void, :elm_transit_effect
41
+ #
42
+ # CALLBACKS
43
+ # typedef void (*Elm_Transit_Effect_Transition_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit, double progress);
44
+ callback :elm_transit_effect_transition_cb, [ :pointer, :elm_transit, :double ], :void
45
+ # typedef void (*Elm_Transit_Effect_End_Cb) (Elm_Transit_Effect *effect, Elm_Transit *transit);
46
+ callback :elm_transit_effect_end_cb, [ :pointer, :elm_transit ], :void
47
+ # typedef void (*Elm_Transit_Del_Cb) (void *data, Elm_Transit *transit);
48
+ callback :elm_transit_del_cb, [ :pointer, :elm_transit ], :void
49
+ #
50
+ # FUNCTIONS
51
+ fcts = [
52
+ # EAPI Elm_Transit *elm_transit_add(void);
53
+ [ :elm_transit_add, [ ], :elm_transit ],
54
+ # EAPI void elm_transit_del(Elm_Transit *transit);
55
+ [ :elm_transit_del, [ :elm_transit ], :void ],
56
+ # EAPI void elm_transit_effect_add(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect, Elm_Transit_Effect_End_Cb end_cb);
57
+ [ :elm_transit_effect_add, [ :elm_transit, :elm_transit_effect_transition_cb, :pointer, :elm_transit_effect_end_cb ], :void ],
58
+ # EAPI void elm_transit_effect_del(Elm_Transit *transit, Elm_Transit_Effect_Transition_Cb transition_cb, Elm_Transit_Effect *effect);
59
+ [ :elm_transit_effect_del, [ :elm_transit, :elm_transit_effect_transition_cb, :pointer ], :void ],
60
+ # EAPI void elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj);
61
+ [ :elm_transit_object_add, [ :elm_transit, :evas_object ], :void ],
62
+ # EAPI void elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj);
63
+ [ :elm_transit_object_remove, [ :elm_transit, :evas_object ], :void ],
64
+ # EAPI const Eina_List *elm_transit_objects_get(const Elm_Transit *transit);
65
+ [ :elm_transit_objects_get, [ :elm_transit ], :eina_list ],
66
+ # EAPI void elm_transit_objects_final_state_keep_set(Elm_Transit *transit, Eina_Bool state_keep);
67
+ [ :elm_transit_objects_final_state_keep_set, [ :elm_transit, :bool ], :void ],
68
+ # EAPI Eina_Bool elm_transit_objects_final_state_keep_get(const Elm_Transit *transit);
69
+ [ :elm_transit_objects_final_state_keep_get, [ :elm_transit ], :bool ],
70
+ # EAPI void elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled);
71
+ [ :elm_transit_event_enabled_set, [ :elm_transit, :bool ], :void ],
72
+ # EAPI Eina_Bool elm_transit_event_enabled_get(const Elm_Transit *transit);
73
+ [ :elm_transit_event_enabled_get, [ :elm_transit ], :bool ],
74
+ # EAPI void elm_transit_del_cb_set(Elm_Transit *transit, Elm_Transit_Del_Cb cb, void *data);
75
+ [ :elm_transit_del_cb_set, [ :elm_transit, :elm_transit_del_cb, :pointer ], :void ],
76
+ # EAPI void elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse);
77
+ [ :elm_transit_auto_reverse_set, [ :elm_transit, :bool ], :void ],
78
+ # EAPI Eina_Bool elm_transit_auto_reverse_get(const Elm_Transit *transit);
79
+ [ :elm_transit_auto_reverse_get, [ :elm_transit ], :bool ],
80
+ # EAPI void elm_transit_repeat_times_set(Elm_Transit *transit, int repeat);
81
+ [ :elm_transit_repeat_times_set, [ :elm_transit, :int ], :void ],
82
+ # EAPI int elm_transit_repeat_times_get(const Elm_Transit *transit);
83
+ [ :elm_transit_repeat_times_get, [ :elm_transit ], :int ],
84
+ # EAPI void elm_transit_tween_mode_set(Elm_Transit *transit, Elm_Transit_Tween_Mode tween_mode);
85
+ [ :elm_transit_tween_mode_set, [ :elm_transit, :elm_transit_tween_mode ], :void ],
86
+ # EAPI Elm_Transit_Tween_Mode elm_transit_tween_mode_get(const Elm_Transit *transit);
87
+ [ :elm_transit_tween_mode_get, [ :elm_transit ], :elm_transit_tween_mode ],
88
+ # EAPI void elm_transit_duration_set(Elm_Transit *transit, double duration);
89
+ [ :elm_transit_duration_set, [ :elm_transit, :double ], :void ],
90
+ # EAPI double elm_transit_duration_get(const Elm_Transit *transit);
91
+ [ :elm_transit_duration_get, [ :elm_transit ], :double ],
92
+ # EAPI void elm_transit_go(Elm_Transit *transit);
93
+ [ :elm_transit_go, [ :elm_transit ], :void ],
94
+ # EAPI void elm_transit_paused_set(Elm_Transit *transit, Eina_Bool paused);
95
+ [ :elm_transit_paused_set, [ :elm_transit, :bool ], :void ],
96
+ # EAPI Eina_Bool elm_transit_paused_get(const Elm_Transit *transit);
97
+ [ :elm_transit_paused_get, [ :elm_transit ], :bool ],
98
+ # EAPI double elm_transit_progress_value_get(const Elm_Transit *transit);
99
+ [ :elm_transit_progress_value_get, [ :elm_transit ], :double ],
100
+ # EAPI void elm_transit_chain_transit_add(Elm_Transit *transit, Elm_Transit *chain_transit);
101
+ [ :elm_transit_chain_transit_add, [ :elm_transit, :elm_transit ], :void ],
102
+ # EAPI void elm_transit_chain_transit_del(Elm_Transit *transit, Elm_Transit *chain_transit);
103
+ [ :elm_transit_chain_transit_del, [ :elm_transit, :elm_transit ], :void ],
104
+ # EAPI Eina_List *elm_transit_chain_transits_get(const Elm_Transit *transit);
105
+ [ :elm_transit_chain_transits_get, [ :elm_transit ], :eina_list ],
106
+ # EAPI Elm_Transit_Effect *elm_transit_effect_resizing_add(Elm_Transit *transit, Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h);
107
+ [ :elm_transit_effect_resizing_add, [ :elm_transit, :int, :int, :int, :int ], :pointer ],
108
+ # EAPI Elm_Transit_Effect *elm_transit_effect_translation_add(Elm_Transit *transit, Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy);
109
+ [ :elm_transit_effect_translation_add, [ :elm_transit, :int, :int, :int, :int ], :pointer ],
110
+ # EAPI Elm_Transit_Effect *elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate);
111
+ [ :elm_transit_effect_zoom_add, [ :elm_transit, :float, :float ], :pointer ],
112
+ # EAPI Elm_Transit_Effect *elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
113
+ [ :elm_transit_effect_flip_add, [ :elm_transit, :elm_transit_effect_flip_axis, :bool ], :pointer ],
114
+ # EAPI Elm_Transit_Effect *elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Transit_Effect_Flip_Axis axis, Eina_Bool cw);
115
+ [ :elm_transit_effect_resizable_flip_add, [ :elm_transit, :elm_transit_effect_flip_axis, :bool ], :pointer ],
116
+ # EAPI Elm_Transit_Effect *elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Transit_Effect_Wipe_Type type, Elm_Transit_Effect_Wipe_Dir dir);
117
+ [ :elm_transit_effect_wipe_add, [ :elm_transit, :elm_transit_effect_wipe_type, :elm_transit_effect_wipe_dir ], :pointer ],
118
+ # EAPI Elm_Transit_Effect *elm_transit_effect_color_add(Elm_Transit *transit, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a);
119
+ [ :elm_transit_effect_color_add, [ :elm_transit, :uint, :uint, :uint, :uint, :uint, :uint, :uint, :uint ], :pointer ],
120
+ # EAPI Elm_Transit_Effect *elm_transit_effect_fade_add(Elm_Transit *transit);
121
+ [ :elm_transit_effect_fade_add, [ :elm_transit ], :pointer ],
122
+ # EAPI Elm_Transit_Effect *elm_transit_effect_blend_add(Elm_Transit *transit);
123
+ [ :elm_transit_effect_blend_add, [ :elm_transit ], :pointer ],
124
+ # EAPI Elm_Transit_Effect *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree);
125
+ [ :elm_transit_effect_rotation_add, [ :elm_transit, :float, :float ], :pointer ],
126
+ # EAPI Elm_Transit_Effect *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images);
127
+ [ :elm_transit_effect_image_animation_add, [ :elm_transit, :eina_list ], :pointer ],
128
+ ]
129
+ #
130
+ attach_fcts fcts
131
+ #
132
+ end
133
+ end
134
+ #
135
+ # EOF
@@ -0,0 +1,71 @@
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 ElmVideo
10
+ #
11
+ FCT_PREFIX = 'elm_video_' 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_player_add(Evas_Object *parent);
27
+ [ :elm_player_add, [ :evas_object ], :evas_object ],
28
+ # EAPI Evas_Object *elm_video_add(Evas_Object *parent);
29
+ [ :elm_video_add, [ :evas_object ], :evas_object ],
30
+ # EAPI void elm_video_file_set(Evas_Object *video, const char *filename);
31
+ [ :elm_video_file_set, [ :evas_object, :string ], :void ],
32
+ # EAPI Evas_Object *elm_video_emotion_get(const Evas_Object *video);
33
+ [ :elm_video_emotion_get, [ :evas_object ], :evas_object ],
34
+ # EAPI void elm_video_play(Evas_Object *video);
35
+ [ :elm_video_play, [ :evas_object ], :void ],
36
+ # EAPI void elm_video_pause(Evas_Object *video);
37
+ [ :elm_video_pause, [ :evas_object ], :void ],
38
+ # EAPI void elm_video_stop(Evas_Object *video);
39
+ [ :elm_video_stop, [ :evas_object ], :void ],
40
+ # EAPI Eina_Bool elm_video_is_playing_get(const Evas_Object *video);
41
+ [ :elm_video_is_playing_get, [ :evas_object ], :bool ],
42
+ # EAPI Eina_Bool elm_video_is_seekable_get(const Evas_Object *video);
43
+ [ :elm_video_is_seekable_get, [ :evas_object ], :bool ],
44
+ # EAPI Eina_Bool elm_video_audio_mute_get(const Evas_Object *video);
45
+ [ :elm_video_audio_mute_get, [ :evas_object ], :bool ],
46
+ # EAPI void elm_video_audio_mute_set(Evas_Object *video, Eina_Bool mute);
47
+ [ :elm_video_audio_mute_set, [ :evas_object, :bool ], :void ],
48
+ # EAPI double elm_video_audio_level_get(const Evas_Object *video);
49
+ [ :elm_video_audio_level_get, [ :evas_object ], :double ],
50
+ # EAPI void elm_video_audio_level_set(Evas_Object *video, double volume);
51
+ [ :elm_video_audio_level_set, [ :evas_object, :double ], :void ],
52
+ # EAPI double elm_video_play_position_get(const Evas_Object *video);
53
+ [ :elm_video_play_position_get, [ :evas_object ], :double ],
54
+ # EAPI void elm_video_play_position_set(Evas_Object *video, double position);
55
+ [ :elm_video_play_position_set, [ :evas_object, :double ], :void ],
56
+ # EAPI double elm_video_play_length_get(const Evas_Object *video);
57
+ [ :elm_video_play_length_get, [ :evas_object ], :double ],
58
+ # EAPI void elm_video_remember_position_set(Evas_Object *video, Eina_Bool remember);
59
+ [ :elm_video_remember_position_set, [ :evas_object, :bool ], :void ],
60
+ # EAPI Eina_Bool elm_video_remember_position_get(const Evas_Object *video);
61
+ [ :elm_video_remember_position_get, [ :evas_object ], :bool ],
62
+ # EAPI const char *elm_video_title_get(const Evas_Object *video);
63
+ [ :elm_video_title_get, [ :evas_object ], :string ],
64
+ ]
65
+ #
66
+ attach_fcts fcts
67
+ #
68
+ end
69
+ end
70
+ #
71
+ # EOF
@@ -0,0 +1,165 @@
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 ElmWeb
10
+ #
11
+ FCT_PREFIX = 'elm_web_' 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_Web_Menu_Item_Type;
26
+ enum :elm_web_menu_item_type, [ :elm_web_menu_separator, :elm_web_menu_group, :elm_web_menu_option ]
27
+ # typedef enum {...} Elm_Web_Zoom_Mode;
28
+ enum :elm_web_zoom_mode, [ :elm_web_zoom_mode_manual, 0, :elm_web_zoom_mode_auto_fit, 1, :elm_web_zoom_mode_auto_fill, 2,
29
+ :elm_web_zoom_mode_last, 3 ]
30
+ #
31
+ # TYPEDEFS
32
+ # typedef struct _Elm_Web_Frame_Load_Error Elm_Web_Frame_Load_Error;
33
+ typedef :pointer, :elm_web_frame_load_error
34
+ # typedef struct _Elm_Web_Menu_Item Elm_Web_Menu_Item;
35
+ typedef :pointer, :elm_web_menu_item
36
+ # typedef struct _Elm_Web_Menu Elm_Web_Menu;
37
+ typedef :pointer, :elm_web_menu
38
+ # typedef struct _Elm_Web_Download Elm_Web_Download;
39
+ typedef :pointer, :elm_web_download
40
+ # typedef struct _Elm_Web_Window_Features Elm_Web_Window_Features;
41
+ typedef :pointer, :elm_web_window_features
42
+ #
43
+ # CALLBACKS
44
+ # typedef Evas_Object *(*Elm_Web_Window_Open) (void *data, Evas_Object *obj, Eina_Bool js, const Elm_Web_Window_Features *window_features);
45
+ callback :elm_web_window_open_cb, [ :pointer, :evas_object, :bool, :elm_web_window_features ], :evas_object
46
+ # typedef Evas_Object *(*Elm_Web_Dialog_Alert) (void *data, Evas_Object *obj, const char *message);
47
+ callback :elm_web_dialog_alert_cb, [ :pointer, :evas_object, :string ], :evas_object
48
+ # typedef Evas_Object *(*Elm_Web_Dialog_Confirm) (void *data, Evas_Object *obj, const char *message, Eina_Bool *ret);
49
+ callback :elm_web_dialog_confirm_cb, [ :pointer, :evas_object, :string, :pointer ], :evas_object
50
+ # typedef Evas_Object *(*Elm_Web_Dialog_Prompt) (void *data, Evas_Object *obj, const char *message, const char *def_value, char **value, Eina_Bool *ret);
51
+ callback :elm_web_dialog_prompt_cb, [ :pointer, :evas_object, :string, :string, :pointer, :pointer ], :evas_object
52
+ # 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);
53
+ callback :elm_web_dialog_file_selector_cb, [ :pointer, :evas_object, :bool, :eina_list, :eina_list, :pointer ], :evas_object
54
+ # typedef void (*Elm_Web_Console_Message) (void *data, Evas_Object *obj, const char *message, unsigned int line_number, const char *source_id);
55
+ callback :elm_web_console_message_cb, [ :pointer, :evas_object, :string, :uint, :string ], :void
56
+ #
57
+ # FUNCTIONS
58
+ fcts = [
59
+ # EAPI Evas_Object *elm_web_add(Evas_Object *parent);
60
+ [ :elm_web_add, [ :evas_object ], :evas_object ],
61
+ # EAPI void elm_web_useragent_set(Evas_Object *obj, const char *user_agent);
62
+ [ :elm_web_useragent_set, [ :evas_object, :string ], :void ],
63
+ # EAPI const char* elm_web_useragent_get(const Evas_Object *obj);
64
+ [ :elm_web_useragent_get, [ :evas_object ], :pointer ],
65
+ # EAPI Evas_Object *elm_web_webkit_view_get(const Evas_Object *obj);
66
+ [ :elm_web_webkit_view_get, [ :evas_object ], :evas_object ],
67
+ # EAPI void elm_web_window_create_hook_set(Evas_Object *obj, Elm_Web_Window_Open func, void *data);
68
+ [ :elm_web_window_create_hook_set, [ :evas_object, :elm_web_window_open_cb, :pointer ], :void ],
69
+ # EAPI void elm_web_dialog_alert_hook_set(Evas_Object *obj, Elm_Web_Dialog_Alert func, void *data);
70
+ [ :elm_web_dialog_alert_hook_set, [ :evas_object, :elm_web_dialog_alert_cb, :pointer ], :void ],
71
+ # EAPI void elm_web_dialog_confirm_hook_set(Evas_Object *obj, Elm_Web_Dialog_Confirm func, void *data);
72
+ [ :elm_web_dialog_confirm_hook_set, [ :evas_object, :elm_web_dialog_confirm_cb, :pointer ], :void ],
73
+ # EAPI void elm_web_dialog_prompt_hook_set(Evas_Object *obj, Elm_Web_Dialog_Prompt func, void *data);
74
+ [ :elm_web_dialog_prompt_hook_set, [ :evas_object, :elm_web_dialog_prompt_cb, :pointer ], :void ],
75
+ # EAPI void elm_web_dialog_file_selector_hook_set(Evas_Object *obj, Elm_Web_Dialog_File_Selector func, void *data);
76
+ [ :elm_web_dialog_file_selector_hook_set, [ :evas_object, :elm_web_dialog_file_selector_cb, :pointer ], :void ],
77
+ # EAPI void elm_web_console_message_hook_set(Evas_Object *obj, Elm_Web_Console_Message func, void *data);
78
+ [ :elm_web_console_message_hook_set, [ :evas_object, :elm_web_console_message_cb, :pointer ], :void ],
79
+ # EAPI Eina_Bool elm_web_tab_propagate_get(const Evas_Object *obj);
80
+ [ :elm_web_tab_propagate_get, [ :evas_object ], :bool ],
81
+ # EAPI void elm_web_tab_propagate_set(Evas_Object *obj, Eina_Bool propagate);
82
+ [ :elm_web_tab_propagate_set, [ :evas_object, :bool ], :void ],
83
+ # EAPI Eina_Bool elm_web_uri_set(Evas_Object *obj, const char *uri);
84
+ [ :elm_web_uri_set, [ :evas_object, :string ], :bool ],
85
+ # EAPI const char *elm_web_uri_get(const Evas_Object *obj);
86
+ [ :elm_web_uri_get, [ :evas_object ], :string ],
87
+ # EAPI const char *elm_web_title_get(const Evas_Object *obj);
88
+ [ :elm_web_title_get, [ :evas_object ], :string ],
89
+ # EAPI void elm_web_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
90
+ [ :elm_web_bg_color_set, [ :evas_object, :int, :int, :int, :int ], :void ],
91
+ # EAPI void elm_web_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
92
+ [ :elm_web_bg_color_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
93
+ # EAPI char *elm_web_selection_get(const Evas_Object *obj);
94
+ [ :elm_web_selection_get, [ :evas_object ], :string ],
95
+ # EAPI void elm_web_popup_selected_set(Evas_Object *obj, int index);
96
+ [ :elm_web_popup_selected_set, [ :evas_object, :int ], :void ],
97
+ # EAPI Eina_Bool elm_web_popup_destroy(Evas_Object *obj);
98
+ [ :elm_web_popup_destroy, [ :evas_object ], :bool ],
99
+ # EAPI Eina_Bool elm_web_text_search(const Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool forward, Eina_Bool wrap);
100
+ [ :elm_web_text_search, [ :evas_object, :string, :bool, :bool, :bool ], :bool ],
101
+ # EAPI unsigned int elm_web_text_matches_mark(Evas_Object *obj, const char *string, Eina_Bool case_sensitive, Eina_Bool highlight, unsigned int limit);
102
+ [ :elm_web_text_matches_mark, [ :evas_object, :string, :bool, :bool, :uint ], :uint ],
103
+ # EAPI Eina_Bool elm_web_text_matches_unmark_all(Evas_Object *obj);
104
+ [ :elm_web_text_matches_unmark_all, [ :evas_object ], :bool ],
105
+ # EAPI Eina_Bool elm_web_text_matches_highlight_set(Evas_Object *obj, Eina_Bool highlight);
106
+ [ :elm_web_text_matches_highlight_set, [ :evas_object, :bool ], :bool ],
107
+ # EAPI Eina_Bool elm_web_text_matches_highlight_get(const Evas_Object *obj);
108
+ [ :elm_web_text_matches_highlight_get, [ :evas_object ], :bool ],
109
+ # EAPI double elm_web_load_progress_get(const Evas_Object *obj);
110
+ [ :elm_web_load_progress_get, [ :evas_object ], :double ],
111
+ # EAPI Eina_Bool elm_web_stop(Evas_Object *obj);
112
+ [ :elm_web_stop, [ :evas_object ], :bool ],
113
+ # EAPI Eina_Bool elm_web_reload(Evas_Object *obj);
114
+ [ :elm_web_reload, [ :evas_object ], :bool ],
115
+ # EAPI Eina_Bool elm_web_reload_full(Evas_Object *obj);
116
+ [ :elm_web_reload_full, [ :evas_object ], :bool ],
117
+ # EAPI Eina_Bool elm_web_back(Evas_Object *obj);
118
+ [ :elm_web_back, [ :evas_object ], :bool ],
119
+ # EAPI Eina_Bool elm_web_forward(Evas_Object *obj);
120
+ [ :elm_web_forward, [ :evas_object ], :bool ],
121
+ # EAPI Eina_Bool elm_web_navigate(Evas_Object *obj, int steps);
122
+ [ :elm_web_navigate, [ :evas_object, :int ], :bool ],
123
+ # EAPI Eina_Bool elm_web_back_possible(Evas_Object *obj);
124
+ [ :elm_web_back_possible, [ :evas_object ], :bool ],
125
+ # EAPI Eina_Bool elm_web_forward_possible(Evas_Object *obj);
126
+ [ :elm_web_forward_possible, [ :evas_object ], :bool ],
127
+ # EAPI Eina_Bool elm_web_navigate_possible(Evas_Object *obj, int steps);
128
+ [ :elm_web_navigate_possible, [ :evas_object, :int ], :bool ],
129
+ # EAPI Eina_Bool elm_web_history_enable_get(const Evas_Object *obj);
130
+ [ :elm_web_history_enable_get, [ :evas_object ], :bool ],
131
+ # EAPI void elm_web_history_enable_set(Evas_Object *obj, Eina_Bool enable);
132
+ [ :elm_web_history_enable_set, [ :evas_object, :bool ], :void ],
133
+ # EAPI void elm_web_zoom_set(Evas_Object *obj, double zoom);
134
+ [ :elm_web_zoom_set, [ :evas_object, :double ], :void ],
135
+ # EAPI double elm_web_zoom_get(const Evas_Object *obj);
136
+ [ :elm_web_zoom_get, [ :evas_object ], :double ],
137
+ # EAPI void elm_web_zoom_mode_set(Evas_Object *obj, Elm_Web_Zoom_Mode mode);
138
+ [ :elm_web_zoom_mode_set, [ :evas_object, :elm_web_zoom_mode ], :void ],
139
+ # EAPI Elm_Web_Zoom_Mode elm_web_zoom_mode_get(const Evas_Object *obj);
140
+ [ :elm_web_zoom_mode_get, [ :evas_object ], :elm_web_zoom_mode ],
141
+ # EAPI void elm_web_region_show(Evas_Object *obj, int x, int y, int w, int h);
142
+ [ :elm_web_region_show, [ :evas_object, :int, :int, :int, :int ], :void ],
143
+ # EAPI void elm_web_region_bring_in(Evas_Object *obj, int x, int y, int w, int h);
144
+ [ :elm_web_region_bring_in, [ :evas_object, :int, :int, :int, :int ], :void ],
145
+ # EAPI void elm_web_inwin_mode_set(Evas_Object *obj, Eina_Bool value);
146
+ [ :elm_web_inwin_mode_set, [ :evas_object, :bool ], :void ],
147
+ # EAPI Eina_Bool elm_web_inwin_mode_get(const Evas_Object *obj);
148
+ [ :elm_web_inwin_mode_get, [ :evas_object ], :bool ],
149
+ # EAPI void elm_web_window_features_ref(Elm_Web_Window_Features *wf);
150
+ [ :elm_web_window_features_ref, [ :elm_web_window_features ], :void ],
151
+ # EAPI void elm_web_window_features_unref(Elm_Web_Window_Features *wf);
152
+ [ :elm_web_window_features_unref, [ :elm_web_window_features ], :void ],
153
+ # EAPI void elm_web_window_features_bool_property_get(const Elm_Web_Window_Features *wf, Eina_Bool *toolbar_visible, Eina_Bool *statusbar_visible, Eina_Bool *scrollbars_visible, Eina_Bool *menubar_visible, Eina_Bool *locationbar_visble, Eina_Bool *fullscreen);
154
+ [ :elm_web_window_features_bool_property_get, [ :elm_web_window_features, :pointer, :pointer, :pointer, :pointer, :pointer, :pointer ], :void
155
+ ],
156
+ # EAPI void elm_web_window_features_int_property_get(const Elm_Web_Window_Features *wf, int *x, int *y, int *w, int *h);
157
+ [ :elm_web_window_features_int_property_get, [ :elm_web_window_features, :pointer, :pointer, :pointer, :pointer ], :void ],
158
+ ]
159
+ #
160
+ attach_fcts fcts
161
+ #
162
+ end
163
+ end
164
+ #
165
+ # EOF
@@ -0,0 +1,221 @@
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 ElmWin
10
+ #
11
+ FCT_PREFIX = 'elm_win_' 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_Win_Type;
26
+ enum :elm_win_type, [ :elm_win_basic, :elm_win_dialog_basic, :elm_win_desktop, :elm_win_dock, :melm_win_toolbar, :elm_win_menu,
27
+ :elm_win_utility, :elm_win_splash, :elm_win_dropdown_menu, :elm_win_popup_menu, :elm_win_tooltip, :telm_win_notification, :elm_win_combo,
28
+ :elm_win_dnd, :elm_win_inlined_image, :teeelm_win_socket_image, :n ]
29
+ # typedef enum {...} Elm_Win_Keyboard_Mode;
30
+ enum :elm_win_keyboard_mode, [ :elm_win_keyboard_unknown, :elm_win_keyboard_off, :elm_win_keyboard_on, :elm_win_keyboard_alpha,
31
+ :elm_win_keyboard_numeric, :elm_win_keyboard_pin, :elm_win_keyboard_phone_number, :elm_win_keyboard_hex, :elm_win_keyboard_terminal,
32
+ :elm_win_keyboard_password, :elm_win_keyboard_ip, :elm_win_keyboard_host, :elm_win_keyboard_file, :elm_win_keyboard_url, :elm_win_keyboard_keypad,
33
+ :elm_win_keyboard_j2me ]
34
+ # typedef enum {...} Elm_Win_Indicator_Mode;
35
+ enum :elm_win_indicator_mode, [ :elm_win_indicator_unknown, :elm_win_indicator_hide, :elm_win_indicator_show ]
36
+ # typedef enum {...} Elm_Illume_Command;
37
+ enum :elm_illume_command, [ :elm_illume_command_focus_back, :elm_illume_command_focus_forward, :elm_illume_command_focus_home,
38
+ :elm_illume_command_close ]
39
+ #
40
+ # FUNCTIONS
41
+ fcts = [
42
+ # EAPI Evas_Object *elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
43
+ [ :elm_win_add, [ :evas_object, :string, :elm_win_type ], :evas_object ],
44
+ # EAPI Evas_Object *elm_win_util_standard_add(const char *name, const char *title);
45
+ [ :elm_win_util_standard_add, [ :string, :string ], :evas_object ],
46
+ # EAPI void elm_win_resize_object_add(Evas_Object *obj, Evas_Object *subobj);
47
+ [ :elm_win_resize_object_add, [ :evas_object, :evas_object ], :void ],
48
+ # EAPI void elm_win_resize_object_del(Evas_Object *obj, Evas_Object *subobj);
49
+ [ :elm_win_resize_object_del, [ :evas_object, :evas_object ], :void ],
50
+ # EAPI void elm_win_title_set(Evas_Object *obj, const char *title);
51
+ [ :elm_win_title_set, [ :evas_object, :string ], :void ],
52
+ # EAPI const char *elm_win_title_get(const Evas_Object *obj);
53
+ [ :elm_win_title_get, [ :evas_object ], :string ],
54
+ # EAPI void elm_win_icon_name_set(Evas_Object *obj, const char *icon_name);
55
+ [ :elm_win_icon_name_set, [ :evas_object, :string ], :void ],
56
+ # EAPI const char *elm_win_icon_name_get(const Evas_Object *obj);
57
+ [ :elm_win_icon_name_get, [ :evas_object ], :string ],
58
+ # EAPI void elm_win_role_set(Evas_Object *obj, const char *role);
59
+ [ :elm_win_role_set, [ :evas_object, :string ], :void ],
60
+ # EAPI const char *elm_win_role_get(const Evas_Object *obj);
61
+ [ :elm_win_role_get, [ :evas_object ], :string ],
62
+ # EAPI void elm_win_icon_object_set(Evas_Object *obj, Evas_Object *icon);
63
+ [ :elm_win_icon_object_set, [ :evas_object, :evas_object ], :void ],
64
+ # EAPI const Evas_Object *elm_win_icon_object_get(const Evas_Object *obj);
65
+ [ :elm_win_icon_object_get, [ :evas_object ], :evas_object ],
66
+ # EAPI void elm_win_autodel_set(Evas_Object *obj, Eina_Bool autodel);
67
+ [ :elm_win_autodel_set, [ :evas_object, :bool ], :void ],
68
+ # EAPI Eina_Bool elm_win_autodel_get(const Evas_Object *obj);
69
+ [ :elm_win_autodel_get, [ :evas_object ], :bool ],
70
+ # EAPI void elm_win_activate(Evas_Object *obj);
71
+ [ :elm_win_activate, [ :evas_object ], :void ],
72
+ # EAPI void elm_win_lower(Evas_Object *obj);
73
+ [ :elm_win_lower, [ :evas_object ], :void ],
74
+ # EAPI void elm_win_raise(Evas_Object *obj);
75
+ [ :elm_win_raise, [ :evas_object ], :void ],
76
+ # EAPI void elm_win_center(Evas_Object *obj, Eina_Bool h, Eina_Bool v);
77
+ [ :elm_win_center, [ :evas_object, :bool, :bool ], :void ],
78
+ # EAPI void elm_win_borderless_set(Evas_Object *obj, Eina_Bool borderless);
79
+ [ :elm_win_borderless_set, [ :evas_object, :bool ], :void ],
80
+ # EAPI Eina_Bool elm_win_borderless_get(const Evas_Object *obj);
81
+ [ :elm_win_borderless_get, [ :evas_object ], :bool ],
82
+ # EAPI void elm_win_shaped_set(Evas_Object *obj, Eina_Bool shaped);
83
+ [ :elm_win_shaped_set, [ :evas_object, :bool ], :void ],
84
+ # EAPI Eina_Bool elm_win_shaped_get(const Evas_Object *obj);
85
+ [ :elm_win_shaped_get, [ :evas_object ], :bool ],
86
+ # EAPI void elm_win_alpha_set(Evas_Object *obj, Eina_Bool alpha);
87
+ [ :elm_win_alpha_set, [ :evas_object, :bool ], :void ],
88
+ # EAPI Eina_Bool elm_win_alpha_get(const Evas_Object *obj);
89
+ [ :elm_win_alpha_get, [ :evas_object ], :bool ],
90
+ # EAPI void elm_win_transparent_set(Evas_Object *obj, Eina_Bool transparent);
91
+ [ :elm_win_transparent_set, [ :evas_object, :bool ], :void ],
92
+ # EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj);
93
+ [ :elm_win_transparent_get, [ :evas_object ], :bool ],
94
+ # EAPI void elm_win_override_set(Evas_Object *obj, Eina_Bool override);
95
+ [ :elm_win_override_set, [ :evas_object, :bool ], :void ],
96
+ # EAPI Eina_Bool elm_win_override_get(const Evas_Object *obj);
97
+ [ :elm_win_override_get, [ :evas_object ], :bool ],
98
+ # EAPI void elm_win_fullscreen_set(Evas_Object *obj, Eina_Bool fullscreen);
99
+ [ :elm_win_fullscreen_set, [ :evas_object, :bool ], :void ],
100
+ # EAPI Eina_Bool elm_win_fullscreen_get(const Evas_Object *obj);
101
+ [ :elm_win_fullscreen_get, [ :evas_object ], :bool ],
102
+ # EAPI void elm_win_maximized_set(Evas_Object *obj, Eina_Bool maximized);
103
+ [ :elm_win_maximized_set, [ :evas_object, :bool ], :void ],
104
+ # EAPI Eina_Bool elm_win_maximized_get(const Evas_Object *obj);
105
+ [ :elm_win_maximized_get, [ :evas_object ], :bool ],
106
+ # EAPI void elm_win_iconified_set(Evas_Object *obj, Eina_Bool iconified);
107
+ [ :elm_win_iconified_set, [ :evas_object, :bool ], :void ],
108
+ # EAPI Eina_Bool elm_win_iconified_get(const Evas_Object *obj);
109
+ [ :elm_win_iconified_get, [ :evas_object ], :bool ],
110
+ # EAPI void elm_win_withdrawn_set(Evas_Object *obj, Eina_Bool withdrawn);
111
+ [ :elm_win_withdrawn_set, [ :evas_object, :bool ], :void ],
112
+ # EAPI Eina_Bool elm_win_withdrawn_get(const Evas_Object *obj);
113
+ [ :elm_win_withdrawn_get, [ :evas_object ], :bool ],
114
+ # EAPI void elm_win_urgent_set(Evas_Object *obj, Eina_Bool urgent);
115
+ [ :elm_win_urgent_set, [ :evas_object, :bool ], :void ],
116
+ # EAPI Eina_Bool elm_win_urgent_get(const Evas_Object *obj);
117
+ [ :elm_win_urgent_get, [ :evas_object ], :bool ],
118
+ # EAPI void elm_win_demand_attention_set(Evas_Object *obj, Eina_Bool demand_attention);
119
+ [ :elm_win_demand_attention_set, [ :evas_object, :bool ], :void ],
120
+ # EAPI Eina_Bool elm_win_demand_attention_get(const Evas_Object *obj);
121
+ [ :elm_win_demand_attention_get, [ :evas_object ], :bool ],
122
+ # EAPI void elm_win_modal_set(Evas_Object *obj, Eina_Bool modal);
123
+ [ :elm_win_modal_set, [ :evas_object, :bool ], :void ],
124
+ # EAPI Eina_Bool elm_win_modal_get(const Evas_Object *obj);
125
+ [ :elm_win_modal_get, [ :evas_object ], :bool ],
126
+ # EAPI void elm_win_aspect_set(Evas_Object *obj, double aspect);
127
+ [ :elm_win_aspect_set, [ :evas_object, :double ], :void ],
128
+ # EAPI double elm_win_aspect_get(const Evas_Object *obj);
129
+ [ :elm_win_aspect_get, [ :evas_object ], :double ],
130
+ # EAPI void elm_win_layer_set(Evas_Object *obj, int layer);
131
+ [ :elm_win_layer_set, [ :evas_object, :int ], :void ],
132
+ # EAPI int elm_win_layer_get(const Evas_Object *obj);
133
+ [ :elm_win_layer_get, [ :evas_object ], :int ],
134
+ # EAPI void elm_win_rotation_set(Evas_Object *obj, int rotation);
135
+ [ :elm_win_rotation_set, [ :evas_object, :int ], :void ],
136
+ # EAPI void elm_win_rotation_with_resize_set(Evas_Object *obj, int rotation);
137
+ [ :elm_win_rotation_with_resize_set, [ :evas_object, :int ], :void ],
138
+ # EAPI int elm_win_rotation_get(const Evas_Object *obj);
139
+ [ :elm_win_rotation_get, [ :evas_object ], :int ],
140
+ # EAPI void elm_win_sticky_set(Evas_Object *obj, Eina_Bool sticky);
141
+ [ :elm_win_sticky_set, [ :evas_object, :bool ], :void ],
142
+ # EAPI Eina_Bool elm_win_sticky_get(const Evas_Object *obj);
143
+ [ :elm_win_sticky_get, [ :evas_object ], :bool ],
144
+ # EAPI void elm_win_conformant_set(Evas_Object *obj, Eina_Bool conformant);
145
+ [ :elm_win_conformant_set, [ :evas_object, :bool ], :void ],
146
+ # EAPI Eina_Bool elm_win_conformant_get(const Evas_Object *obj);
147
+ [ :elm_win_conformant_get, [ :evas_object ], :bool ],
148
+ # EAPI void elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel);
149
+ [ :elm_win_quickpanel_set, [ :evas_object, :bool ], :void ],
150
+ # EAPI Eina_Bool elm_win_quickpanel_get(const Evas_Object *obj);
151
+ [ :elm_win_quickpanel_get, [ :evas_object ], :bool ],
152
+ # EAPI void elm_win_quickpanel_priority_major_set(Evas_Object *obj, int priority);
153
+ [ :elm_win_quickpanel_priority_major_set, [ :evas_object, :int ], :void ],
154
+ # EAPI int elm_win_quickpanel_priority_major_get(const Evas_Object *obj);
155
+ [ :elm_win_quickpanel_priority_major_get, [ :evas_object ], :int ],
156
+ # EAPI void elm_win_quickpanel_priority_minor_set(Evas_Object *obj, int priority);
157
+ [ :elm_win_quickpanel_priority_minor_set, [ :evas_object, :int ], :void ],
158
+ # EAPI int elm_win_quickpanel_priority_minor_get(const Evas_Object *obj);
159
+ [ :elm_win_quickpanel_priority_minor_get, [ :evas_object ], :int ],
160
+ # EAPI void elm_win_quickpanel_zone_set(Evas_Object *obj, int zone);
161
+ [ :elm_win_quickpanel_zone_set, [ :evas_object, :int ], :void ],
162
+ # EAPI int elm_win_quickpanel_zone_get(const Evas_Object *obj);
163
+ [ :elm_win_quickpanel_zone_get, [ :evas_object ], :int ],
164
+ # EAPI void elm_win_prop_focus_skip_set(Evas_Object *obj, Eina_Bool skip);
165
+ [ :elm_win_prop_focus_skip_set, [ :evas_object, :bool ], :void ],
166
+ # EAPI void elm_win_illume_command_send(Evas_Object *obj, Elm_Illume_Command command, void *params);
167
+ [ :elm_win_illume_command_send, [ :evas_object, :elm_illume_command, :pointer ], :void ],
168
+ # EAPI Evas_Object *elm_win_inlined_image_object_get(Evas_Object *obj);
169
+ [ :elm_win_inlined_image_object_get, [ :evas_object ], :evas_object ],
170
+ # EAPI Eina_Bool elm_win_focus_get(const Evas_Object *obj);
171
+ [ :elm_win_focus_get, [ :evas_object ], :bool ],
172
+ # EAPI void elm_win_screen_constrain_set(Evas_Object *obj, Eina_Bool constrain);
173
+ [ :elm_win_screen_constrain_set, [ :evas_object, :bool ], :void ],
174
+ # EAPI Eina_Bool elm_win_screen_constrain_get(Evas_Object *obj);
175
+ [ :elm_win_screen_constrain_get, [ :evas_object ], :bool ],
176
+ # EAPI void elm_win_screen_size_get(const Evas_Object *obj, int *x, int *y, int *w, int *h);
177
+ [ :elm_win_screen_size_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
178
+ # EAPI void elm_win_focus_highlight_enabled_set(Evas_Object *obj, Eina_Bool enabled);
179
+ [ :elm_win_focus_highlight_enabled_set, [ :evas_object, :bool ], :void ],
180
+ # EAPI Eina_Bool elm_win_focus_highlight_enabled_get(const Evas_Object *obj);
181
+ [ :elm_win_focus_highlight_enabled_get, [ :evas_object ], :bool ],
182
+ # EAPI void elm_win_focus_highlight_style_set(Evas_Object *obj, const char *style);
183
+ [ :elm_win_focus_highlight_style_set, [ :evas_object, :string ], :void ],
184
+ # EAPI const char *elm_win_focus_highlight_style_get(const Evas_Object *obj);
185
+ [ :elm_win_focus_highlight_style_get, [ :evas_object ], :string ],
186
+ # EAPI void elm_win_keyboard_mode_set(Evas_Object *obj, Elm_Win_Keyboard_Mode mode);
187
+ [ :elm_win_keyboard_mode_set, [ :evas_object, :elm_win_keyboard_mode ], :void ],
188
+ # EAPI Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(const Evas_Object *obj);
189
+ [ :elm_win_keyboard_mode_get, [ :evas_object ], :elm_win_keyboard_mode ],
190
+ # EAPI void elm_win_keyboard_win_set(Evas_Object *obj, Eina_Bool is_keyboard);
191
+ [ :elm_win_keyboard_win_set, [ :evas_object, :bool ], :void ],
192
+ # EAPI Eina_Bool elm_win_keyboard_win_get(const Evas_Object *obj);
193
+ [ :elm_win_keyboard_win_get, [ :evas_object ], :bool ],
194
+ # EAPI void elm_win_indicator_mode_set(Evas_Object *obj, Elm_Win_Indicator_Mode mode);
195
+ [ :elm_win_indicator_mode_set, [ :evas_object, :elm_win_indicator_mode ], :void ],
196
+ # EAPI Elm_Win_Indicator_Mode elm_win_indicator_mode_get(const Evas_Object *obj);
197
+ [ :elm_win_indicator_mode_get, [ :evas_object ], :elm_win_indicator_mode ],
198
+ # EAPI void elm_win_screen_position_get(const Evas_Object *obj, int *x, int *y);
199
+ [ :elm_win_screen_position_get, [ :evas_object, :pointer, :pointer ], :void ],
200
+ # EAPI Eina_Bool elm_win_socket_listen(Evas_Object *obj, const char *svcname, int svcnum, Eina_Bool svcsys);
201
+ [ :elm_win_socket_listen, [ :evas_object, :string, :int, :bool ], :bool ],
202
+ # EAPI Evas_Object *elm_win_inwin_add(Evas_Object *parent);
203
+ [ :elm_win_inwin_add, [ :evas_object ], :evas_object ],
204
+ # EAPI void elm_win_inwin_activate(Evas_Object *obj);
205
+ [ :elm_win_inwin_activate, [ :evas_object ], :void ],
206
+ # EAPI void elm_win_inwin_content_set(Evas_Object *obj, Evas_Object *content);
207
+ [ :elm_win_inwin_content_set, [ :evas_object, :evas_object ], :void ],
208
+ # EAPI Evas_Object *elm_win_inwin_content_get(const Evas_Object *obj);
209
+ [ :elm_win_inwin_content_get, [ :evas_object ], :evas_object ],
210
+ # EAPI Evas_Object *elm_win_inwin_content_unset(Evas_Object *obj);
211
+ [ :elm_win_inwin_content_unset, [ :evas_object ], :evas_object ],
212
+ # EAPI Ecore_X_Window elm_win_xwindow_get(const Evas_Object *obj);
213
+ [ :elm_win_xwindow_get, [ :evas_object ], :uint ],
214
+ ]
215
+ #
216
+ attach_fcts fcts
217
+ #
218
+ end
219
+ end
220
+ #
221
+ # EOF