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/radio.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 'native/src/widget/radio.rs')
-rw-r--r-- | native/src/widget/radio.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs index a9d145db..a9995b86 100644 --- a/native/src/widget/radio.rs +++ b/native/src/widget/radio.rs @@ -1,7 +1,7 @@ //! Create choices using radio buttons. use crate::{ input::{mouse, ButtonState}, - layout, row, text, Align, Color, Element, Event, Font, Hasher, + layout, row, text, Align, Clipboard, Color, Element, Event, Font, Hasher, HorizontalAlignment, Layout, Length, Point, Rectangle, Row, Text, VerticalAlignment, Widget, }; @@ -113,6 +113,7 @@ where cursor_position: Point, messages: &mut Vec<Message>, _renderer: &Renderer, + _clipboard: Option<&dyn Clipboard>, ) { match event { Event::Mouse(mouse::Event::Input { |