diff options
| -rw-r--r-- | lib/efl/elementary_all.rb | 2 | ||||
| -rw-r--r-- | lib/efl/elm/elm_mapbuf.rb | 22 | ||||
| -rw-r--r-- | lib/efl/native/elm/elm_mapbuf.rb | 47 | ||||
| -rwxr-xr-x | tools/genruby.rb | 2 | 
4 files changed, 71 insertions, 2 deletions
| diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index b6743f8..b321ff9 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -48,7 +48,7 @@ require 'efl/elm/elm_index'  require 'efl/elm/elm_label'  require 'efl/elm/elm_layout'  require 'efl/elm/elm_list' -#require 'efl/elm/elm_mapbuf' +require 'efl/elm/elm_mapbuf'  require 'efl/elm/elm_map'  require 'efl/elm/elm_menu'  require 'efl/elm/elm_mirroring' diff --git a/lib/efl/elm/elm_mapbuf.rb b/lib/efl/elm/elm_mapbuf.rb new file mode 100644 index 0000000..d4b5108 --- /dev/null +++ b/lib/efl/elm/elm_mapbuf.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_mapbuf' +# +module Efl +    # +    module Elm +        # +        class ElmMapBuf < ElmObject +            # +            include Helper +            constructor :elm_mapbuf_add +            search_prefixes 'elm_mapbuf_' +            # +        end +        # +    end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_mapbuf.rb b/lib/efl/native/elm/elm_mapbuf.rb new file mode 100644 index 0000000..2a78f17 --- /dev/null +++ b/lib/efl/native/elm/elm_mapbuf.rb @@ -0,0 +1,47 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl +    # +    module ElmMapBuf +        # +        FCT_PREFIX = 'elm_mapbuf_' 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_mapbuf_add(Evas_Object *parent); +        [ :elm_mapbuf_add, [ :evas_object ], :evas_object ], +        # EAPI void elm_mapbuf_enabled_set(Evas_Object *obj, Eina_Bool enabled); +        [ :elm_mapbuf_enabled_set, [ :evas_object, :bool ], :void ], +        # EAPI Eina_Bool elm_mapbuf_enabled_get(const Evas_Object *obj); +        [ :elm_mapbuf_enabled_get, [ :evas_object ], :bool ], +        # EAPI void elm_mapbuf_smooth_set(Evas_Object *obj, Eina_Bool smooth); +        [ :elm_mapbuf_smooth_set, [ :evas_object, :bool ], :void ], +        # EAPI Eina_Bool elm_mapbuf_smooth_get(const Evas_Object *obj); +        [ :elm_mapbuf_smooth_get, [ :evas_object ], :bool ], +        # EAPI void elm_mapbuf_alpha_set(Evas_Object *obj, Eina_Bool alpha); +        [ :elm_mapbuf_alpha_set, [ :evas_object, :bool ], :void ], +        # EAPI Eina_Bool elm_mapbuf_alpha_get(const Evas_Object *obj); +        [ :elm_mapbuf_alpha_get, [ :evas_object ], :bool ], +        ] +        # +        attach_fcts fcts +        # +    end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 1aebcbc..81a5447 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -409,7 +409,7 @@ libs << elm_h('elm_image.h', 'ElmImage')  libs << elm_h('elm_index.h', 'ElmIndex')  libs << elm_h('elm_label.h', 'ElmLabel', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_entry"])  libs << elm_h('elm_layout.h', 'ElmLayout') -#libs << elm_h('elm_mapbuf.h', 'ElmMapBuf') +libs << elm_h('elm_mapbuf.h', 'ElmMapBuf')  libs << elm_h('elm_map.h', 'ElmMap', ["#{NATIVE}/emap","#{NATIVE}/elementary"])  libs << elm_h('elm_menu.h', 'ElmMenu')  libs << elm_h('elm_mirroring.h', 'ElmMirroring') | 
