Reintroduce generic Message type for canvas::Program
As it is useful to make the `Message` completely free in many implementations.
This commit is contained in:
parent
d7100fd259
commit
32fd8dadda
10 changed files with 55 additions and 68 deletions
|
|
@ -76,9 +76,7 @@ impl Application for Clock {
|
|||
}
|
||||
}
|
||||
|
||||
impl canvas::Program for Clock {
|
||||
type Message = Message;
|
||||
|
||||
impl<Message> canvas::Program<Message> for Clock {
|
||||
fn draw(&self, bounds: Rectangle, _cursor: Cursor) -> Vec<Geometry> {
|
||||
let clock = self.clock.draw(bounds.size(), |frame| {
|
||||
let center = frame.center();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue