diff --git a/native/src/element.rs b/native/src/element.rs index 4e7c7fc6..f29580fc 100644 --- a/native/src/element.rs +++ b/native/src/element.rs @@ -227,6 +227,28 @@ where self.widget.layout(renderer, limits) } + /// Processes a runtime [`Event`]. + /// + /// [`Event`]: enum.Event.html + pub fn on_event( + &mut self, + event: Event, + layout: Layout<'_>, + cursor_position: Point, + messages: &mut Vec, + renderer: &Renderer, + clipboard: Option<&dyn Clipboard>, + ) { + self.widget.on_event( + event, + layout, + cursor_position, + messages, + renderer, + clipboard, + ); + } + /// Draws the [`Element`] and its children using the given [`Layout`]. /// /// [`Element`]: struct.Element.html