ffi-efl 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/.gitignore +5 -0
  2. data/Changelog +4 -0
  3. data/MIT-LICENSE +2 -2
  4. data/{README.rdoc → README.md} +15 -13
  5. data/Rakefile +6 -57
  6. data/ffi-efl.gemspec +27 -0
  7. data/lib/efl.rb +1 -1
  8. data/lib/efl/evas.rb +1 -1
  9. data/lib/efl/native/ecore_evas.rb +8 -0
  10. data/lib/efl/native/edje.rb +6 -0
  11. data/lib/efl/native/eet.rb +4 -0
  12. data/lib/efl/native/elementary.rb +1 -1
  13. data/lib/efl/native/elm/elm_actionslider.rb +1 -1
  14. data/lib/efl/native/elm/elm_app.rb +1 -1
  15. data/lib/efl/native/elm/elm_bg.rb +1 -1
  16. data/lib/efl/native/elm/elm_box.rb +4 -4
  17. data/lib/efl/native/elm/elm_bubble.rb +1 -1
  18. data/lib/efl/native/elm/elm_button.rb +1 -1
  19. data/lib/efl/native/elm/elm_cache.rb +1 -1
  20. data/lib/efl/native/elm/elm_calendar.rb +19 -5
  21. data/lib/efl/native/elm/elm_check.rb +1 -1
  22. data/lib/efl/native/elm/elm_clock.rb +1 -1
  23. data/lib/efl/native/elm/elm_cnp.rb +1 -1
  24. data/lib/efl/native/elm/elm_colorselector.rb +7 -1
  25. data/lib/efl/native/elm/elm_config.rb +1 -1
  26. data/lib/efl/native/elm/elm_conform.rb +1 -1
  27. data/lib/efl/native/elm/elm_ctxpopup.rb +1 -1
  28. data/lib/efl/native/elm/elm_cursor.rb +1 -1
  29. data/lib/efl/native/elm/elm_datetime.rb +1 -1
  30. data/lib/efl/native/elm/elm_dayselector.rb +1 -1
  31. data/lib/efl/native/elm/elm_debug.rb +1 -1
  32. data/lib/efl/native/elm/elm_diskselector.rb +1 -1
  33. data/lib/efl/native/elm/elm_entry.rb +2 -2
  34. data/lib/efl/native/elm/elm_fileselector.rb +1 -1
  35. data/lib/efl/native/elm/elm_fileselector_button.rb +1 -1
  36. data/lib/efl/native/elm/elm_fileselector_entry.rb +1 -1
  37. data/lib/efl/native/elm/elm_finger.rb +1 -1
  38. data/lib/efl/native/elm/elm_flip.rb +1 -1
  39. data/lib/efl/native/elm/elm_flipselector.rb +1 -1
  40. data/lib/efl/native/elm/elm_focus.rb +1 -1
  41. data/lib/efl/native/elm/elm_frame.rb +1 -1
  42. data/lib/efl/native/elm/elm_gen.rb +1 -1
  43. data/lib/efl/native/elm/elm_general.rb +1 -1
  44. data/lib/efl/native/elm/elm_gengrid.rb +5 -1
  45. data/lib/efl/native/elm/elm_genlist.rb +2 -5
  46. data/lib/efl/native/elm/elm_gesture_layer.rb +3 -3
  47. data/lib/efl/native/elm/elm_glview.rb +1 -1
  48. data/lib/efl/native/elm/elm_grid.rb +1 -1
  49. data/lib/efl/native/elm/elm_hover.rb +1 -1
  50. data/lib/efl/native/elm/elm_hoversel.rb +1 -1
  51. data/lib/efl/native/elm/elm_icon.rb +1 -1
  52. data/lib/efl/native/elm/elm_image.rb +1 -1
  53. data/lib/efl/native/elm/elm_index.rb +1 -1
  54. data/lib/efl/native/elm/elm_label.rb +1 -1
  55. data/lib/efl/native/elm/elm_layout.rb +17 -1
  56. data/lib/efl/native/elm/elm_list.rb +5 -1
  57. data/lib/efl/native/elm/elm_map.rb +19 -6
  58. data/lib/efl/native/elm/elm_mapbuf.rb +1 -1
  59. data/lib/efl/native/elm/elm_menu.rb +1 -1
  60. data/lib/efl/native/elm/elm_mirroring.rb +1 -1
  61. data/lib/efl/native/elm/elm_multibuttonentry.rb +1 -1
  62. data/lib/efl/native/elm/elm_naviframe.rb +1 -1
  63. data/lib/efl/native/elm/elm_need.rb +1 -1
  64. data/lib/efl/native/elm/elm_notify.rb +1 -1
  65. data/lib/efl/native/elm/elm_object.rb +1 -1
  66. data/lib/efl/native/elm/elm_object_item.rb +1 -5
  67. data/lib/efl/native/elm/elm_panel.rb +1 -7
  68. data/lib/efl/native/elm/elm_panes.rb +1 -1
  69. data/lib/efl/native/elm/elm_photo.rb +1 -1
  70. data/lib/efl/native/elm/elm_photocam.rb +1 -1
  71. data/lib/efl/native/elm/elm_plug.rb +1 -1
  72. data/lib/efl/native/elm/elm_popup.rb +1 -1
  73. data/lib/efl/native/elm/elm_progressbar.rb +1 -1
  74. data/lib/efl/native/elm/elm_radio.rb +1 -1
  75. data/lib/efl/native/elm/elm_route.rb +1 -1
  76. data/lib/efl/native/elm/elm_scale.rb +1 -1
  77. data/lib/efl/native/elm/elm_scroll.rb +1 -1
  78. data/lib/efl/native/elm/elm_scroller.rb +1 -1
  79. data/lib/efl/native/elm/elm_segment_control.rb +1 -1
  80. data/lib/efl/native/elm/elm_separator.rb +1 -1
  81. data/lib/efl/native/elm/elm_slider.rb +3 -3
  82. data/lib/efl/native/elm/elm_slideshow.rb +1 -1
  83. data/lib/efl/native/elm/elm_spinner.rb +1 -1
  84. data/lib/efl/native/elm/elm_store.rb +1 -1
  85. data/lib/efl/native/elm/elm_table.rb +1 -1
  86. data/lib/efl/native/elm/elm_theme.rb +1 -1
  87. data/lib/efl/native/elm/elm_thumb.rb +1 -1
  88. data/lib/efl/native/elm/elm_toolbar.rb +1 -1
  89. data/lib/efl/native/elm/elm_tooltip.rb +1 -1
  90. data/lib/efl/native/elm/elm_transit.rb +1 -1
  91. data/lib/efl/native/elm/elm_video.rb +1 -1
  92. data/lib/efl/native/elm/elm_web.rb +3 -1
  93. data/lib/efl/native/elm/elm_win.rb +3 -3
  94. data/lib/efl/native/evas.rb +4 -2
  95. data/spec/elm_spec.rb +0 -11
  96. data/tools/check_loading +36 -0
  97. data/tools/check_specs +24 -0
  98. data/tools/extract-api.sh +157 -0
  99. data/tools/genruby.rb +501 -0
  100. data/tools/sed-callbacks +28 -0
  101. data/tools/sed-enums +41 -0
  102. data/tools/sed-functions +21 -0
  103. data/tools/sed-types +30 -0
  104. data/tools/sed-variables +9 -0
  105. metadata +67 -45
  106. data/lib/efl/native/elm/elm_fonts.rb +0 -50
  107. data/tasks/ann.rake +0 -83
  108. data/tasks/constants.rb +0 -118
  109. data/tasks/ffi.rake +0 -22
  110. data/tasks/gem.rake +0 -196
  111. data/tasks/git.rake +0 -38
  112. data/tasks/helpers.rb +0 -130
  113. data/tasks/notes.rake +0 -27
  114. data/tasks/post_load.rake +0 -35
  115. data/tasks/rdoc.rake +0 -46
  116. data/tasks/rubyforge.rake +0 -54
  117. data/tasks/setup.rb +0 -129
  118. data/tasks/spec.rake +0 -44
  119. data/tasks/svn.rake +0 -48
  120. data/tasks/test.rake +0 -41
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ tools/api*
2
+ tools/*diff
3
+ git*
4
+ .ditz-config
5
+ html
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 2012-03-08 Jérémy Zurcher <jeremy@asynk.ch>
2
+ * release 0.0.12
3
+ * elementary API freeze 2012.03.07
4
+
1
5
  2012-02-29 Jérémy Zurcher <jeremy@asynk.ch>
2
6
  * remove usage of autoload
3
7
  * efl.rb holds objects and method_missing helper code
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Jérémy Zurcher
1
+ Copyright (c) 2011-2012 Jérémy Zurcher
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to
@@ -13,6 +13,6 @@ all copies or substantial portions of the Software.
13
13
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
14
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
15
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16
- THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
17
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
18
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,16 +1,17 @@
1
- ffi-efl
1
+ # ffi-efl
2
2
  by Jérémy Zurcher
3
3
  http://asynk.ch
4
4
 
5
- == DESCRIPTION:
5
+ ## DESCRIPTION:
6
6
 
7
- A ruby-ffi binding to efl libraries (Enlightenment Foundation Libraries).
7
+ A ruby-ffi binding to [efl](http://www.enlightenment.org/p.php?p=docs&l=en) libraries (Enlightenment Foundation Libraries).
8
8
 
9
- == FEATURES/PROBLEMS:
9
+ ## FEATURES/PROBLEMS:
10
10
 
11
11
  * pretty young project ...
12
+ * binding is complete but lacks ruby code and tests
12
13
 
13
- == SYNOPSIS:
14
+ ## SYNOPSIS:
14
15
 
15
16
  require 'efl/elm/elm_win'
16
17
  require 'efl/elm/elm_bg'
@@ -60,14 +61,15 @@ A ruby-ffi binding to efl libraries (Enlightenment Foundation Libraries).
60
61
 
61
62
  For more examples you may look at:
62
63
 
63
- * the spec/[https://github.com/jeremyz/ffi-efl/tree/master/spec] and test/[https://github.com/jeremyz/ffi-efl/tree/master/test] folders
64
+ * the [spec/](https://github.com/jeremyz/ffi-efl/tree/master/spec) and [test/](https://github.com/jeremyz/ffi-efl/tree/master/test) folders
64
65
 
65
- == REQUIREMENTS:
66
+ ## REQUIREMENTS:
66
67
 
67
68
  * You need a sane enlightenment foundation libraries installation,
68
- for this you might like to use easy_e17.sh[http://omicron.homeip.net/projects/#easy_e17.sh].
69
+ for this you might like to use [easy_e17.sh](http://omicron.homeip.net/projects/#easy_e17.sh),
70
+ or my git aware fork [easy_e17.sh](https://github.com/jeremyz/bin/blob/master/easy_e17.sh).
69
71
 
70
- == DOWNLOAD/INSTALL:
72
+ ## DOWNLOAD/INSTALL:
71
73
 
72
74
  From rubygems:
73
75
 
@@ -79,7 +81,7 @@ or from the git repository on github:
79
81
  cd ffi-efl
80
82
  rake gem:install
81
83
 
82
- == RESOURCES:
84
+ ## RESOURCES:
83
85
 
84
86
  You can find this project in a few places:
85
87
 
@@ -92,13 +94,13 @@ Gem:
92
94
 
93
95
  * https://rubygems.org/gems/ffi-efl
94
96
 
95
- == CREDITS:
97
+ ## CREDITS:
96
98
 
97
99
  Special thanks to:
98
100
 
99
101
  * Lionel Orry
100
102
  * The enlightenment team
101
103
 
102
- == LICENSE:
104
+ ## LICENSE:
103
105
 
104
- See MIT-LICENSE file.
106
+ [MIT](http://www.opensource.org/licenses/MIT) see [MIT_LICENSE](https://github.com/jeremyz/ffi-efl/blob/master/MIT-LICENSE)
data/Rakefile CHANGED
@@ -1,57 +1,6 @@
1
- # -*- coding: UTF-8 -*-
2
- #
3
- require './lib/efl.rb'
4
- load './tasks/setup.rb'
5
- #
6
- # Project general information
7
- PROJ.name = 'ffi-efl'
8
- PROJ.authors = 'Jérémy Zurcher'
9
- PROJ.email = 'jeremy@asynk.ch'
10
- PROJ.url = 'https://github.com/jeremyz/ffi-efl'
11
- PROJ.version = Efl::VERSION
12
- PROJ.rubyforge.name = 'ffi-efl'
13
- PROJ.readme_file = 'README.rdoc'
14
- #
15
- # Annoucement
16
- PROJ.ann.paragraphs << 'FEATURES' << 'SYNOPSIS' << 'REQUIREMENTS' << 'DOWNLOAD/INSTALL' << 'CREDITS' << 'LICENSE'
17
- PROJ.ann.email[:from] = 'jeremy@asynk.ch'
18
- PROJ.ann.email[:to] = ['FIXME']
19
- PROJ.ann.email[:server] = 'localhost'
20
- PROJ.ann.email[:tls] = false
21
- # Gem specifications
22
- PROJ.gem.need_tar = false
23
- PROJ.gem.files = %w(Changelog MIT-LICENSE README.rdoc Rakefile) + Dir.glob("{ext,lib,spec,tasks}/**/*[^~]").reject { |fn| test ?d, fn }
24
- PROJ.gem.platform = Gem::Platform::RUBY
25
- PROJ.gem.required_ruby_version = ">= 1.9.2"
26
- #
27
- # Override Mr. Bones autogenerated extensions and force ours in
28
- #PROJ.gem.extras['extensions'] = %w(ext/extconf.rb)
29
- #PROJ.gem.extras['required_ruby_version'] = ">= 1.9.2"
30
- #
31
- # RDoc
32
- PROJ.rdoc.exclude << '^ext\/'
33
- PROJ.rdoc.opts << '-x' << 'ext'
34
- #
35
- # Ruby
36
- PROJ.ruby_opts = []
37
- PROJ.ruby_opts << '-I' << 'lib'
38
- #
39
- # RSpec
40
- PROJ.spec.files.exclude /rbx/
41
- PROJ.spec.opts << '--color'
42
- #
43
- # Rcov
44
- PROJ.rcov.opts << '-I lib'
45
- #
46
- # Dependencies
47
- depend_on 'ffi', '>=1.0.2'
48
- #
49
- task :default => [:spec]
50
- #
51
- desc "Build all packages"
52
- task :package => 'gem:package'
53
- #
54
- desc "Install the gem locally"
55
- task :install => 'gem:install'
56
- #
57
- # EOF
1
+ require 'bundler/gem_tasks'
2
+
3
+ require 'rspec/core/rake_task'
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :default => :spec
data/ffi-efl.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ #! /usr/bin/env ruby
2
+ # -*- coding: UTF-8 -*-
3
+ #
4
+ $:.push File.expand_path("../lib", __FILE__)
5
+ require 'efl'
6
+ #
7
+ Gem::Specification.new do |s|
8
+ s.name = "ffi-efl"
9
+ s.version = Efl::VERSION
10
+ s.authors = ["Jérémy Zurcher"]
11
+ s.email = ["jeremy@asynk.ch"]
12
+ s.homepage = "http://github.com/jeremyz/ffi-efl"
13
+ s.summary = %q{A ruby-ffi binding to efl libraries (Enlightenment Foundation Libraries).}
14
+ s.description = %q{It covers most of eina, eet, evas, ecore, emap, elementary.
15
+ Prototypes are extracted from C headers with sed scripts. FFI calls are generated with a ruby script.}
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_runtime_dependency "ffi"
23
+ s.add_development_dependency "rspec", ["~> 2.6"]
24
+ s.add_development_dependency "rake"
25
+ end
26
+ #
27
+ # EOF
data/lib/efl.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  module Efl
5
5
  #
