1
0
Fork 0
forked from wry/wry

autocommit 2022-02-20 15:31:54 CET

This commit is contained in:
Julian Orth 2022-02-20 15:31:54 +01:00
parent 0f2fbcc5e7
commit 26fab1e3e2
10 changed files with 198 additions and 19 deletions

View file

@ -110,6 +110,10 @@ pub trait Node {
let _ = direction;
}
fn move_self(self: Rc<Self>, direction: Direction) {
let _ = direction;
}
fn move_focus_from_child(
&self,
seat: &Rc<WlSeatGlobal>,
@ -121,6 +125,15 @@ pub trait Node {
let _ = child;
}
fn move_child(
self: Rc<Self>,
child: Rc<dyn Node>,
direction: Direction,
) {
let _ = direction;
let _ = child;
}
fn absolute_position(&self) -> Rect {
Rect::new_empty(0, 0)
}
@ -175,7 +188,7 @@ pub trait Node {
FindTreeResult::Other
}
fn replace_child(&self, old: &dyn Node, new: Rc<dyn Node>) {
fn replace_child(self: Rc<Self>, old: &dyn Node, new: Rc<dyn Node>) {
let _ = old;
let _ = new;
}
@ -234,6 +247,10 @@ pub trait Node {
false
}
fn is_workspace(&self) -> bool {
false
}
fn change_extents(self: Rc<Self>, rect: &Rect) {
let _ = rect;
}
@ -242,6 +259,10 @@ pub trait Node {
let _ = ws;
}
fn set_parent(self: Rc<Self>, parent: Rc<dyn Node>) {
let _ = parent;
}
fn client(&self) -> Option<Rc<Client>> {
None
}