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
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ mod grid {
|
|||
}
|
||||
}
|
||||
|
||||
impl canvas::Program<Message, Renderer> for Grid {
|
||||
impl canvas::Program<Message> for Grid {
|
||||
type State = Interaction;
|
||||
|
||||
fn update(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue