Move Canvas and QRCode to iced crate
Rename `canvas` modules to `geometry` in graphics subcrates
This commit is contained in:
parent
d13d19ba35
commit
6cc48b5c62
39 changed files with 140 additions and 148 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue