summaryrefslogtreecommitdiffstats
path: root/native/src/widget/slider.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/slider.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/slider.rs')
-rw-r--r--native/src/widget/slider.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs
index f07ea7cd..f446f7e8 100644
--- a/native/src/widget/slider.rs
+++ b/native/src/widget/slider.rs
@@ -6,8 +6,8 @@
//! [`State`]: struct.State.html
use crate::{
input::{mouse, ButtonState},
- layout, Element, Event, Hasher, Layout, Length, Point, Rectangle, Size,
- Widget,
+ layout, Clipboard, Element, Event, Hasher, Layout, Length, Point,
+ Rectangle, Size, Widget,
};
use std::{hash::Hash, ops::RangeInclusive};
@@ -133,6 +133,7 @@ where
cursor_position: Point,
messages: &mut Vec<Message>,
_renderer: &Renderer,
+ _clipboard: Option<&dyn Clipboard>,
) {
let mut change = || {
let bounds = layout.bounds();