Introduce explicit image::allocate API
This commit is contained in:
parent
6fa54f7f6b
commit
23039e758e
15 changed files with 355 additions and 51 deletions
|
|
@ -69,6 +69,14 @@ where
|
|||
fn end_transformation(&mut self) {
|
||||
delegate!(self, renderer, renderer.end_transformation());
|
||||
}
|
||||
|
||||
fn allocate_image(
|
||||
&mut self,
|
||||
handle: &image::Handle,
|
||||
callback: impl FnOnce(image::Allocation) + Send + 'static,
|
||||
) {
|
||||
delegate!(self, renderer, renderer.allocate_image(handle, callback));
|
||||
}
|
||||
}
|
||||
|
||||
impl<A, B> core::text::Renderer for Renderer<A, B>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue