Description

Virtual function handling input events on the widget.

This method should return true if the event has been processed. Only key down, key up and pointer wheel events will be propagated through this function.

It is common for the event to be also marked as processed as in Efl.Input.Event.processed, if this operation was successful. This makes sure other widgets will not also process this input event.

Signature

widget_event @protected {
    params {
        @in eo_event: ptr(const(Efl.Event));
        @in source: free(Efl.Canvas.Object, efl_del);
    }
    return: bool;
}

C signature

Eina_Bool efl_ui_widget_event(Eo *obj, const Efl_Event *eo_event, Efl_Canvas_Object *source);

Parameters

  • eo_event (in) - EO event struct with an Efl.Input.Event as info.
  • source (in) - Source object where the event originated. Often same as this.

Implemented by

  • Efl.Ui.Widget.widget_event