diff options
Diffstat (limited to 'lib/efl/native')
-rw-r--r-- | lib/efl/native/elm/elm_route.rb | 41 |
1 files changed, 41 insertions, 0 deletions
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 |