1
0
Fork 0
forked from wry/wry

autocommit 2022-04-04 00:28:58 CEST

This commit is contained in:
Julian Orth 2022-04-04 00:28:58 +02:00
parent 9ec1c5c995
commit 1f71290dab
21 changed files with 1217 additions and 132 deletions

View file

@ -1,4 +1,4 @@
use crate::backend::{Backend, Output, OutputId};
use crate::backend::{Backend, Connector, ConnectorEvent, OutputId};
use std::rc::Rc;
pub struct DummyBackend {}
@ -13,21 +13,13 @@ pub struct DummyOutput {
pub id: OutputId,
}
impl Output for DummyOutput {
impl Connector for DummyOutput {
fn id(&self) -> OutputId {
self.id
}
fn removed(&self) -> bool {
false
}
fn width(&self) -> i32 {
100
}
fn height(&self) -> i32 {
100
fn event(&self) -> Option<ConnectorEvent> {
None
}
fn on_change(&self, _cb: Rc<dyn Fn()>) {