jay-compositor 1.13.0

The Jay compositor
1
2
3
4
5
6
7
8
9
10
11
use crate::tree::ToplevelNode;

pub trait TestToplevelNodeExt {
    fn center(&self) -> (i32, i32);
}

impl TestToplevelNodeExt for dyn ToplevelNode {
    fn center(&self) -> (i32, i32) {
        self.node_absolute_position().center()
    }
}