pub fn scaled(&self, w: i32, h: i32, mode: AspectRatioMode) -> Size {
        let enum_mode_3 = mode as u32;

        let (obj_data, funcs) = self.get_size_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled)(obj_data, w, h, enum_mode_3);
            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(&self, w: i32, h: i32, mode: AspectRatioMode) -> Size {
        let enum_mode_3 = mode as u32;
        let (obj_data, funcs) = self.get_size_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled)(obj_data, w, h, enum_mode_3);
            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 ( & self , w : i32 , h : i32 , mode : AspectRatioMode ) -> Size { let enum_mode_3 = mode as u32 ; let ( obj_data , funcs ) = self . get_size_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . scaled ) ( obj_data , w , h , enum_mode_3 ) ; 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
w
i32
h
i32
mode
AspectRatioMode
&self
w
i32
h
i32
mode
AspectRatioMode