6
- VERSION = '0.0.12'
6
+ VERSION = '0.0.13'
7
7
  #
8
8
  module MethodResolver
9
9
  def self.resolve mod, meth, prefix
data/lib/efl/evas.rb CHANGED
@@ -188,7 +188,7 @@ module Efl
188
188
  alias :center :center_get
189
189
  def center_set x, y
190
190
  g = geometry_get
191
- move x-(g[2]/2.0), y-(g[3]/2.0)
191
+ move (x-(g[2]/2.0)).to_i, (y-(g[3]/2.0)).to_i
192
192
  end
193
193
  alias :center= :center_set
194
194
  def size
@@ -276,6 +276,14 @@ module Efl
276
276
  [ :ecore_evas_wayland_egl_new, [ :string, :uint, :int, :int, :int, :int, :bool ], :ecore_evas ],
277
277
  # EAPI void ecore_evas_wayland_resize(Ecore_Evas *ee, int location);
278
278
  [ :ecore_evas_wayland_resize, [ :ecore_evas, :int ], :void ],
279
+ # EAPI void ecore_evas_wayland_move(Ecore_Evas *ee, int x, int y);
280
+ [ :ecore_evas_wayland_move, [ :ecore_evas, :int, :int ], :void ],
281
+ # EAPI void ecore_evas_wayland_pointer_set(Ecore_Evas *ee, int hot_x, int hot_y);
282
+ [ :ecore_evas_wayland_pointer_set, [ :ecore_evas, :int, :int ], :void ],
283
+ # EAPI void ecore_evas_wayland_type_set(Ecore_Evas *ee, int type);
284
+ [ :ecore_evas_wayland_type_set, [ :ecore_evas, :int ], :void ],
285
+ # EAPI Ecore_Wl_Window *ecore_evas_wayland_window_get(const Ecore_Evas *ee);
286
+ [ :ecore_evas_wayland_window_get, [ :ecore_evas ], :ecore_wl_window ],
279
287
  # EAPI Ecore_Evas *ecore_evas_buffer_new(int w, int h);
