Move Canvas and QRCode to iced crate

Rename `canvas` modules to `geometry` in graphics subcrates
This commit is contained in:
Héctor Ramón Jiménez 2023-03-03 04:57:55 +01:00
parent d13d19ba35
commit 6cc48b5c62
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
39 changed files with 140 additions and 148 deletions

View file

@ -329,8 +329,6 @@ impl Backend {
}
impl iced_graphics::Backend for Backend {
type Geometry = ();
fn trim_measurements(&mut self) {
self.text_pipeline.trim_measurement_cache()
}

View file

@ -1,9 +1,9 @@
use iced_graphics::primitive::{self, Primitive};
use iced_native::widget::canvas::fill::{self, Fill};
use iced_native::widget::canvas::{
use iced_graphics::geometry::fill::{self, Fill};
use iced_graphics::geometry::{
LineCap, LineDash, LineJoin, Path, Stroke, Style, Text,
};
use iced_native::{Gradient, Point, Rectangle, Size, Vector};
use iced_graphics::primitive::{self, Primitive};
use iced_graphics::{Gradient, Point, Rectangle, Size, Vector};
use lyon::geom::euclid;
use lyon::tessellation;

View file

@ -41,8 +41,8 @@ pub mod layer;
pub mod settings;
pub mod window;
#[cfg(feature = "canvas")]
pub mod canvas;
#[cfg(feature = "geometry")]
pub mod geometry;
mod backend;
mod buffer;