summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_list.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 14:39:28 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 14:39:28 +0100
commit644b93ab39f419cdac33e738fa812e667eab63ba (patch)
tree4c6060ccb7413d4c4ecc7c61e8283650a8f43d6d /lib/efl/elm/elm_list.rb
parenta36de17212b556f43f0fdba1e604f0e096215998 (diff)
downloadffi-efl-644b93ab39f419cdac33e738fa812e667eab63ba.zip
ffi-efl-644b93ab39f419cdac33e738fa812e667eab63ba.tar.gz
add lib/efl/elm/elm_list.rb
Diffstat (limited to 'lib/efl/elm/elm_list.rb')
-rw-r--r--lib/efl/elm/elm_list.rb54
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_list.rb b/lib/efl/elm/elm_list.rb
new file mode 100644
index 0000000..dfdf7f9
--- /dev/null
+++ b/lib/efl/elm/elm_list.rb
@@ -0,0 +1,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