Merge pull request #1284 from iced-rs/virtual-widgets

Stateless widgets
This commit is contained in:
Héctor Ramón 2022-03-23 17:11:14 +07:00 committed by GitHub
commit 0eef527fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
140 changed files with 12733 additions and 2709 deletions

View file

@ -235,7 +235,7 @@ impl Theme {
}
}
impl canvas::Program<Message> for Theme {
impl<Message> canvas::Program<Message> for Theme {
fn draw(&self, bounds: Rectangle, _cursor: Cursor) -> Vec<Geometry> {
let theme = self.canvas_cache.draw(bounds.size(), |frame| {
self.draw(frame);