summaryrefslogtreecommitdiffstats
path: root/native/src/widget/scrollable.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-12-19 17:43:25 +0100
committerLibravatar GitHub <noreply@github.com>2019-12-19 17:43:25 +0100
commit773a23630be538372d5dd1a609d654a1289be389 (patch)
treea53a42d424ce36dd26c24a5a03140458013956ad /native/src/widget/scrollable.rs
parent9cf61fb82cb715ab0af15343be258b2b227d85f4 (diff)
parent8c8c5bb7665c1ac50d2ad355b06f1ea02dc5b4c2 (diff)
downloadiced-773a23630be538372d5dd1a609d654a1289be389.tar.gz
iced-773a23630be538372d5dd1a609d654a1289be389.tar.bz2
iced-773a23630be538372d5dd1a609d654a1289be389.zip
Merge pull request #132 from hecrj/feature/read-clipboard
Clipboard access
Diffstat (limited to '')
-rw-r--r--native/src/widget/scrollable.rs6
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,
)
}