///
/// Translates the widget coordinate *pos* to a coordinate in the
/// parent widget.
///
/// Same as mapToGlobal() if the widget has no parent.
///
/// **See also:** [`map_from_parent()`]
/// [`map_to()`]
/// [`map_to_global()`]
/// [`under_mouse()`]
Translates the widget coordinate *pos* to a coordinate in the
parent widget.

Same as mapToGlobal() if the widget has no parent.


Translates the widget coordinate * pos * to a coordinate in the parent widget . Same as mapToGlobal () if the widget has no parent .
pub fn map_to_parent<P: PointTrait<'a>>(&self, arg0: &P) -> Point {
        let (obj_arg0_1, _funcs) = arg0.get_point_obj_funcs();
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).map_to_parent)(obj_data, obj_arg0_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_to_parent < P : PointTrait < ' a > > ( & self , arg0 : & P ) -> Point { let ( obj_arg0_1 , _funcs ) = arg0 . get_point_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . map_to_parent ) ( obj_data , obj_arg0_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 widget coordinate *pos* to a coordinate in the
parent widget.
Translates the widget coordinate * pos * to a coordinate in the parent widget .
&self
arg0
&P