summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_segment_control.rb
blob: f08f55290262b5e07fea3451af8c1ed548a1984b (plain)
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
#! /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