summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_index.rb
blob: 0773af5cd4521d4a3ed8a781e22e1537d947e5b5 (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
#! /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