1
0
Fork 0
forked from wry/wry

autocommit 2022-02-20 15:48:24 CET

This commit is contained in:
Julian Orth 2022-02-20 15:48:24 +01:00
parent 26fab1e3e2
commit a2f078cb66
6 changed files with 72 additions and 50 deletions

View file

@ -125,11 +125,7 @@ pub trait Node {
let _ = child;
}
fn move_child(
self: Rc<Self>,
child: Rc<dyn Node>,
direction: Direction,
) {
fn move_child(self: Rc<Self>, child: Rc<dyn Node>, direction: Direction) {
let _ = direction;
let _ = child;
}
@ -243,6 +239,14 @@ pub trait Node {
None
}
fn is_container(&self) -> bool {
false
}
fn accepts_child(&self, node: &dyn Node) -> bool {
false
}
fn is_float(&self) -> bool {
false
}
@ -533,6 +537,10 @@ impl Node for FloatNode {
}
}
fn accepts_child(&self, _node: &dyn Node) -> bool {
true
}
fn absolute_position(&self) -> Rect {
self.position.get()
}