diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 15:08:12 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 15:08:12 +0100 |
commit | 46fffe2653b79348c9ba8f128811b2d922c0e908 (patch) | |
tree | 3c97612a03ab401719e4bc0c3918432b7bc10ac3 | |
parent | dbdf77af301e352e59ad558848f43c361b656045 (diff) | |
download | ffi-efl-46fffe2653b79348c9ba8f128811b2d922c0e908.zip ffi-efl-46fffe2653b79348c9ba8f128811b2d922c0e908.tar.gz |
parse elm_route.h, generate elm_route.rb
-rw-r--r-- | lib/efl/elementary_all.rb | 2 | ||||
-rw-r--r-- | lib/efl/elm/elm_route.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_route.rb | 41 | ||||
-rwxr-xr-x | tools/genruby.rb | 2 |
4 files changed, 65 insertions, 2 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 0ffc4dd..7dae092 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -68,7 +68,7 @@ require 'efl/elm/elm_photo' #require 'efl/elm/elm_plug' require 'efl/elm/elm_progressbar' require 'efl/elm/elm_radio' -#require 'efl/elm/elm_route' +require 'efl/elm/elm_route' require 'efl/elm/elm_scale' require 'efl/elm/elm_scroll' require 'efl/elm/elm_scroller' diff --git a/lib/efl/elm/elm_route.rb b/lib/efl/elm/elm_route.rb new file mode 100644 index 0000000..1e501f5 --- /dev/null +++ b/lib/efl/elm/elm_route.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_route' +# +module Efl + # + module Elm + # + class ElmRoute < ElmObject + # + include Helper + constructor :elm_route_add + search_prefixes 'elm_route_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_route.rb b/lib/efl/native/elm/elm_route.rb new file mode 100644 index 0000000..706675c --- /dev/null +++ b/lib/efl/native/elm/elm_route.rb @@ -0,0 +1,41 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmRoute + # + FCT_PREFIX = 'elm_route_' 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_route_add(Evas_Object *parent); + [ :elm_route_add, [ :evas_object ], :evas_object ], + # EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap); + [ :elm_route_emap_set, [ :evas_object, :emap_route ], :void ], + # EAPI void elm_route_longitude_min_max_get(const Evas_Object *obj, double *min, double *max); + [ :elm_route_longitude_min_max_get, [ :evas_object, :pointer, :pointer ], :void ], + # EAPI void elm_route_latitude_min_max_get(const Evas_Object *obj, double *min, double *max); + [ :elm_route_latitude_min_max_get, [ :evas_object, :pointer, :pointer ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 711f671..faa2e42 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -424,7 +424,7 @@ libs << elm_h('elm_photo.h', 'ElmPhoto') #libs << elm_h('elm_plug.h', 'ElmPlug') libs << elm_h('elm_progressbar.h', 'ElmProgressBar') libs << elm_h('elm_radio.h', 'ElmRadio') -#libs << elm_h('elm_route.h', 'ElmRoute') +libs << elm_h('elm_route.h', 'ElmRoute') libs << elm_h('elm_scale.h', 'ElmScale') libs << elm_h('elm_scroll.h', 'ElmScroll') #libs << elm_h('elm_segment_control.h', 'ElmSegmentControl') |