MCPcopy Create free account
hub / github.com/StrataWM/strata / output_geometry

Method output_geometry

src/workspaces.rs:221–237  ·  view source on GitHub ↗
(&self, o: &Output)

Source from the content-addressed store, hash-verified

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,

Callers 3

surface_underMethod · 0.80
clamp_coordsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected