mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
separate Engine from RenderTarget
This commit is contained in:
parent
60acb20a57
commit
ff6751d393
4 changed files with 70 additions and 56 deletions
|
|
@ -310,13 +310,13 @@ impl<E: Engine> Widget for JackDevice<E> {
|
|||
fn layout (&self, to: E::Size) -> Perhaps<E::Size> {
|
||||
self.state.read().unwrap().layout(to)
|
||||
}
|
||||
fn render (&self, to: &mut E) -> Perhaps<E::Area> {
|
||||
fn render (&self, to: &mut E::Output) -> Perhaps<E::Area> {
|
||||
self.state.read().unwrap().render(to)
|
||||
}
|
||||
}
|
||||
|
||||
impl<E: Engine> Handle<E> for JackDevice<E> {
|
||||
fn handle (&mut self, from: &E::HandleInput) -> Perhaps<E::Handled> {
|
||||
fn handle (&mut self, from: &E::Input) -> Perhaps<E::Handled> {
|
||||
self.state.write().unwrap().handle(from)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue