summaryrefslogtreecommitdiffstats
path: root/native/src/widget/button.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/button.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/button.rs')
-rw-r--r--native/src/widget/button.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs
index 67b49dc6..2881105f 100644
--- a/native/src/widget/button.rs
+++ b/native/src/widget/button.rs
@@ -6,8 +6,8 @@
//! [`State`]: struct.State.html
use crate::{
input::{mouse, ButtonState},
- layout, Background, Element, Event, Hasher, Layout, Length, Point,
- Rectangle, Widget,
+ layout, Background, Clipboard, Element, Event, Hasher, Layout, Length,
+ Point, Rectangle, Widget,
};
use std::hash::Hash;
@@ -192,6 +192,7 @@ where
cursor_position: Point,
messages: &mut Vec<Message>,
_renderer: &Renderer,
+ _clipboard: Option<&dyn Clipboard>,
) {
match event {
Event::Mouse(mouse::Event::Input {