diff options
Diffstat (limited to 'graphics/src/widget/canvas.rs')
-rw-r--r-- | graphics/src/widget/canvas.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/graphics/src/widget/canvas.rs b/graphics/src/widget/canvas.rs index 88403fd7..a14940d9 100644 --- a/graphics/src/widget/canvas.rs +++ b/graphics/src/widget/canvas.rs @@ -3,19 +3,19 @@ //! A [`Canvas`] widget can be used to draw different kinds of 2D shapes in a //! [`Frame`]. It can be used for animation, data visualization, game graphics, //! and more! - pub mod event; +pub mod fill; pub mod path; +pub mod stroke; mod cache; mod cursor; -mod fill; mod frame; mod geometry; mod program; -mod stroke; mod text; +pub use crate::gradient::{self, Gradient}; pub use cache::Cache; pub use cursor::Cursor; pub use event::Event; @@ -173,6 +173,9 @@ where iced_native::Event::Mouse(mouse_event) => { Some(Event::Mouse(mouse_event)) } + iced_native::Event::Touch(touch_event) => { + Some(Event::Touch(touch_event)) + } iced_native::Event::Keyboard(keyboard_event) => { Some(Event::Keyboard(keyboard_event)) } |