summaryrefslogtreecommitdiffstats
path: root/native/src/widget/container.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-18 07:45:49 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-18 07:45:49 +0100
commita14b39555e5c480422c24df7d708dd1addd0a67b (patch)
tree00404b80c27f715d3739f14d882e88241d68f0c1 /native/src/widget/container.rs
parent0f2e20f5e5b1f0658ab4e6cbe6fdda9ca97f2b36 (diff)
downloadiced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.gz
iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.bz2
iced-a14b39555e5c480422c24df7d708dd1addd0a67b.zip
Allow clipboard access in `Widget::on_event`
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r--native/src/widget/container.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs
index 7852eecf..74f0e0ef 100644
--- a/native/src/widget/container.rs
+++ b/native/src/widget/container.rs
@@ -2,7 +2,8 @@
use std::hash::Hash;
use crate::{
- layout, Align, Element, Event, Hasher, Layout, Length, Point, Widget,
+ layout, Align, Clipboard, Element, Event, Hasher, Layout, Length, Point,
+ Widget,
};
use std::u32;
@@ -131,6 +132,7 @@ where
cursor_position: Point,
messages: &mut Vec<Message>,
renderer: &Renderer,
+ clipboard: Option<&dyn Clipboard>,
) {
self.content.widget.on_event(
event,
@@ -138,6 +140,7 @@ where
cursor_position,
messages,
renderer,
+ clipboard,
)
}