summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_slideshow.rb
blob: 8156ad2a10f6ca8592f42bd88a4d543f8eca91a6 (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