diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 12:44:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 12:44:16 +0100 |
commit | bd6eb94d5ff8533c6d42d648e390d378cb8b4392 (patch) | |
tree | 64c959a53700c7aa3c40442371f399e508d042d3 /lib/efl/elm/elm_slideshow.rb | |
parent | b93e6fff86d6f6baa2f045968b6b46ec1a23223c (diff) | |
download | ffi-efl-bd6eb94d5ff8533c6d42d648e390d378cb8b4392.zip ffi-efl-bd6eb94d5ff8533c6d42d648e390d378cb8b4392.tar.gz |
parse elm_slideshow.h, generate elm_slideshow.rb
Diffstat (limited to 'lib/efl/elm/elm_slideshow.rb')
-rw-r--r-- | lib/efl/elm/elm_slideshow.rb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_slideshow.rb b/lib/efl/elm/elm_slideshow.rb new file mode 100644 index 0000000..d305b5f --- /dev/null +++ b/lib/efl/elm/elm_slideshow.rb @@ -0,0 +1,41 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/elm/elm_object_item' +require 'efl/native/elm/elm_slideshow' +# +module Efl + # + module Elm + # + class ElmSlideshow < ElmObject + # + include Helper + constructor :elm_slideshow_add + search_prefixes 'elm_slideshow_' + # + def item_add itc, data + ElmObjectItem.new Native::elm_slideshow_item_append @ptr, itc, data + end + # + def item_sorted_insert itc, data, fct + ElmObjectItem.new Native::elm_slideshow_item_sorted_insert @ptr, itc, data, fct + end + # + def item_current_get + ElmObjectItem.new Native::elm_slideshow_item_current_get @ptr + end + alias :item_current :item_current_get + # + def item_nth_get n + ElmObjectItem.new Native::elm_slideshow_item_nth_get @ptr, n + end + alias :item_nth :item_nth_get + # + end + # + end +end +# +# EOF |