autocommit 2022-04-08 23:02:38 CEST
This commit is contained in:
parent
0bd9a70e69
commit
21e2216ce5
40 changed files with 587 additions and 255 deletions
11
src/tree.rs
11
src/tree.rs
|
|
@ -74,6 +74,11 @@ pub trait Node {
|
|||
fn destroy_node(&self, detach: bool);
|
||||
fn visit(self: Rc<Self>, visitor: &mut dyn NodeVisitor);
|
||||
fn visit_children(&self, visitor: &mut dyn NodeVisitor);
|
||||
fn visible(&self) -> bool;
|
||||
|
||||
fn set_visible(&self, visible: bool) {
|
||||
let _ = visible;
|
||||
}
|
||||
|
||||
fn get_workspace(&self) -> Option<Rc<WorkspaceNode>> {
|
||||
None
|
||||
|
|
@ -134,6 +139,10 @@ pub trait Node {
|
|||
let _ = direction;
|
||||
}
|
||||
|
||||
fn close(&self) {
|
||||
// nothing
|
||||
}
|
||||
|
||||
fn move_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, direction: Direction) {
|
||||
let _ = seat;
|
||||
let _ = direction;
|
||||
|
|
@ -144,7 +153,7 @@ pub trait Node {
|
|||
}
|
||||
|
||||
fn move_focus_from_child(
|
||||
&self,
|
||||
self: Rc<Self>,
|
||||
seat: &Rc<WlSeatGlobal>,
|
||||
child: &dyn Node,
|
||||
direction: Direction,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue