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
69
70
71
72
73
74
75
76
77
78
79
|
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/elm/elm_object'
require 'efl/elm/elm_object_item'
require 'efl/native/elm/elm_genlist'
#
module Efl
#
module Elm
#
class ElmList < ElmObject
#
include Helper
constructor :elm_genlist_add
search_prefixes 'elm_genlist_'
#
def item_append itc, data, parent, flags, cb, cbdata
ElmObjectItem.new Native::elm_genlist_item_append @ptr, itc, data, parent, flags, cb, cbdata
end
#
def item_prepend itc, data, parent, flags, cb, cbdata
ElmObjectItem.new Native::elm_genlist_item_append @ptr, itc, data, parent, flags, cb, cbdata
end
#
def item_insert_before itc, data, parent, before, flags, cb, cbdata
ElmObjectItem.new Native::elm_genlist_item_insert_before @ptr, itc, data, parent, before, flags, cb, cbdata
end
#
def item_insert_after itc, data, parent, before, flags, cb, cbdata
ElmObjectItem.new Native::elm_genlist_item_insert_after @ptr, itc, data, parent, before, flags, cb, cbdata
end
#
def item_sorted_insert itc, data, parent, flags, cmp, cb, cbdata
ElmObjectItem.new Native::elm_genlist_item_sorted_insert @ptr, itc, data, parent, flags, cmp, cb, cbdata
end
#
def selected_item_get
ElmObjectItem.new Native::elm_genlist_selected_item_get @ptr
end
alias :selected_item :selected_item_get
#
def at_xy_item_get x, y
@ri0 ||= FFI::MemoryPointer.new :int
i = ElmObjectItem.new ElmObjectItem.new Native::elm_genlist_first_item_get @ptr, x, y, @ri0
[ @ri0.read_int, i ]
end
#
def first_item_get
ElmObjectItem.new Native::elm_genlist_first_item_get @ptr
end
alias :first_item :first_item_get
#
def last_item_get
ElmObjectItem.new Native::elm_genlist_last_item_get @ptr
end
alias :last_item :last_item_get
#
def item_next_get it
ElmObjectItem.new Native::elm_genlist_item_next_get it
end
alias :item_next :item_next_get
#
def item_prev_get it
ElmObjectItem.new Native::elm_genlist_item_prev_get it
end
alias :item_prev :item_prev_get
#
def item_parent_get it
ElmObjectItem.new Native::elm_genlist_item_parent_get it
end
alias :item_parent :item_parent_get
#
end
#
end
end
#
# EOF
|