pub fn bounds_signal<WH: Signal<Item = (f64, f64)>>(&self, width_height_signal:WH, invert_y: bool) -> impl Signal<Item = Option<BoundsF64>> {
        map_ref! {
            let (width, height) = width_height_signal,
            let pos = self.pos_signal()
            => move {
                let width = *width;
                let height = *height;
                pos.map(|pos| {
                    BoundsF64 {x: pos.x as f64, y: pos.y as f64, width, height, invert_y}
                })
            }
        }
    }
// a signal of width,height and a signal of pos combined
a signal of width,height and a signal of pos combined
a signal of width height and a signal of pos combined
pub fn bounds_signal<WH: Signal<Item = (f64, f64)>>(&self, width_height_signal:WH, invert_y: bool) -> impl Signal<Item = Option<BoundsF64>> {
        map_ref! {
            let (width, height) = width_height_signal,
            let pos = self.pos_signal()
            => move {
                let width = *width;
                let height = *height;
                pos.map(|pos| {
                    BoundsF64 {x: pos.x as f64, y: pos.y as f64, width, height, invert_y}
                })
            }
        }
    }
pub fn bounds_signal < WH : Signal < Item = ( f64 , f64 ) > > ( & self , width_height_signal : WH , invert_y : bool ) -> impl Signal < Item = Option < BoundsF64 > > { map_ref ! { let ( width height ) width_height_signal let pos self pos_signal ( ) move { let width width let height height pos map ( pos { BoundsF64 { x pos x as f64 y pos y as f64 width height invert_y } } ) } } }
a signal of width,height and a signal of pos combined
a signal of width height and a signal of pos combined
&self
width_height_signal
WH
invert_y
bool
&self
width_height_signal
WH
invert_y
bool