diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 10:41:50 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 10:41:50 +0100 |
commit | 67f0698ea72f83eb9a6b0a76db4e3b8b627f1c90 (patch) | |
tree | 9ee55fa8435005f32a9cad1148154468f18246a4 | |
parent | c6d48d99f3e91597602e39f79fd008f11894f869 (diff) | |
download | ffi-efl-67f0698ea72f83eb9a6b0a76db4e3b8b627f1c90.zip ffi-efl-67f0698ea72f83eb9a6b0a76db4e3b8b627f1c90.tar.gz |
parse elm_actionslider.h, generate elm_actionslider.rb
-rw-r--r-- | lib/efl/elementary_all.rb | 2 | ||||
-rw-r--r-- | lib/efl/elm/elm_actionslider.rb | 22 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_actionslider.rb | 54 | ||||
-rwxr-xr-x | tools/genruby.rb | 2 |
4 files changed, 78 insertions, 2 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 47d800e..a656af6 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -7,7 +7,7 @@ require 'efl/elm/elm_tooltip' require 'efl/elm/elm_object' require 'efl/elm/elm_object_item' # -#require 'efl/elm/elm_actionslider' +require 'efl/elm/elm_actionslider' require 'efl/elm/elm_anchorblock' require 'efl/elm/elm_anchorview' #require 'efl/elm/elm_app' diff --git a/lib/efl/elm/elm_actionslider.rb b/lib/efl/elm/elm_actionslider.rb new file mode 100644 index 0000000..916e52b --- /dev/null +++ b/lib/efl/elm/elm_actionslider.rb @@ -0,0 +1,22 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_actionslider' +# +module Efl + # + module Elm + # + class ElmActionSlider < ElmObject + # + include Helper + constructor :elm_actionslider_add + search_prefixes 'elm_actionslider_' + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_actionslider.rb b/lib/efl/native/elm/elm_actionslider.rb new file mode 100644 index 0000000..6e38734 --- /dev/null +++ b/lib/efl/native/elm/elm_actionslider.rb @@ -0,0 +1,54 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmActionSlider + # + FCT_PREFIX = 'elm_actionslider_' 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' + # + # ENUMS + # typedef enum {...} Elm_Actionslider_Pos; + enum :elm_actionslider_pos, [ :elm_actionslider_none, 0, :elm_actionslider_left, 1<<0, :elm_actionslider_center, 1<<1, + :elm_actionslider_right, 1<<2, :elm_actionslider_all, (1<<3)-1 ] + # + # FUNCTIONS + fcts = [ + # EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent); + [ :elm_actionslider_add, [ :evas_object ], :evas_object ], + # EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj); + [ :elm_actionslider_selected_label_get, [ :evas_object ], :string ], + # EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos); + [ :elm_actionslider_indicator_pos_set, [ :evas_object, :elm_actionslider_pos ], :void ], + # EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj); + [ :elm_actionslider_indicator_pos_get, [ :evas_object ], :elm_actionslider_pos ], + # EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos); + [ :elm_actionslider_magnet_pos_set, [ :evas_object, :elm_actionslider_pos ], :void ], + # EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj); + [ :elm_actionslider_magnet_pos_get, [ :evas_object ], :elm_actionslider_pos ], + # EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos); + [ :elm_actionslider_enabled_pos_set, [ :evas_object, :elm_actionslider_pos ], :void ], + # EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj); + [ :elm_actionslider_enabled_pos_get, [ :evas_object ], :elm_actionslider_pos ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/genruby.rb b/tools/genruby.rb index c0fa0c1..043f80b 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -374,7 +374,7 @@ libs << elm_h('elc_fileselector.h', 'ElmFileSelector') libs << elm_h('elc_hoversel.h', 'ElmHoverSel', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_icon"]) #libs << elm_h('elc_multibuttonentry.h', 'ElmX') #libs << elm_h('elc_naviframe.h', 'ElmX') -#libs << elm_h('elm_actionslider.h', 'ElmX') +libs << elm_h('elm_actionslider.h', 'ElmActionSlider') #libs << elm_h('elm_app.h', 'ElmX') #libs << elm_h('elm_authors.h', 'ElmX') libs << elm_h('elm_bg.h', 'ElmBg') |