diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 16:35:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 16:35:43 +0100 |
commit | 6c9e09c5e7d57353e079462d3d072a2594d04b81 (patch) | |
tree | 2aa7146904b0dcac212679075c25d0a657666557 | |
parent | a8fae94a3830af2de5a1b3be1bdf3eb558afd039 (diff) | |
download | ffi-efl-6c9e09c5e7d57353e079462d3d072a2594d04b81.zip ffi-efl-6c9e09c5e7d57353e079462d3d072a2594d04b81.tar.gz |
parse elm_colorselector.h, generate elm_colorselector.rb
-rw-r--r-- | lib/efl/elementary_all.rb | 1 | ||||
-rw-r--r-- | lib/efl/elm/elm_colorselector.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_colorselector.rb | 40 | ||||
-rwxr-xr-x | tools/extract-api.sh | 1 | ||||
-rwxr-xr-x | tools/genruby.rb | 5 |
5 files changed, 69 insertions, 0 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index c78b49b..64ee4d6 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -13,6 +13,7 @@ require 'efl/elm/elm_button' require 'efl/elm/elm_calendar' require 'efl/elm/elm_check' require 'efl/elm/elm_clock' +require 'efl/elm/elm_colorselector' require 'efl/elm/elm_cursor' require 'efl/elm/elm_diskselector' require 'efl/elm/elm_entry' diff --git a/lib/efl/elm/elm_colorselector.rb b/lib/efl/elm/elm_colorselector.rb new file mode 100644 index 0000000..e04ddeb --- /dev/null +++ b/lib/efl/elm/elm_colorselector.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_colorselector' +# +module Efl + # + module Elm + # + class ElmColorSelector < ElmObject + # + include Helper + constructor :elm_colorselector_add + search_prefixes 'elm_colorselector_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_colorselector.rb b/lib/efl/native/elm/elm_colorselector.rb new file mode 100644 index 0000000..0418901 --- /dev/null +++ b/lib/efl/native/elm/elm_colorselector.rb @@ -0,0 +1,40 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +require 'efl/native/elm/elm_scroller' +# +module Efl + # + module ElmColorSelector + # + FCT_PREFIX = 'elm_colorselector_' unless const_defined? :FCT_PREFIX + # + def self.method_missing meth, *args, &block + sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX + self.send sym, *args, &block + end + # + end + # + module Native + # + ffi_lib 'elementary-ver-pre-svn-09.so.0' + # + # FUNCTIONS + fcts = [ + # EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent); + [ :elm_colorselector_add, [ :evas_object ], :evas_object ], + # EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g, int b, int a); + [ :elm_colorselector_color_set, [ :evas_object, :int, :int, :int, :int ], :void ], + # EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a); + [ :elm_colorselector_color_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/extract-api.sh b/tools/extract-api.sh index b2b3882..03bddb1 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -72,6 +72,7 @@ for header in \ "${INCLUDE}/elementary-0/elm_flipselector.h" \ "${INCLUDE}/elementary-0/elm_diskselector.h" \ "${INCLUDE}/elementary-0/elm_hover.h" \ + "${INCLUDE}/elementary-0/elm_colorselector.h" \ ; do # if [ ! -e "$header" ]; then diff --git a/tools/genruby.rb b/tools/genruby.rb index fe4cf09..bdcb271 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -480,6 +480,11 @@ libs << { :modname=>'ElmHover', :prefix=>'elm_hover', :outfile=>'elm/elm_hover.rb', :requires=>["#{NATIVE}/elementary","#{NATIVE}/elm/elm_scroller"], :constants=>[] } +libs << { + :lib=>ELM_LIB,:header=>'elm_colorselector.h', + :modname=>'ElmColorSelector', :prefix=>'elm_colorselector', :outfile=>'elm/elm_colorselector.rb', + :requires=>["#{NATIVE}/elementary","#{NATIVE}/elm/elm_scroller"], :constants=>[] +} # Dir.mkdir lib_path unless (File.exists? lib_path) # |