summaryrefslogblamecommitdiffstats
path: root/wgpu/src/renderer/image.rs
blob: a29a3d49d543efd787a7d2b1984a2bda1b3677a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                 
                                                                  

                                         
                                                  






                                   
                       
                                                   

     
use crate::{Primitive, Renderer};
use iced_native::{image, Image, Layout, MouseCursor, Node, Style};

impl image::Renderer<&str> for Renderer {
    fn node(&self, _image: &Image<&str>) -> Node {
        Node::new(Style::default())
    }

    fn draw(
        &mut self,
        _image: &Image<&str>,
        _layout: Layout<'_>,
    ) -> Self::Output {
        (Primitive::None, MouseCursor::OutOfBounds)
    }
}