summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_focus_object.eo
blob: 106d09cf150d34107e99c0ad9f7740ac33faa83c (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
import eina_types;

mixin Efl.Ui.Focus.Object
{
    [[Functions of focusable objects]]
    methods {
        geometry_get {
            [[The geometry which should be used to calculate the relations to others]]
            params {
                @out rect : Eina.Rectangle; [[the geometry to use]]
            }
        }
        @property focus {
            [[This gets called by the manager and should never be called by someone else

             It can be used by a implementation of a focus object to adapt to changes which are needed.

             The function is emitting the focus state events, if focus is different to the state before.
            ]]
            values {
                focus : bool; [[The state in which the object should be put]]
            }
        }
    }
    implements {
        @empty .geometry_get;
        @empty .focus.get;
    }
    events {
        focus,changed : bool; [[Emitted if the focus state has changed]]
    }
}