diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 16:24:21 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 16:24:21 +0100 |
commit | d18d12a07e07b2bfe99b5b9ee855cca9b28b3f69 (patch) | |
tree | bfad027464eb82e7e33afdc9a49655dda908c9ed /lib/efl/elm/elm_diskselector.rb | |
parent | 2d9c273da1c9d2a5bba3a52705374bfcd20b142e (diff) | |
download | ffi-efl-d18d12a07e07b2bfe99b5b9ee855cca9b28b3f69.zip ffi-efl-d18d12a07e07b2bfe99b5b9ee855cca9b28b3f69.tar.gz |
parse elm_diskselector.h, generate elm_diskselector.rb
Diffstat (limited to 'lib/efl/elm/elm_diskselector.rb')
-rw-r--r-- | lib/efl/elm/elm_diskselector.rb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_diskselector.rb b/lib/efl/elm/elm_diskselector.rb new file mode 100644 index 0000000..1a21613 --- /dev/null +++ b/lib/efl/elm/elm_diskselector.rb @@ -0,0 +1,46 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_diskselector' +# +module Efl + # + module Elm + # + class ElmDiskSelector < ElmObject + # + include Helper + constructor :elm_diskselector_add + search_prefixes 'elm_diskselector_' + # + def item_append label, icon=nil, cb=nil, data=nil + ElmObjectItem.new Native::elm_diskselector_item_append @ptr, label, icon, cb, data + end + # + def selected_item_get + ElmObjectItem.new Native::elm_diskselector_selected_item_get @ptr + end + # + def first_item_get + ElmObjectItem.new Native::elm_diskselector_first_item_get @ptr + end + # + def last_item_get + ElmObjectItem.new Native::elm_diskselector_last_item_get @ptr + end + # + def item_prev_get it + ElmObjectItem.new Native::elm_diskselector_item_prev_get it + end + # + def item_next_get it + ElmObjectItem.new Native::elm_diskselector_item_next_get it + end + # + end + # + end +end +# +# EOF |