Move Layer to iced_graphics
This commit is contained in:
parent
e618091248
commit
720e7756f2
18 changed files with 433 additions and 616 deletions
|
|
@ -304,11 +304,11 @@ impl Frame {
|
|||
pub fn into_geometry(mut self) -> Geometry {
|
||||
if !self.buffers.indices.is_empty() {
|
||||
self.primitives.push(Primitive::Mesh2D {
|
||||
size: self.size,
|
||||
buffers: triangle::Mesh2D {
|
||||
vertices: self.buffers.vertices,
|
||||
indices: self.buffers.indices,
|
||||
},
|
||||
size: self.size,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use iced_native::image;
|
|||
use iced_native::mouse;
|
||||
use iced_native::Layout;
|
||||
|
||||
pub use iced_native::Image;
|
||||
pub use iced_native::image::{Handle, Image};
|
||||
|
||||
impl<B> image::Renderer for Renderer<B>
|
||||
where
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use crate::backend::{self, Backend};
|
|||
use crate::{Primitive, Renderer};
|
||||
use iced_native::{mouse, svg, Layout};
|
||||
|
||||
pub use iced_native::Svg;
|
||||
pub use iced_native::svg::{Handle, Svg};
|
||||
|
||||
impl<B> svg::Renderer for Renderer<B>
|
||||
where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue