diff options
-rw-r--r-- | lib/efl/native/elm/elm_gen.rb | 49 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_gengrid.rb | 1 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_genlist.rb | 1 | ||||
-rwxr-xr-x | tools/genruby.rb | 5 |
4 files changed, 54 insertions, 2 deletions
diff --git a/lib/efl/native/elm/elm_gen.rb b/lib/efl/native/elm/elm_gen.rb new file mode 100644 index 0000000..7bdfae8 --- /dev/null +++ b/lib/efl/native/elm/elm_gen.rb @@ -0,0 +1,49 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +# +module Efl + # + module ElmGen + # + FCT_PREFIX = 'elm_gen_' 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' + # + # TYPEDEFS + # typedef struct Elm_Gen_Item Elm_Gen_Item; + typedef :pointer, :elm_gen_item + # typedef struct _Elm_Gen_Item_Class Elm_Gen_Item_Class; + typedef :pointer, :elm_gen_item_class + # + # CALLBACKS + # typedef char *(*Elm_Gen_Item_Text_Get_Cb) (void *data, Evas_Object *obj, const char *part); + callback :elm_gen_item_text_get_cb, [ :pointer, :evas_object, :string ], :string + # typedef Evas_Object *(*Elm_Gen_Item_Content_Get_Cb) (void *data, Evas_Object *obj, const char *part); + callback :elm_gen_item_content_get_cb, [ :pointer, :evas_object, :string ], :evas_object + # typedef Eina_Bool (*Elm_Gen_Item_State_Get_Cb) (void *data, Evas_Object *obj, const char *part); + callback :elm_gen_item_state_get_cb, [ :pointer, :evas_object, :string ], :bool + # typedef void (*Elm_Gen_Item_Del_Cb) (void *data, Evas_Object *obj); + callback :elm_gen_item_del_cb, [ :pointer, :evas_object ], :void + # + # FUNCTIONS + fcts = [ + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_gengrid.rb b/lib/efl/native/elm/elm_gengrid.rb index 27b3d84..8d4705f 100644 --- a/lib/efl/native/elm/elm_gengrid.rb +++ b/lib/efl/native/elm/elm_gengrid.rb @@ -3,6 +3,7 @@ # require 'efl/native' require 'efl/native/elementary' +require 'efl/native/elm/elm_gen' # module Efl # diff --git a/lib/efl/native/elm/elm_genlist.rb b/lib/efl/native/elm/elm_genlist.rb index d9bbaa8..b5d4171 100644 --- a/lib/efl/native/elm/elm_genlist.rb +++ b/lib/efl/native/elm/elm_genlist.rb @@ -3,6 +3,7 @@ # require 'efl/native' require 'efl/native/elementary' +require 'efl/native/elm/elm_gen' require 'efl/native/elm/elm_list' require 'efl/native/elm/elm_scroller' # diff --git a/tools/genruby.rb b/tools/genruby.rb index d5960d0..99fcd20 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -398,8 +398,9 @@ libs << elm_h('elm_flipselector.h', 'ElmFlipSelector') libs << elm_h('elm_focus.h', 'ElmFocus') libs << elm_h('elm_fonts.h', 'ElmFonts', ["#{NATIVE}/eina_hash","#{NATIVE}/elementary"]) libs << elm_h('elm_frame.h', 'ElmFrame') -libs << elm_h('elm_gengrid.h', 'ElmGenGrid') -libs << elm_h('elm_genlist.h', 'ElmGenList', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_list","#{NATIVE}/elm/elm_scroller"]) +libs << elm_h('elm_gengrid.h', 'ElmGenGrid', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_gen"]) +libs << elm_h('elm_gen.h', 'ElmGen') +libs << elm_h('elm_genlist.h', 'ElmGenList', ["#{NATIVE}/elementary","#{NATIVE}/elm/elm_gen","#{NATIVE}/elm/elm_list","#{NATIVE}/elm/elm_scroller"]) libs << elm_h('elm_gesture_layer.h', 'ElmGestureLayer') libs << elm_h('elm_glview.h', 'ElmGLView') libs << elm_h('elm_grid.h', 'ElmGrid') |