diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 12:09:29 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 12:09:29 +0100 |
commit | 53579f8ec711675c2b304f9a616feac72fcaa0a9 (patch) | |
tree | 04132cf3e3b1305b815b2e71f5a0dfac7d4a2bd2 /lib/efl/elm | |
parent | 29e9450a0771e668a2edd87e2287815c2981cab8 (diff) | |
download | ffi-efl-53579f8ec711675c2b304f9a616feac72fcaa0a9.zip ffi-efl-53579f8ec711675c2b304f9a616feac72fcaa0a9.tar.gz |
parse elm_index.h, generate elm_index.rb
Diffstat (limited to 'lib/efl/elm')
-rw-r--r-- | lib/efl/elm/elm_index.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_index.rb b/lib/efl/elm/elm_index.rb new file mode 100644 index 0000000..c6ba981 --- /dev/null +++ b/lib/efl/elm/elm_index.rb @@ -0,0 +1,31 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/elm/elm_object_item' +require 'efl/native/elm/elm_index' +# +module Efl + # + module Elm + # + class ElmIndex < ElmObject + # + include Helper + constructor :elm_index_add + search_prefixes 'elm_index_' + # + def item_selected_get idx + ElmObjectItem.new Native::elm_index_item_selected_get @ptr, idx + end + # + def item_find item + ElmObjectItem.new Native::elm_index_item_find @ptr, item + end + # + end + # + end +end +# +# EOF |