280
288
  [ :ecore_evas_buffer_new, [ :int, :int ], :ecore_evas ],
281
289
  # EAPI Ecore_Evas *ecore_evas_buffer_allocfunc_new(int w, int h, void *(*alloc_func) (void *data, int size), void (*free_func) (void *data, void *pix), const void *data);
@@ -270,6 +270,10 @@ module Efl
270
270
  [ :edje_object_text_class_set, [ :evas_object, :string, :string, :int ], :bool ],
271
271
  # EAPI void edje_object_size_min_get (const Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh);
272
272
  [ :edje_object_size_min_get, [ :evas_object, :pointer, :pointer ], :void ],
273
+ # EAPI void edje_object_update_hints_set(Evas_Object *obj, Eina_Bool update);
274
+ [ :edje_object_update_hints_set, [ :evas_object, :bool ], :void ],
275
+ # EAPI Eina_Bool edje_object_update_hints_get(Evas_Object *obj);
276
+ [ :edje_object_update_hints_get, [ :evas_object ], :bool ],
273
277
  # EAPI void edje_object_size_max_get (const Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh);
274
278
  [ :edje_object_size_max_get, [ :evas_object, :pointer, :pointer ], :void ],
275
279
  # EAPI void edje_object_calc_force (Evas_Object *obj);
