1
0
Fork 0
forked from wry/wry

autocommit 2022-04-14 19:52:11 CEST

This commit is contained in:
Julian Orth 2022-04-14 19:52:11 +02:00
parent 35ddfbcbe3
commit 5f13954dbc
27 changed files with 556 additions and 312 deletions

View file

@ -1,10 +1,12 @@
use {
crate::{
async_engine::SpawnedFuture,
fixed::Fixed,
ifs::wl_seat::wl_pointer::{CONTINUOUS, FINGER, HORIZONTAL_SCROLL, VERTICAL_SCROLL, WHEEL},
video::drm::ConnectorType,
},
std::{
error::Error,
fmt::{Debug, Display, Formatter},
rc::Rc,
},
@ -14,6 +16,8 @@ linear_ids!(ConnectorIds, ConnectorId);
linear_ids!(InputDeviceIds, InputDeviceId);
pub trait Backend {
fn run(self: Rc<Self>) -> SpawnedFuture<Result<(), Box<dyn Error>>>;
fn switch_to(&self, vtnr: u32) {
let _ = vtnr;
}
@ -21,6 +25,14 @@ pub trait Backend {
fn set_idle(&self, idle: bool) {
let _ = idle;
}
fn supports_idle(&self) -> bool {
false
}
fn is_freestanding(&self) -> bool {
false
}
}
#[derive(Copy, Clone, Debug, Default, Eq, PartialEq)]