| 1 | pub mod tiling; |
| 2 | |
| 3 | use x11rb::protocol::xproto::Window; |
| 4 | |
| 5 | pub trait Layout { |
| 6 | fn arrange( |
| 7 | &self, |
| 8 | windows: &[Window], |
| 9 | screen_width: u32, |
| 10 | screen_height: u32, |
| 11 | ) -> Vec<WindowGeometry>; |
| 12 | } |
| 13 | |
| 14 | pub struct WindowGeometry { |
| 15 | pub x_coordinate: i32, |
| 16 | pub y_coordinate: i32, |
| 17 | pub width: u32, |
| 18 | pub height: u32, |
| 19 | } |