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

@ -69,7 +69,7 @@ impl Application for Arc {
}
}
impl<Message> canvas::Program<Message, Renderer> for Arc {
impl<Message> canvas::Program<Message> for Arc {
type State = ();
fn draw(

View file

@ -92,7 +92,7 @@ mod bezier {
curves: &'a [Curve],
}
impl<'a> canvas::Program<Curve, Renderer> for Bezier<'a> {
impl<'a> canvas::Program<Curve> for Bezier<'a> {
type State = Option<Pending>;
fn update(

View file

@ -237,7 +237,7 @@ impl Theme {
}
}
impl<Message> canvas::Program<Message, Renderer> for Theme {
impl<Message> canvas::Program<Message> for Theme {
type State = ();
fn draw(

View file

@ -393,7 +393,7 @@ mod grid {
}
}
impl canvas::Program<Message, Renderer> for Grid {
impl canvas::Program<Message> for Grid {
type State = Interaction;
fn update(

View file

@ -97,7 +97,7 @@ struct SierpinskiGraph {
cache: canvas::Cache,
}
impl canvas::Program<Message, Renderer> for SierpinskiGraph {
impl canvas::Program<Message> for SierpinskiGraph {
type State = ();
fn update(

View file

@ -150,7 +150,7 @@ impl State {
}
}
impl<Message> canvas::Program<Message, Renderer> for State {
impl<Message> canvas::Program<Message> for State {
type State = ();
fn draw(