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 /lib/efl/native/elm | |
parent | a8fae94a3830af2de5a1b3be1bdf3eb558afd039 (diff) | |
download | ffi-efl-6c9e09c5e7d57353e079462d3d072a2594d04b81.zip ffi-efl-6c9e09c5e7d57353e079462d3d072a2594d04b81.tar.gz |
parse elm_colorselector.h, generate elm_colorselector.rb
Diffstat (limited to 'lib/efl/native/elm')
-rw-r--r-- | lib/efl/native/elm/elm_colorselector.rb | 40 |
1 files changed, 40 insertions, 0 deletions
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 |