summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-29 17:12:28 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-29 17:12:28 +0100
commit3b43739a0fe76ee72ac9b8a7a612b8a997151f83 (patch)
treedb642eb2cdc8f9f53837941f2baeff54ee5c7556 /lib/efl/elm
parent1e1cf7af4c0cdf583cca161e499638dcb0133074 (diff)
downloadffi-efl-3b43739a0fe76ee72ac9b8a7a612b8a997151f83.zip
ffi-efl-3b43739a0fe76ee72ac9b8a7a612b8a997151f83.tar.gz
parse elm_segment_control.h, generate elm_segment_control.rb
Diffstat (limited to 'lib/efl/elm')
-rw-r--r--lib/efl/elm/elm_segment_control.rb39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_segment_control.rb b/lib/efl/elm/elm_segment_control.rb
new file mode 100644
index 0000000..f08f552
--- /dev/null
+++ b/lib/efl/elm/elm_segment_control.rb
@@ -0,0 +1,39 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/elm/elm_object_item'
+require 'efl/native/elm/elm_segment_control'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmCheck < ElmObject
+ #
+ include Helper
+ constructor :elm_segment_control_add
+ search_prefixes 'elm_segment_control_'
+ #
+ def item_add icon, label=nil
+ ElmObjectItem.new Native.elm_segment_control_item_add @ptr, icon, label
+ end
+ #
+ def item_insert_at icon, label, idx
+ ElmObjectItem.new Native.elm_segment_control_item_insert_at @ptr, icon, label, idx
+ end
+ #
+ def item_get idx
+ ElmObjectItem.new Native.elm_segment_control_item_get @ptr, idx
+ end
+ #
+ def item_selected_get
+ ElmObjectItem.new Native.elm_segment_control_item_selected_get @ptr
+ end
+ #
+ end
+ #
+ end
+end
+#
+# EOF