diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 11:24:04 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 11:24:04 +0100 |
commit | eb68fd362b069f40b9d93cc4b3524dbc13eef6a4 (patch) | |
tree | 7f6efa2cacca83181f2fb065162996a2442922fc | |
parent | 93d06a12fca5450e2ed161150f628bfcb3e40479 (diff) | |
download | ffi-efl-eb68fd362b069f40b9d93cc4b3524dbc13eef6a4.zip ffi-efl-eb68fd362b069f40b9d93cc4b3524dbc13eef6a4.tar.gz |
parse elm_pager.h, generate elm_pager.rb
-rw-r--r-- | lib/efl/elementary_all.rb | 2 | ||||
-rw-r--r-- | lib/efl/elm/elm_pager.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_pager.rb | 45 | ||||
-rwxr-xr-x | tools/genruby.rb | 2 |
4 files changed, 69 insertions, 2 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 7bf1dce..55257a0 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -63,7 +63,7 @@ require 'efl/elm/elm_multibuttonentry' require 'efl/elm/elm_naviframe' #require 'efl/elm/elm_need' require 'efl/elm/elm_notify' -#require 'efl/elm/elm_pager' +require 'efl/elm/elm_pager' require 'efl/elm/elm_panel' require 'efl/elm/elm_panes' #require 'efl/elm/elm_password' diff --git a/lib/efl/elm/elm_pager.rb b/lib/efl/elm/elm_pager.rb new file mode 100644 index 0000000..f11108d --- /dev/null +++ b/lib/efl/elm/elm_pager.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_pager' +# +module Efl + # + module Elm + # + class ElmPager < ElmObject + # + include Helper + constructor :elm_pager_add + search_prefixes 'elm_pager_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_pager.rb b/lib/efl/native/elm/elm_pager.rb new file mode 100644 index 0000000..2cd908d --- /dev/null +++ b/lib/efl/native/elm/elm_pager.rb @@ -0,0 +1,45 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmPager + # + FCT_PREFIX = 'elm_pager_' 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_pager_add(Evas_Object *parent); + [ :elm_pager_add, [ :evas_object ], :evas_object ], + # EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content); + [ :elm_pager_content_push, [ :evas_object, :evas_object ], :void ], + # EAPI void elm_pager_content_pop(Evas_Object *obj); + [ :elm_pager_content_pop, [ :evas_object ], :void ], + # EAPI void elm_pager_content_promote(Evas_Object *obj, Evas_Object *content); + [ :elm_pager_content_promote, [ :evas_object, :evas_object ], :void ], + # EAPI Evas_Object *elm_pager_content_bottom_get(const Evas_Object *obj); + [ :elm_pager_content_bottom_get, [ :evas_object ], :evas_object ], + # EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj); + [ :elm_pager_content_top_get, [ :evas_object ], :evas_object ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index 1042408..38cd6e7 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -418,7 +418,7 @@ libs << elm_h('elm_menu.h', 'ElmMenu') #libs << elm_h('elm_mirroring.h', 'ElmX') #libs << elm_h('elm_need.h', 'ElmX') libs << elm_h('elm_notify.h', 'ElmNotify') -#libs << elm_h('elm_pager.h', 'ElmX') +libs << elm_h('elm_pager.h', 'ElmPager') libs << elm_h('elm_panel.h', 'ElmPanel') libs << elm_h('elm_panes.h', 'ElmPanes') #libs << elm_h('elm_password.h', 'ElmX') |