summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_diskselector.rb
blob: 1b26ace5b986ce2a8450797b58d6d564697bf587 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
require 'efl/native/elm/elm_scroller'
#
module Efl
    #
    module ElmDiskSelector
        #
        FCT_PREFIX = 'elm_diskselector_' unless const_defined? :FCT_PREFIX
        #
        def self.method_missing meth, *args, &block
            sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
            self.send sym, *args, &block
        end
        #
    end
    #
    module Native
        #
        ffi_lib 'elementary-ver-pre-svn-09.so.0'
        #
        # FUNCTIONS
        fcts = [
        # EAPI Evas_Object *elm_diskselector_add(Evas_Object *parent);
        [ :elm_diskselector_add, [ :evas_object ], :evas_object ],
        # EAPI void elm_diskselector_round_enabled_set(Evas_Object *obj, Eina_Bool enabled);
        [ :elm_diskselector_round_enabled_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_diskselector_round_enabled_get(const Evas_Object *obj);
        [ :elm_diskselector_round_enabled_get, [ :evas_object ], :bool ],
        # EAPI int elm_diskselector_side_text_max_length_get(const Evas_Object *obj);
        [ :elm_diskselector_side_text_max_length_get, [ :evas_object ], :int ],
        # EAPI void elm_diskselector_side_text_max_length_set(Evas_Object *obj, int len);
        [ :elm_diskselector_side_text_max_length_set, [ :evas_object, :int ], :void ],
        # EAPI void elm_diskselector_display_item_num_set(Evas_Object *obj, int num);
        [ :elm_diskselector_display_item_num_set, [ :evas_object, :int ], :void ],
        # EAPI int elm_diskselector_display_item_num_get(const Evas_Object *obj);
        [ :elm_diskselector_display_item_num_get, [ :evas_object ], :int ],
        # EAPI void elm_diskselector_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
        [ :elm_diskselector_bounce_set, [ :evas_object, :bool, :bool ], :void ],
        # EAPI void elm_diskselector_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
        [ :elm_diskselector_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
        # EAPI void elm_diskselector_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
        [ :elm_diskselector_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
        # EAPI void elm_diskselector_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
        [ :elm_diskselector_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
        # EAPI void elm_diskselector_clear(Evas_Object *obj);
        [ :elm_diskselector_clear, [ :evas_object ], :void ],
        # EAPI const Eina_List *elm_diskselector_items_get(const Evas_Object *obj);
        [ :elm_diskselector_items_get, [ :evas_object ], :eina_list ],
        # EAPI Elm_Object_Item *elm_diskselector_item_append(Evas_Object *obj, const char *label, Evas_Object *icon, Evas_Smart_Cb func, const void *data);
        [ :elm_diskselector_item_append, [ :evas_object, :string, :evas_object, :evas_smart_cb, :pointer ], :elm_object_item ],
        # EAPI Elm_Object_Item *elm_diskselector_selected_item_get(const Evas_Object *obj);
        [ :elm_diskselector_selected_item_get, [ :evas_object ], :elm_object_item ],
        # EAPI void elm_diskselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
        [ :elm_diskselector_item_selected_set, [ :elm_object_item, :bool ], :void ],
        # EAPI Eina_Bool elm_diskselector_item_selected_get(const Elm_Object_Item *it);
        [ :elm_diskselector_item_selected_get, [ :elm_object_item ], :bool ],
        # EAPI Elm_Object_Item *elm_diskselector_first_item_get(const Evas_Object *obj);
        [ :elm_diskselector_first_item_get, [ :evas_object ], :elm_object_item ],
        # EAPI Elm_Object_Item *elm_diskselector_last_item_get(const Evas_Object *obj);
        [ :elm_diskselector_last_item_get, [ :evas_object ], :elm_object_item ],
        # EAPI Elm_Object_Item *elm_diskselector_item_prev_get(const Elm_Object_Item *it);
        [ :elm_diskselector_item_prev_get, [ :elm_object_item ], :elm_object_item ],
        # EAPI Elm_Object_Item *elm_diskselector_item_next_get(const Elm_Object_Item *it);
        [ :elm_diskselector_item_next_get, [ :elm_object_item ], :elm_object_item ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF