Handle mouse cursor in iced_wgpu
This commit is contained in:
parent
8846a239cf
commit
a031a6f213
10 changed files with 104 additions and 67 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue