1
0
Fork 0
forked from wry/wry

autocommit 2022-02-20 16:07:02 CET

This commit is contained in:
Julian Orth 2022-02-20 16:07:02 +01:00
parent a2f078cb66
commit 4429b4cac6
3 changed files with 50 additions and 25 deletions

View file

@ -244,9 +244,15 @@ pub trait Node {
}
fn accepts_child(&self, node: &dyn Node) -> bool {
let _ = node;
false
}
fn insert_child(self: Rc<Self>, node: Rc<dyn Node>, direction: Direction) {
let _ = node;
let _ = direction;
}
fn is_float(&self) -> bool {
false
}
@ -537,10 +543,6 @@ impl Node for FloatNode {
}
}
fn accepts_child(&self, _node: &dyn Node) -> bool {
true
}
fn absolute_position(&self) -> Rect {
self.position.get()
}
@ -582,6 +584,10 @@ impl Node for FloatNode {
Some(self)
}
fn accepts_child(&self, _node: &dyn Node) -> bool {
true
}
fn is_float(&self) -> bool {
true
}