@@ -292,6 +296,8 @@ module Efl
292
296
  [ :edje_object_text_change_cb_set, [ :evas_object, :edje_text_change_cb, :pointer ], :void ],
293
297
  # EAPI Eina_Bool edje_object_part_text_set (Evas_Object *obj, const char *part, const char *text);
294
298
  [ :edje_object_part_text_set, [ :evas_object, :string, :string ], :bool ],
299
+ # EAPI Eina_Bool edje_object_part_text_escaped_set (Evas_Object *obj, const char *part, const char *text);
300
+ [ :edje_object_part_text_escaped_set, [ :evas_object, :string, :string ], :bool ],
295
301
  # EAPI const char *edje_object_part_text_get (const Evas_Object *obj, const char *part);
296
302
  [ :edje_object_part_text_get, [ :evas_object, :string ], :string ],
297
303
  # EAPI void edje_object_part_text_style_user_push(Evas_Object *obj, const char *part, const char *style);
@@ -29,6 +29,10 @@ module Efl
29
29
  :eet_error_write_error_file_closed, :eet_error_mmap_failed, :eet_error_x509_encoding_failed, :eet_error_signature_failed,
30
30
  :eet_error_invalid_signature, :eet_error_not_signed, :eet_error_not_implemented, :eet_error_prng_not_seeded, :eet_error_encrypt_failed,
