///
/// Translates the global screen coordinate *pos* to window
/// coordinates.
///
/// **See also:** [`map_to_global()`]
Translates the global screen coordinate *pos* to window
coordinates.


Translates the global screen coordinate * pos * to window coordinates .
pub fn map_from_global<P: PointTrait<'a>>(&self, pos: &P) -> Point {
        let (obj_pos_1, _funcs) = pos.get_point_obj_funcs();
        let (obj_data, funcs) = self.get_window_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).map_from_global)(obj_data, obj_pos_1);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Point::new_from_rc(t);
            } else {
                ret_val = Point::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn map_from_global < P : PointTrait < ' a > > ( & self , pos : & P ) -> Point { let ( obj_pos_1 , _funcs ) = pos . get_point_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_window_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . map_from_global ) ( obj_data , obj_pos_1 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Point :: new_from_rc ( t ) ; } else { ret_val = Point :: new_from_owned ( t ) ; } ret_val } }
Translates the global screen coordinate *pos* to window
coordinates.
Translates the global screen coordinate * pos * to window coordinates .
&self
pos
&P