summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_gengrid.rb
blob: 2daa2cf0d1a8c8f8455bd383fa4cc4ba12a8aa6e (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/elm/elm_object'
require 'efl/elm/elm_object_item'
require 'efl/native/elm/elm_gengrid'
#
module Efl
    #
    module Elm
        #
        class ElmGenGrid < ElmObject
            #
            include Helper
            constructor :elm_gengrid_add
            search_prefixes 'elm_gengrid_'
            #
            def item_append gic, data, cb, cbdata
                ElmObjectItem.new Native.elm_gengrid_item_append @ptr, gic, data, cb, cbdata
            end
            #
            def item_prepend gic, data, cb, cbdata
                ElmObjectItem.new Native.elm_gengrid_item_append @ptr, gic, data, cb, cbdata
            end
            #
            def item_insert_before gic, data, before, cb, cbdata
                ElmObjectItem.new Native.elm_gengrid_item_insert_before @ptr, gic, data, before, cb, cbdata
            end
            #
            def item_insert_after gic, data, before, flags, cb, cbdata
                ElmObjectItem.new Native.elm_gengrid_item_insert_after @ptr, gic, data, before, cb, cbdata
            end
            #
            def item_sorted_insert gic, data, cmp, cb, cbdata
                ElmObjectItem.new Native.elm_gengrid_item_sorted_insert @ptr, gic, data, cmp, cb, cbdata
            end
            #
            def first_item_get
                ElmObjectItem.new Native.elm_gengrid_first_item_get @ptr
            end
            alias :first_item :first_item_get
            #
            def last_item_get
                ElmObjectItem.new Native.elm_gengrid_last_item_get @ptr
            end
            alias :last_item :last_item_get
            #
            def item_next_get it
                ElmObjectItem.new Native.elm_gengrid_item_next_get it
            end
            alias :item_next :item_next_get
            #
            def item_prev_get it
                ElmObjectItem.new Native.elm_gengrid_item_prev_get it
            end
            alias :item_prev :item_prev_get
            #
            def selected_item_get
                ElmObjectItem.new Native.elm_gengrid_selected_item_get @ptr
            end
            alias :selected_item :selected_item_get
            #
        end
        #
    end
end
#
# EOF