(&self, o: &Output)
| 219 | } |
| 220 | |
| 221 | pub fn output_geometry(&self, o: &Output) -> Option<Rectangle<i32, Logical>> { |
| 222 | if !self.outputs.contains(o) { |
| 223 | return None; |
| 224 | } |
| 225 | |
| 226 | let transform: Transform = o.current_transform(); |
| 227 | o.current_mode().map(|mode| { |
| 228 | Rectangle::from_loc_and_size( |
| 229 | (0, 0), |
| 230 | transform |
| 231 | .transform_size(mode.size) |
| 232 | .to_f64() |
| 233 | .to_logical(o.current_scale().fractional_scale()) |
| 234 | .to_i32_ceil(), |
| 235 | ) |
| 236 | }) |
| 237 | } |
| 238 | |
| 239 | pub fn window_under<P: Into<Point<f64, Logical>>>( |
| 240 | &self, |
no outgoing calls
no test coverage detected