31
31
  :eet_error_decrypt_failed ]
32
+ # typedef enum _Eet_Compression {...} Eet_Compression;
33
+ enum :eet_compression, [ :eet_compression_none, 0, :eet_compression_default, 1, :eet_compression_low, 2, :eet_compression_med, 6,
34
+ :eet_compression_hi, 9, :eet_compression_veryfast, 10, :eet_compression_superfast, 11, :eet_compression_low2, 3, :eet_compression_med1, 4,
35
+ :eet_compression_med2, 5, :eet_compression_hi1, 7, :eet_compression_hi2, 8 ]
32
36
  # typedef enum _Eet_File_Mode {...} Eet_File_Mode;
33
37
  enum :eet_file_mode, [ :eet_file_mode_invalid, -1, :eet_file_mode_read, 0, :eet_file_mode_write, 1, :eet_file_mode_read_write, 2 ]
34
38
  #
@@ -20,7 +20,7 @@ module Efl
20
20
  #
21
21
  module Native
22
22
  #
23
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
23
+ ffi_lib 'elementary'
24
24
  #
25
25
  # TYPEDEFS
26
26
  # typedef struct _Elm_Version Elm_Version;
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} Elm_Actionslider_Pos;
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # FUNCTIONS
25
25
  fcts = [
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} Elm_Bg_Option;
@@ -20,7 +20,7 @@ module Efl
20
20
  #
