summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 12:05:06 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 12:05:06 +0100
commit29e9450a0771e668a2edd87e2287815c2981cab8 (patch)
tree3021b932905dd3b37a797613039814e4bd9a1954 /lib/efl/elm
parent6c07af44591829cb46ed24f2ff2c6f6defa27d9a (diff)
downloadffi-efl-29e9450a0771e668a2edd87e2287815c2981cab8.zip
ffi-efl-29e9450a0771e668a2edd87e2287815c2981cab8.tar.gz
parse elm_toolbar.h, generate elm_toolbar.rb
Diffstat (limited to 'lib/efl/elm')
-rw-r--r--lib/efl/elm/elm_toolbar.rb63
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_toolbar.rb b/lib/efl/elm/elm_toolbar.rb
new file mode 100644
index 0000000..b4b99be
--- /dev/null
+++ b/lib/efl/elm/elm_toolbar.rb
@@ -0,0 +1,63 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/elm/elm_object_item'
+require 'efl/native/elm/elm_toolbar'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmToolbar < ElmObject
+ #
+ include Helper
+ constructor :elm_toolbar_add
+ search_prefixes 'elm_toolbar_'
+ #
+ def item_append icon, label, cb=nil, data=nil
+ ElmObjectItem.new Native::elm_toolbar_item_append @ptr, icon, label, cb, data
+ end
+ #
+ def item_prepend icon, label, cb=nil, data=nil
+ ElmObjectItem.new Native::elm_toolbar_item_prepend @ptr, icon, label, cb, data
+ end
+ #
+ def item_insert_before before, icon, label, cb=nil, data=nil
+ ElmObjectItem.new Native::elm_toolbar_item_insert_before @ptr, before, icon, label, cb, data
+ end
+ #
+ def item_insert_after after, icon, label, cb=nil, data=nil
+ ElmObjectItem.new Native::elm_toolbar_item_insert_after @ptr, after, icon, label, cb, data
+ end
+ #
+ def first_item_get
+ ElmObjectItem.new Native::elm_toolbar_first_item_get @ptr
+ end
+ alias :first_item :first_item_get
+ #
+ def last_item_get
+ ElmObjectItem.new Native::elm_toolbar_last_item_get @ptr
+ end
+ alias :last_item :last_item_get
+ #
+ def item_prev_get it
+ ElmObjectItem.new Native::elm_toolbar_item_prev it
+ end
+ alias :item_prev :item_prev_get
+ #
+ def item_next_get it
+ ElmObjectItem.new Native::elm_toolbar_item_next it
+ end
+ alias :item_next :item_next_get
+ #
+ def selected_item_get
+ ElmObjectItem.new Native::elm_toolbar_selected_item_get @ptr
+ end
+ alias :selected_item :selected_item_get
+ end
+ #
+ end
+end
+#
+# EOF