diff options
Diffstat (limited to 'lib/efl')
-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 |
3 files changed, 70 insertions, 1 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 |