pub fn scaled_2<S: SizeTrait<'a>>(&self, s: &S, mode: AspectRatioMode) -> Size {
        let (obj_s_1, _funcs) = s.get_size_obj_funcs();
        let enum_mode_2 = mode as u32;

        let (obj_data, funcs) = self.get_size_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled_2)(obj_data, obj_s_1, enum_mode_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Size::new_from_rc(t);
            } else {
                ret_val = Size::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Return a size scaled to a rectangle with the given *width* and *height,* according to the specified *mode.*
///
/// **See also:** [`scale()`]
///
/// **Overloads**
/// Return a size scaled to a rectangle with the given size *s,*
/// according to the specified *mode.*


Overloads
Return a size scaled to a rectangle with the given size *s,
according to the specified *mode.
Overloads Return a size scaled to a rectangle with the given size * s according to the specified * mode .
pub fn scaled_2<S: SizeTrait<'a>>(&self, s: &S, mode: AspectRatioMode) -> Size {
        let (obj_s_1, _funcs) = s.get_size_obj_funcs();
        let enum_mode_2 = mode as u32;
        let (obj_data, funcs) = self.get_size_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled_2)(obj_data, obj_s_1, enum_mode_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Size::new_from_rc(t);
            } else {
                ret_val = Size::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn scaled_2 < S : SizeTrait < ' a > > ( & self , s : & S , mode : AspectRatioMode ) -> Size { let ( obj_s_1 , _funcs ) = s . get_size_obj_funcs ( ) ; let enum_mode_2 = mode as u32 ; let ( obj_data , funcs ) = self . get_size_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . scaled_2 ) ( obj_data , obj_s_1 , enum_mode_2 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Size :: new_from_rc ( t ) ; } else { ret_val = Size :: new_from_owned ( t ) ; } ret_val } }
Return a size scaled to a rectangle with the given *width* and *height,* according to the specified *mode.
Return a size scaled to a rectangle with the given * width * and * height * according to the specified * mode .
&self
s
&S
mode
AspectRatioMode
&self
s
&S
mode
AspectRatioMode