diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 16:47:35 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 16:47:35 +0100 |
commit | 0567a18b2297a05e937374375ed751310551995c (patch) | |
tree | f615682193f2a3194b0520d1dd1594a2a6ddd827 /lib | |
parent | 6c9e09c5e7d57353e079462d3d072a2594d04b81 (diff) | |
download | ffi-efl-0567a18b2297a05e937374375ed751310551995c.zip ffi-efl-0567a18b2297a05e937374375ed751310551995c.tar.gz |
parse elm_hoversel.h, generate elm_hoversel.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/elementary_all.rb | 1 | ||||
-rw-r--r-- | lib/efl/elm/elm_hoversel.rb | 26 | ||||
-rw-r--r-- | lib/efl/native/elm/elm_hoversel.rb | 60 |
3 files changed, 87 insertions, 0 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb index 64ee4d6..b4b585e 100644 --- a/lib/efl/elementary_all.rb +++ b/lib/efl/elementary_all.rb @@ -22,6 +22,7 @@ require 'efl/elm/elm_flipselector' require 'efl/elm/elm_frame' require 'efl/elm/elm_grid' require 'efl/elm/elm_hover' +require 'efl/elm/elm_hoversel' require 'efl/elm/elm_icon' require 'efl/elm/elm_image' require 'efl/elm/elm_label' diff --git a/lib/efl/elm/elm_hoversel.rb b/lib/efl/elm/elm_hoversel.rb new file mode 100644 index 0000000..e70549c --- /dev/null +++ b/lib/efl/elm/elm_hoversel.rb @@ -0,0 +1,26 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_hoversel' +# +module Efl + # + module Elm + # + class ElmCheck < ElmObject + # + include Helper + constructor :elm_hoversel_add + search_prefixes 'elm_hoversel_' + # + def item_add label, icon_file=nil, icon_type=:elm_icon_none, cb=nil, data=nil + ElmHoverselItem.new Native::elm_hoversel_item_add @ptr, label, icon_file, icon_type, cb, data + end + # + end + # + end +end +# +# EOF diff --git a/lib/efl/native/elm/elm_hoversel.rb b/lib/efl/native/elm/elm_hoversel.rb new file mode 100644 index 0000000..f70644f --- /dev/null +++ b/lib/efl/native/elm/elm_hoversel.rb @@ -0,0 +1,60 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/elementary' +require 'efl/native/elm/elm_icon' +# +module Efl + # + module ElmHoverSel + # + FCT_PREFIX = 'elm_hoversel_' 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_hoversel_add(Evas_Object *parent); + [ :elm_hoversel_add, [ :evas_object ], :evas_object ], + # EAPI void elm_hoversel_horizontal_set(Evas_Object *obj, Eina_Bool horizontal); + [ :elm_hoversel_horizontal_set, [ :evas_object, :bool ], :void ], + # EAPI Eina_Bool elm_hoversel_horizontal_get(const Evas_Object *obj); + [ :elm_hoversel_horizontal_get, [ :evas_object ], :bool ], + # EAPI void elm_hoversel_hover_parent_set(Evas_Object *obj, Evas_Object *parent); + [ :elm_hoversel_hover_parent_set, [ :evas_object, :evas_object ], :void ], + # EAPI Evas_Object *elm_hoversel_hover_parent_get(const Evas_Object *obj); + [ :elm_hoversel_hover_parent_get, [ :evas_object ], :evas_object ], + # EAPI void elm_hoversel_hover_begin(Evas_Object *obj); + [ :elm_hoversel_hover_begin, [ :evas_object ], :void ], + # EAPI void elm_hoversel_hover_end(Evas_Object *obj); + [ :elm_hoversel_hover_end, [ :evas_object ], :void ], + # EAPI Eina_Bool elm_hoversel_expanded_get(const Evas_Object *obj); + [ :elm_hoversel_expanded_get, [ :evas_object ], :bool ], + # EAPI void elm_hoversel_clear(Evas_Object *obj); + [ :elm_hoversel_clear, [ :evas_object ], :void ], + # EAPI const Eina_List *elm_hoversel_items_get(const Evas_Object *obj); + [ :elm_hoversel_items_get, [ :evas_object ], :eina_list ], + # EAPI Elm_Object_Item *elm_hoversel_item_add(Evas_Object *obj, const char *label, const char *icon_file, Elm_Icon_Type icon_type, Evas_Smart_Cb func, const void *data); + [ :elm_hoversel_item_add, [ :evas_object, :string, :string, :elm_icon_type, :evas_smart_cb, :pointer ], :elm_object_item ], + # EAPI void elm_hoversel_item_icon_set(Elm_Object_Item *it, const char *icon_file, const char *icon_group, Elm_Icon_Type icon_type); + [ :elm_hoversel_item_icon_set, [ :elm_object_item, :string, :string, :elm_icon_type ], :void ], + # EAPI void elm_hoversel_item_icon_get(const Elm_Object_Item *it, const char **icon_file, const char **icon_group, Elm_Icon_Type *icon_type); + [ :elm_hoversel_item_icon_get, [ :elm_object_item, :pointer, :pointer, :pointer ], :void ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF |