efl/src/lib/elementary/efl_ui_focus_util.eo

33 lines
1.0 KiB
Plaintext

class @beta Efl.Ui.Focus.Util extends Efl.Object {
[[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.
]]
methods {
focus @static {
[[Sets the focus to the given object.]]
params {
focus_elem : Efl.Ui.Focus.Object; [[Object to receive focus.]]
}
}
active_manager @static {
[[Gets the highest manager in the redirect chain.]]
params {
manager : Efl.Ui.Focus.Manager; [[Manager to start looking from.]]
}
return: Efl.Ui.Focus.Manager;
}
direction_complement @static {
[[Returns the complementary (opposite) focus direction.
The defined opposites are Left-Right, Up-Down and Next-Previous.
]]
params {
dir : Efl.Ui.Focus.Direction; [[Direction to complement.]]
}
return: Efl.Ui.Focus.Direction; [[The opposite direction.]]
}
}
}