Add Renderer argument to operate

This commit is contained in:
Héctor Ramón Jiménez 2022-12-22 14:29:24 +01:00
parent 678de11879
commit 0e9c1ab192
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
17 changed files with 50 additions and 8 deletions

View file

@ -294,6 +294,7 @@ where
&self,
tree: &mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
operation: &mut dyn widget::Operation<Message>,
) {
operation.container(None, &mut |operation| {
@ -302,7 +303,7 @@ where
.zip(&mut tree.children)
.zip(layout.children())
.for_each(|(((_pane, content), state), layout)| {
content.operate(state, layout, operation);
content.operate(state, layout, renderer, operation);
})
});
}