Apply a new focus state on the widget.

This method is called internally by Efl.Ui.Widget. Override it to change how a widget interacts with its focus manager. If a widget desires to change the applied configuration, it has to modify configured_state in addition to any internal changes.

The default implementation (when this method is not overridden) applies configured_state using the manager contained inside.

Since 1.22


focus_state_apply @protected {
    params {
        @in current_state: Efl.Ui.Widget_Focus_State;
        @inout configured_state: Efl.Ui.Widget_Focus_State;
        @in redirect: Efl.Ui.Widget;
    return: bool;

C signature

Eina_Bool efl_ui_widget_focus_state_apply(Eo *obj, Efl_Ui_Widget_Focus_State current_state, Efl_Ui_Widget_Focus_State configured_state, Efl_Ui_Widget *redirect);


  • current_state (in) - The current focus configuration of the widget.
  • configured_state (inout) - The new configuration being set on the widget.
  • redirect (in) - A redirect object if there is any

Implemented by