2016-10-27 10:06:17 -07:00
|
|
|
import eina_types;
|
|
|
|
|
2016-10-20 13:59:05 -07:00
|
|
|
mixin Efl.Ui.Focus.Object
|
|
|
|
{
|
|
|
|
[[Functions of focusable objects]]
|
|
|
|
methods {
|
|
|
|
geometry_get {
|
2016-10-24 03:58:30 -07:00
|
|
|
[[The geometry which should be used to calculate the relations to others]]
|
2016-10-20 13:59:05 -07:00
|
|
|
params {
|
2016-10-24 03:58:30 -07:00
|
|
|
@out rect : Eina.Rectangle; [[the geometry to use]]
|
2016-10-20 13:59:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@property focus {
|
|
|
|
[[This gets called by the manager and should never be called by someone else
|
|
|
|
|
2016-10-24 03:58:30 -07:00
|
|
|
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.
|
2016-10-20 13:59:05 -07:00
|
|
|
]]
|
|
|
|
values {
|
2016-10-24 03:58:30 -07:00
|
|
|
focus : bool; [[The state in which the object should be put]]
|
2016-10-20 13:59:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
@empty .geometry_get;
|
2017-01-02 02:42:35 -08:00
|
|
|
@empty .focus { get; }
|
2016-10-20 13:59:05 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-10-24 03:58:30 -07:00
|
|
|
focus,changed : bool; [[Emitted if the focus state has changed]]
|
2016-10-20 13:59:05 -07:00
|
|
|
}
|
|
|
|
}
|