Merge pull request #1284 from iced-rs/virtual-widgets
Stateless widgets
This commit is contained in:
commit
0eef527fa5
140 changed files with 12733 additions and 2709 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue