diff options
author | 2020-04-30 08:16:38 +0200 | |
---|---|---|
committer | 2020-04-30 08:16:38 +0200 | |
commit | 98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e (patch) | |
tree | 9e22665e41793517b7ba0b48d7315d3283dfde91 /examples/bezier_tool | |
parent | d4c4198f7242f168de65146e0ca339e0c1cbfe9b (diff) | |
download | iced-98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e.tar.gz iced-98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e.tar.bz2 iced-98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e.zip |
Rename `MouseCursor` to `mouse::Interaction`
Diffstat (limited to 'examples/bezier_tool')
-rw-r--r-- | examples/bezier_tool/src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index fe4136b4..fe41e1b2 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -70,7 +70,7 @@ impl Sandbox for Example { mod bezier { use iced::{ canvas::{self, Canvas, Cursor, Event, Frame, Geometry, Path, Stroke}, - mouse, Element, Length, MouseCursor, Point, Rectangle, + mouse, Element, Length, Point, Rectangle, }; #[derive(Default)] @@ -166,15 +166,15 @@ mod bezier { } } - fn mouse_cursor( + fn mouse_interaction( &self, bounds: Rectangle, cursor: Cursor, - ) -> MouseCursor { + ) -> mouse::Interaction { if cursor.is_over(&bounds) { - MouseCursor::Crosshair + mouse::Interaction::Crosshair } else { - MouseCursor::default() + mouse::Interaction::default() } } } |