summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_focus.rb
blob: 91cb8627b3b9709a8d0a82c6f57d5346dc9742f6 (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
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/native'
require 'efl/native/elementary'
#
module Efl
    #
    module ElmFocus
        #
        FCT_PREFIX = 'elm_focus_' 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.so.1'
        #
        # FUNCTIONS
        fcts = [
        # EAPI Eina_Bool elm_object_focus_get(const Evas_Object *obj);
        [ :elm_object_focus_get, [ :evas_object ], :bool ],
        # EAPI void elm_object_focus_set(Evas_Object *obj, Eina_Bool focus);
        [ :elm_object_focus_set, [ :evas_object, :bool ], :void ],
        # EAPI void elm_object_focus_allow_set(Evas_Object *obj, Eina_Bool enable);
        [ :elm_object_focus_allow_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_object_focus_allow_get(const Evas_Object *obj);
        [ :elm_object_focus_allow_get, [ :evas_object ], :bool ],
        # EAPI void elm_object_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs);
        [ :elm_object_focus_custom_chain_set, [ :evas_object, :eina_list ], :void ],
        # EAPI void elm_object_focus_custom_chain_unset(Evas_Object *obj);
        [ :elm_object_focus_custom_chain_unset, [ :evas_object ], :void ],
        # EAPI const Eina_List *elm_object_focus_custom_chain_get(const Evas_Object *obj);
        [ :elm_object_focus_custom_chain_get, [ :evas_object ], :eina_list ],
        # EAPI void elm_object_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child);
        [ :elm_object_focus_custom_chain_append, [ :evas_object, :evas_object, :evas_object ], :void ],
        # EAPI void elm_object_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child);
        [ :elm_object_focus_custom_chain_prepend, [ :evas_object, :evas_object, :evas_object ], :void ],
        # EAPI void elm_object_focus_next(Evas_Object *obj, Elm_Focus_Direction dir);
        [ :elm_object_focus_next, [ :evas_object, :elm_focus_direction ], :void ],
        # EAPI void elm_object_tree_focus_allow_set(Evas_Object *obj, Eina_Bool focusable);
        [ :elm_object_tree_focus_allow_set, [ :evas_object, :bool ], :void ],
        # EAPI Eina_Bool elm_object_tree_focus_allow_get(const Evas_Object *obj);
        [ :elm_object_tree_focus_allow_get, [ :evas_object ], :bool ],
        ]
        #
        attach_fcts fcts
        #
    end
end
#
# EOF