Rename MouseCursor to mouse::Interaction
This commit is contained in:
parent
d4c4198f72
commit
98bc8cf2a7
35 changed files with 170 additions and 171 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue