2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Ui.Focus.Util extends Efl.Object {
|
2019-09-03 08:56:23 -07:00
|
|
|
[[EFL UI Focus Utility class.
|
|
|
|
|
|
|
|
This class contains a series of static methods that simplify common focus management operations.
|
|
|
|
There's no need to instantiate this class.
|
|
|
|
]]
|
2017-11-16 08:09:46 -08:00
|
|
|
methods {
|
2019-08-16 07:27:00 -07:00
|
|
|
focus @static {
|
2019-09-03 08:56:23 -07:00
|
|
|
[[Sets the focus to the given object.]]
|
2017-11-16 08:09:46 -08:00
|
|
|
params {
|
2019-09-03 08:56:23 -07:00
|
|
|
focus_elem : Efl.Ui.Focus.Object; [[Object to receive focus.]]
|
2017-11-16 08:09:46 -08:00
|
|
|
}
|
|
|
|
}
|
2019-08-16 07:27:00 -07:00
|
|
|
active_manager @static {
|
2019-09-03 08:56:23 -07:00
|
|
|
[[Gets the highest manager in the redirect chain.]]
|
2018-04-12 09:04:18 -07:00
|
|
|
params {
|
2019-09-03 08:56:23 -07:00
|
|
|
manager : Efl.Ui.Focus.Manager; [[Manager to start looking from.]]
|
2018-04-12 09:04:18 -07:00
|
|
|
}
|
|
|
|
return: Efl.Ui.Focus.Manager;
|
|
|
|
}
|
2019-08-16 07:27:00 -07:00
|
|
|
direction_complement @static {
|
2019-09-03 08:56:23 -07:00
|
|
|
[[Returns the complementary (opposite) focus direction.
|
|
|
|
|
|
|
|
The defined opposites are Left-Right, Up-Down and Next-Previous.
|
|
|
|
]]
|
2018-04-13 08:07:30 -07:00
|
|
|
params {
|
2019-09-03 08:56:23 -07:00
|
|
|
dir : Efl.Ui.Focus.Direction; [[Direction to complement.]]
|
2018-04-13 08:07:30 -07:00
|
|
|
}
|
2019-09-03 08:56:23 -07:00
|
|
|
return: Efl.Ui.Focus.Direction; [[The opposite direction.]]
|
2018-04-13 08:07:30 -07:00
|
|
|
}
|
2017-11-16 08:09:46 -08:00
|
|
|
}
|
|
|
|
}
|