summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_slideshow.rb
blob: d305b5fd26a61906deeaa989f36f3390be3141b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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