diff options
-rw-r--r-- | lib/efl/elm/elm_frame.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_frame.rb | 45 | ||||
-rwxr-xr-x | tools/extract-api.sh | 1 | ||||
-rwxr-xr-x | tools/genruby.rb | 5 |
4 files changed, 73 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_frame.rb b/lib/efl/elm/elm_frame.rb new file mode 100644 index 0000000..f1eb7a7 --- /dev/null +++ b/lib/efl/elm/elm_frame.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_frame' +# +module Efl + # + module Elm + # + class ElmFrame < ElmObject + # + include Helper + constructor :elm_frame_add + search_prefixes 'elm_frame_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_frame.rb b/lib/efl/native/elm/elm_frame.rb new file mode 100644 index 0000000..e941b82 --- /dev/null +++ b/lib/efl/native/elm/elm_frame.rb @@ -0,0 +1,45 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmFrame + # + FCT_PREFIX = 'elm_frame_' 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_frame_add(Evas_Object *parent); + [ :elm_frame_add, [ :evas_object ], :evas_object ], + # EAPI void elm_frame_autocollapse_set(Evas_Object *obj, Eina_Bool autocollapse); + [ :elm_frame_autocollapse_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_frame_autocollapse_get(const Evas_Object *obj); + [ :elm_frame_autocollapse_get, [ :evas_object ], :bool ], + # EAPI void elm_frame_collapse_set(Evas_Object *obj, Eina_Bool collapse); + [ :elm_frame_collapse_set, [ :evas_object, :bool ], :void ], + # EAPI void elm_frame_collapse_go(Evas_Object *obj, Eina_Bool collapse); + [ :elm_frame_collapse_go, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_frame_collapse_get(const Evas_Object *obj); + [ :elm_frame_collapse_get, [ :evas_object ], :bool ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/extract-api.sh b/tools/extract-api.sh index 75b4076..39097a6 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -56,6 +56,7 @@ for header in \ "${INCLUDE}/elementary-0/elm_object.h" \ "${INCLUDE}/elementary-0/elm_box.h" \ "${INCLUDE}/elementary-0/elm_button.h" \ + "${INCLUDE}/elementary-0/elm_frame.h" \ ; do # if [ ! -e "$header" ]; then diff --git a/tools/genruby.rb b/tools/genruby.rb index 0874c59..f4d523d 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -400,6 +400,11 @@ libs << { :modname=>'ElmButton', :prefix=>'elm_button', :outfile=>'elm/elm_button.rb', :requires=>["#{NATIVE}/elementary"], :constants=>[] } +libs << { + :lib=>ELM_LIB,:header=>'elm_frame.h', + :modname=>'ElmFrame', :prefix=>'elm_frame', :outfile=>'elm/elm_frame.rb', + :requires=>["#{NATIVE}/elementary"], :constants=>[] +} Dir.mkdir lib_path unless (File.exists? lib_path) # libs.each do |lib| |