summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_focus.rb
blob: 2fc99f974071c1bf2bde9f5e3aa18a09ef23a8d0 (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
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
require 'efl/elm/elm_object'
require 'efl/native/elm/elm_focus'
#
module Efl
    #
    module Elm
        #
        class ElmObject
            #
            def focus_get
                Native.elm_object_focus_get @ptr
            end
            alias :focus :focus_get
            #
            def focus_set focus
                Native.elm_object_focus_set @ptr, focus
            end
            alias :focus= :focus_set
            #
            def focus_allow_get
                Native.elm_object_focus_allow_get @ptr
            end
            alias :focus :focus_allow_get
            #
            def focus_allow_set allow
                Native.elm_object_focus_allow_set @ptr, allow
            end
            alias :focus_allow= :focus_allow_set
            #
            def focus_allow_custom_chain_set list
                Native.elm_object_focus_allow_custom_chain_set @ptr, list
            end
            alias :focus_allow_custom_chain= :focus_allow_custom_chain_set
            #
            def focus_allow_custom_chain_unset
                Native.elm_object_focus_allow_custom_chain_unset @ptr
            end
            #
            def focus_allow_custom_chain_get
                Native.elm_object_focus_allow_custom_chain_get @ptr
            end
            alias :focus_allow_custom_chain :focus_allow_custom_chain_get
            #
            def focus_custom_chain_append child, relative_child
                Native.elm_object_focus_custom_chain_append @ptr, child, relative_child
            end
            #
            def focus_custom_chain_prepend child, relative_child
                Native.elm_object_focus_custom_chain_prepend @ptr, child, relative_child
            end
            #
            def focus_cycle direction
                Native.elm_object_focus_cycle @ptr, direction
            end
            #
            def tree_unfocusable_set unfocusable
                Native.elm_object_tree_unfocusable_set @ptr, unfocusable
            end
            alias :tree_unfocusable= :tree_unfocusable_set
            #
            def tree_unfocusable_get
                Native.elm_object_tree_unfocusable_set @ptr
            end
            alias :tree_unfocusable :tree_unfocusable_get
            #
        end
        #
    end
end
#
# EOF