21
21
  module Native
22
22
  #
23
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
23
+ ffi_lib 'elementary'
24
24
  #
25
25
  # TYPEDEFS
26
26
  # typedef struct _Elm_Box_Transition Elm_Box_Transition;
@@ -68,9 +68,9 @@ module Efl
68
68
  [ :elm_box_layout_set, [ :evas_object, :evas_object_box_layout_cb, :pointer, :ecore_cb ], :void ],
69
69
  # EAPI void elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data);
70
70
  [ :elm_box_layout_transition, [ :evas_object, :evas_object_box_data, :pointer ], :void ],
71
- # EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, void (*start_layout_free_data)(void *data), Evas_Object_Box_Layout end_layout, void *end_layout_data, Ecore_Cb end_layout_free_data, Ecore_Cb transition_end_cb, void *transition_end_data);
72
- [ :elm_box_transition_new, [ :double, :evas_object_box_layout_cb, :pointer, :ecore_cb,
73
- :evas_object_box_layout_cb, :pointer, :ecore_cb, :ecore_cb, :pointer ], :elm_box_transition ],
71
+ # EAPI Elm_Box_Transition *elm_box_transition_new(const double duration, Evas_Object_Box_Layout start_layout, void *start_layout_data, Ecore_Cb start_layout_free_data, Evas_Object_Box_Layout end_layout, void *end_layout_data, Ecore_Cb end_layout_free_data, Ecore_Cb transition_end_cb, void *transition_end_data);
72
+ [ :elm_box_transition_new, [ :double, :evas_object_box_layout_cb, :pointer, :ecore_cb, :evas_object_box_layout_cb, :pointer, :ecore_cb,
73
+ :ecore_cb, :pointer ], :elm_box_transition ],
74
74
  # EAPI void elm_box_transition_free(void *data);
75
75
  [ :elm_box_transition_free, [ :pointer ], :void ],
