summaryrefslogtreecommitdiffstats
path: root/examples/integration
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-30 08:16:38 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-30 08:16:38 +0200
commit98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e (patch)
tree9e22665e41793517b7ba0b48d7315d3283dfde91 /examples/integration
parentd4c4198f7242f168de65146e0ca339e0c1cbfe9b (diff)
downloadiced-98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e.tar.gz
iced-98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e.tar.bz2
iced-98bc8cf2a7c4944d762a0148ca9f615d6ccc0d6e.zip
Rename `MouseCursor` to `mouse::Interaction`
Diffstat (limited to 'examples/integration')
-rw-r--r--examples/integration/src/main.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index da571ed1..92d2fa8d 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -8,7 +8,7 @@ use iced_wgpu::{
wgpu, window::SwapChain, Primitive, Renderer, Settings, Target,
};
use iced_winit::{
- futures, winit, Cache, Clipboard, MouseCursor, Size, UserInterface,
+ futures, mouse, winit, Cache, Clipboard, Size, UserInterface,
};
use winit::{
@@ -63,7 +63,7 @@ pub fn main() {
let mut events = Vec::new();
let mut cache = Some(Cache::default());
let mut renderer = Renderer::new(&mut device, Settings::default());
- let mut output = (Primitive::None, MouseCursor::default());
+ let mut output = (Primitive::None, mouse::Interaction::default());
let clipboard = Clipboard::new(&window);
// Initialize scene and GUI controls
@@ -189,7 +189,7 @@ pub fn main() {
scene.draw(&mut encoder, &frame.view);
// And then iced on top
- let mouse_cursor = renderer.draw(
+ let mouse_interaction = renderer.draw(
&mut device,
&mut encoder,
Target {
@@ -205,9 +205,11 @@ pub fn main() {
queue.submit(&[encoder.finish()]);
// And update the mouse cursor
- window.set_cursor_icon(iced_winit::conversion::mouse_cursor(
- mouse_cursor,
- ));
+ window.set_cursor_icon(
+ iced_winit::conversion::mouse_interaction(
+ mouse_interaction,
+ ),
+ );
}
_ => {}
}