diff options
author | 2019-12-18 07:45:49 +0100 | |
---|---|---|
committer | 2019-12-18 07:45:49 +0100 | |
commit | a14b39555e5c480422c24df7d708dd1addd0a67b (patch) | |
tree | 00404b80c27f715d3739f14d882e88241d68f0c1 /native/src/widget/scrollable.rs | |
parent | 0f2e20f5e5b1f0658ab4e6cbe6fdda9ca97f2b36 (diff) | |
download | iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.gz iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.bz2 iced-a14b39555e5c480422c24df7d708dd1addd0a67b.zip |
Allow clipboard access in `Widget::on_event`
Diffstat (limited to '')
-rw-r--r-- | native/src/widget/scrollable.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs index 3c2625b7..872c59cb 100644 --- a/native/src/widget/scrollable.rs +++ b/native/src/widget/scrollable.rs @@ -2,8 +2,8 @@ use crate::{ column, input::{mouse, ButtonState}, - layout, Align, Column, Element, Event, Hasher, Layout, Length, Point, - Rectangle, Size, Widget, + layout, Align, Clipboard, Column, Element, Event, Hasher, Layout, Length, + Point, Rectangle, Size, Widget, }; use std::{f32, hash::Hash, u32}; @@ -143,6 +143,7 @@ where cursor_position: Point, messages: &mut Vec<Message>, renderer: &Renderer, + clipboard: Option<&dyn Clipboard>, ) { let bounds = layout.bounds(); let is_mouse_over = bounds.contains(cursor_position); @@ -247,6 +248,7 @@ where cursor_position, messages, renderer, + clipboard, ) } |