diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-03-07 00:48:20 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-03-07 00:48:20 +0100 |
commit | 82bfaab0b6487697b12c8544b6c70e72b4e4f7cf (patch) | |
tree | fb30f4ffe2c7b3f1c8a5c4a4b4ed02373649554d /lib/efl/elm/elm_segment_control.rb | |
parent | 8c2f3d46390d2f44d2fcd58cd4f39ad621e6b3db (diff) | |
parent | 7d430af815626bb783f0eb435d7df549733958d2 (diff) | |
download | ffi-efl-82bfaab0b6487697b12c8544b6c70e72b4e4f7cf.zip ffi-efl-82bfaab0b6487697b12c8544b6c70e72b4e4f7cf.tar.gz |
Merge branch 'master' of asynk.ch:ffi-efl
Diffstat (limited to 'lib/efl/elm/elm_segment_control.rb')
-rw-r--r-- | lib/efl/elm/elm_segment_control.rb | 39 |
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 |