diff options
Diffstat (limited to 'lib/efl')
-rw-r--r-- | lib/efl/elementary_all.rb | 1 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_cache.rb | 59 |
2 files changed, 59 insertions, 1 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index c8c467d..1749649 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -14,7 +14,6 @@ require 'efl/elm/elm_bg' require 'efl/elm/elm_box' require 'efl/elm/elm_bubble' require 'efl/elm/elm_button' -#require 'efl/elm/elm_cache' require 'efl/elm/elm_calendar' require 'efl/elm/elm_check' require 'efl/elm/elm_clock' diff --git a/lib/efl/native/elm/elm_cache.rb b/lib/efl/native/elm/elm_cache.rb new file mode 100644 index 0000000..b3d51de --- /dev/null +++ b/lib/efl/native/elm/elm_cache.rb @@ -0,0 +1,59 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmCache + # + FCT_PREFIX = 'elm_cache_' 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 void elm_cache_all_flush(void); + [ :elm_cache_all_flush, [ ], :void ], + # EAPI int elm_cache_flush_interval_get(void); + [ :elm_cache_flush_interval_get, [ ], :int ], + # EAPI void elm_cache_flush_interval_set(int size); + [ :elm_cache_flush_interval_set, [ :int ], :void ], + # EAPI Eina_Bool elm_cache_flush_enabled_get(void); + [ :elm_cache_flush_enabled_get, [ ], :bool ], + # EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled); + [ :elm_cache_flush_enabled_set, [ :bool ], :void ], + # EAPI int elm_font_cache_get(void); + [ :elm_font_cache_get, [ ], :int ], + # EAPI void elm_font_cache_set(int size); + [ :elm_font_cache_set, [ :int ], :void ], + # EAPI int elm_image_cache_get(void); + [ :elm_image_cache_get, [ ], :int ], + # EAPI void elm_image_cache_set(int size); + [ :elm_image_cache_set, [ :int ], :void ], + # EAPI int elm_edje_file_cache_get(void); + [ :elm_edje_file_cache_get, [ ], :int ], + # EAPI void elm_edje_file_cache_set(int size); + [ :elm_edje_file_cache_set, [ :int ], :void ], + # EAPI int elm_edje_collection_cache_get(void); + [ :elm_edje_collection_cache_get, [ ], :int ], + # EAPI void elm_edje_collection_cache_set(int size); + [ :elm_edje_collection_cache_set, [ :int ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF |