Handle mouse cursor in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2019-10-11 23:30:53 +02:00
parent 8846a239cf
commit a031a6f213
10 changed files with 104 additions and 67 deletions

View file

@ -1,5 +1,5 @@
use crate::{Primitive, Renderer};
use iced_native::{image, Image, Layout, Node, Style};
use iced_native::{image, Image, Layout, MouseCursor, Node, Style};
impl image::Renderer<&str> for Renderer {
fn node(&self, _image: &Image<&str>) -> Node {
@ -11,6 +11,6 @@ impl image::Renderer<&str> for Renderer {
_image: &Image<&str>,
_layout: Layout<'_>,
) -> Self::Output {
Primitive::None
(Primitive::None, MouseCursor::OutOfBounds)
}
}