pub fn output_geometry(&self, o: &Output) -> Option<Rectangle<i32, Logical>> {
        if !self.outputs.contains(o) {
            return None;
        }

        let transform: Transform = o.current_transform().into();
        let state = output_state(self.id, o);
        o.current_mode().map(|mode| {
            Rectangle::from_loc_and_size(
                state.location,
                transform
                    .transform_size(mode.size)
                    .to_f64()
                    .to_logical(state.render_scale)
                    .to_i32_round(),
            )
        })
    }
/// Returns the geometry of the output including it's relative position inside the space.
///
/// The size is matching the amount of logical pixels of the space visible on the output
/// given is current mode and render scale.
Returns the geometry of the output including it's relative position inside the space.
The size is matching the amount of logical pixels of the space visible on the output
given is current mode and render scale.
Returns the geometry of the output including it ' s relative position inside the space . The size is matching the amount of logical pixels of the space visible on the output given is current mode and render scale .
pub fn output_geometry(&self, o: &Output) -> Option<Rectangle<i32, Logical>> {
        if !self.outputs.contains(o) {
            return None;
        }
        let transform: Transform = o.current_transform().into();
        let state = output_state(self.id, o);
        o.current_mode().map(|mode| {
            Rectangle::from_loc_and_size(
                state.location,
                transform
                    .transform_size(mode.size)
                    .to_f64()
                    .to_logical(state.render_scale)
                    .to_i32_round(),
            )
        })
    }
pub fn output_geometry ( & self , o : & Output ) -> Option < Rectangle < i32 , Logical > > { if ! self . outputs . contains ( o ) { return None ; } let transform : Transform = o . current_transform ( ) . into ( ) ; let state = output_state ( self . id , o ) ; o . current_mode ( ) . map ( | mode | { Rectangle :: from_loc_and_size ( state . location , transform . transform_size ( mode . size ) . to_f64 ( ) . to_logical ( state . render_scale ) . to_i32_round ( ) , ) } ) }
Returns the geometry of the output including it's relative position inside the space.
Returns the geometry of the output including it ' s relative position inside the space .
&self
o
&Output
&self
o
&Output