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
|
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/elm/elm_object'
require 'efl/elm/elm_object_item'
require 'efl/native/elm/elm_list'
#
module Efl
#
module Elm
#
class ElmList < ElmObject
#
include Helper
constructor :elm_list_add
search_prefixes 'elm_list_'
#
def item_append label, left_icon=nil, right_icon=nil, cb=nil, data=nil
ElmObjectItem.new Native::elm_list_item_append @ptr, label, left_icon, right_icon, cb, data
end
#
def item_prepend label, left_icon=nil, right_icon=nil, cb=nil, data=nil
ElmObjectItem.new Native::elm_list_item_prepend @ptr, label, left_icon, right_icon, cb, data
end
#
def item_insert_before before, label, left_icon=nil, right_icon=nil, cb=nil, data=nil
ElmObjectItem.new Native::elm_list_item_insert_before @ptr, before, label, left_icon, right_icon, cb, data
end
#
def item_insert_after after, label, left_icon=nil, right_icon=nil, cb=nil, data=nil
ElmObjectItem.new Native::elm_list_item_insert_after @ptr, after, label, left_icon, right_icon, cb, data
end
#
def item_sorted_insert label, left_icon, right_icon, cb, data, cmp_fct
ElmObjectItem.new Native::elm_list_item_sorted_insert @ptr, label, left_icon, right_icon, cb, data, cmp_fct
end
#
def selected_item_get
ElmObjectItem.new Native::elm_list_selected_item_get @ptr
end
#
def item_prev
ElmObjectItem.new Native::elm_list_item_prev @ptr
end
#
def item_next
ElmObjectItem.new Native::elm_list_item_next @ptr
end
end
#
end
end
#
# EOF
|