///
/// mode) const
///
/// Returns a scaled copy of the image. The returned image is scaled
/// to the given *width* using the specified transformation *mode.*
/// The height of the pixmap is automatically calculated so that the
/// aspect ratio of the pixmap is preserved.
///
/// If *width* is 0 or negative, a null pixmap is returned.
///
/// **See also:** [`is_null()`]
/// {QPixmap#Pixmap Transformations}{Pixmap
/// Transformations}
mode) const
Returns a scaled copy of the image. The returned image is scaled
to the given *width* using the specified transformation *mode.
The height of the pixmap is automatically calculated so that the
aspect ratio of the pixmap is preserved.

If *width* is 0 or negative, a null pixmap is returned.


mode ) const Returns a scaled copy of the image . The returned image is scaled to the given * width * using the specified transformation * mode . The height of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved . If * width * is 0 or negative a null pixmap is returned .
pub fn scaled_to_width(&self, w: i32, mode: TransformationMode) -> Pixmap {
        let enum_mode_2 = mode as u32;
        let (obj_data, funcs) = self.get_pixmap_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scaled_to_width)(obj_data, w, enum_mode_2);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Pixmap::new_from_rc(t);
            } else {
                ret_val = Pixmap::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn scaled_to_width ( & self , w : i32 , mode : TransformationMode ) -> Pixmap { let enum_mode_2 = mode as u32 ; let ( obj_data , funcs ) = self . get_pixmap_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . scaled_to_width ) ( obj_data , w , enum_mode_2 ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Pixmap :: new_from_rc ( t ) ; } else { ret_val = Pixmap :: new_from_owned ( t ) ; } ret_val } }
mode) const
Returns a scaled copy of the image.
mode ) const Returns a scaled copy of the image .
&self
w
i32
mode
TransformationMode