76
76
  ]
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} Elm_Bubble_Pos;
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # FUNCTIONS
25
25
  fcts = [
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # FUNCTIONS
25
25
  fcts = [
@@ -19,16 +19,26 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} _Elm_Calendar_Mark_Repeat_Type;
26
26
  enum :_elm_calendar_mark_repeat_type, [ :elm_calendar_unique, :elm_calendar_daily, :elm_calendar_weekly, :elm_calendar_monthly,
27
27
  :elm_calendar_annually ]
28
+ # typedef enum {...} _Elm_Calendar_Weekday;
29
+ enum :_elm_calendar_weekday, [ :elm_day_sunday, :elm_day_monday, :elm_day_tuesday, :elm_day_wednesday, :elm_day_thursday, :elm_day_friday,
30
+ :elm_day_saturday, :elm_day_last ]
31
+ # typedef enum {...} _Elm_Calendar_Select_Mode;
32
+ enum :_elm_calendar_select_mode, [ :elm_calendar_select_mode_default, 0, :elm_calendar_select_mode_always, 1, :elm_calendar_select_mode_none,
33
+ 2, :elm_calendar_select_mode_ondemand, 3 ]
28
34
  #
29
35
  # TYPEDEFS
30
36
  # typedef _Elm_Calendar_Mark_Repeat_Type Elm_Calendar_Mark_Repeat_Type;
31
37
  typedef :_elm_calendar_mark_repeat_type, :elm_calendar_mark_repeat_type
38
+ # typedef _Elm_Calendar_Weekday Elm_Calendar_Weekday;
39
+ typedef :_elm_calendar_weekday, :elm_calendar_weekday
40
+ # typedef _Elm_Calendar_Select_Mode Elm_Calendar_Select_Mode;
41
+ typedef :_elm_calendar_select_mode, :elm_calendar_select_mode
32
42
  # typedef struct _Elm_Calendar_Mark Elm_Calendar_Mark;
33
43
  typedef :pointer, :elm_calendar_mark
34
44
  #
@@ -48,10 +58,10 @@ module Efl
48
58
  [ :elm_calendar_min_max_year_set, [ :evas_object, :int, :int ], :void ],
49
59
  # EAPI void elm_calendar_min_max_year_get(const Evas_Object *obj, int *min, int *max);
50
60
  [ :elm_calendar_min_max_year_get, [ :evas_object, :pointer, :pointer ], :void ],
51
- # EAPI void elm_calendar_day_selection_disabled_set(Evas_Object *obj, Eina_Bool disabled);
52
- [ :elm_calendar_day_selection_disabled_set, [ :evas_object, :bool ], :void ],
53
- # EAPI Eina_Bool elm_calendar_day_selection_disabled_get(const Evas_Object *obj);
54
- [ :elm_calendar_day_selection_disabled_get, [ :evas_object ], :bool ],
61
+ # EAPI void elm_calendar_select_mode_set(Evas_Object *obj, Elm_Calendar_Select_Mode mode);
62
+ [ :elm_calendar_select_mode_set, [ :evas_object, :_elm_calendar_select_mode ], :void ],
63
+ # EAPI Elm_Calendar_Select_Mode elm_calendar_select_mode_get(const Evas_Object *obj);
64
+ [ :elm_calendar_select_mode_get, [ :evas_object ], :_elm_calendar_select_mode ],
55
65
  # EAPI void elm_calendar_selected_time_set(Evas_Object *obj, struct tm *selected_time);
56
66
  [ :elm_calendar_selected_time_set, [ :evas_object, :pointer ], :void ],
57
67
  # EAPI Eina_Bool elm_calendar_selected_time_get(const Evas_Object *obj, struct tm *selected_time);
@@ -72,6 +82,10 @@ module Efl
72
82
  [ :elm_calendar_interval_set, [ :evas_object, :double ], :void ],
73
83
  # EAPI double elm_calendar_interval_get(const Evas_Object *obj);
74
84
  [ :elm_calendar_interval_get, [ :evas_object ], :double ],
85
+ # EAPI void elm_calendar_first_day_of_week_set(Evas_Object *obj, Elm_Calendar_Weekday day);
86
+ [ :elm_calendar_first_day_of_week_set, [ :evas_object, :_elm_calendar_weekday ], :void ],
87
+ # EAPI Elm_Calendar_Weekday elm_calendar_first_day_of_week_get(const Evas_Object *obj);
88
+ [ :elm_calendar_first_day_of_week_get, [ :evas_object ], :_elm_calendar_weekday ],
75
89
  ]
76
90
  #
77
91
  attach_fcts fcts
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # FUNCTIONS
25
25
  fcts = [
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} Elm_Clock_Edit_Mode;
@@ -19,7 +19,7 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} Elm_Sel_Type;
@@ -19,12 +19,18 @@ module Efl
19
19
  #
20
20
  module Native
21
21
  #
22
- ffi_lib 'elementary-ver-pre-svn-09.so.0'
22
+ ffi_lib 'elementary'
23
23
  #
24
24
  # ENUMS
25
25
  # typedef enum {...} Elm_Colorselector_Mode;
26
26
  enum :elm_colorselector_mode, [ :elm_colorselector_palette, 0, :elm_colorselector_components, 1, :elm_colorselector_both, 2 ]
27
27
  #
28
+ # TYPEDEFS
29
+ # typedef struct _Elm_Color_RGBA Elm_Color_RGBA;
30
+ typedef :pointer, :elm_color_rgba
31
+ # typedef struct _Elm_Custom_Palette Elm_Custom_Palette;
32
+ typedef :pointer, :elm_custom_palette
33
+ #
28
34
  # FUNCTIONS
29
35
  fcts = [
30
36
  # EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent);