pub fn scale(&self, sx: f32, sy: f32) -> Option<Transform> {
        let (obj_data, funcs) = self.get_transform_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scale)(obj_data, sx, sy);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Transform::new_from_rc(t);
            } else {
                ret_val = Transform::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
///
/// Scales the coordinate system by *sx* horizontally and *sy*
/// vertically, and returns a reference to the matrix.
///
/// **See also:** [`set_matrix()`]
Scales the coordinate system by *sx* horizontally and *sy
vertically, and returns a reference to the matrix.


Scales the coordinate system by * sx * horizontally and * sy vertically and returns a reference to the matrix .
pub fn scale(&self, sx: f32, sy: f32) -> Option<Transform> {
        let (obj_data, funcs) = self.get_transform_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).scale)(obj_data, sx, sy);
            if ret_val.qt_data == ::std::ptr::null() {
                return None;
            }
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Transform::new_from_rc(t);
            } else {
                ret_val = Transform::new_from_owned(t);
            }
            Some(ret_val)
        }
    }
pub fn scale ( & self , sx : f32 , sy : f32 ) -> Option < Transform > { let ( obj_data , funcs ) = self . get_transform_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . scale ) ( obj_data , sx , sy ) ; if ret_val . qt_data == :: std :: ptr :: null ( ) { return None ; } let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Transform :: new_from_rc ( t ) ; } else { ret_val = Transform :: new_from_owned ( t ) ; } Some ( ret_val ) } }
Scales the coordinate system by *sx* horizontally and *sy
vertically, and returns a reference to the matrix.
Scales the coordinate system by * sx * horizontally and * sy vertically and returns a reference to the matrix .
&self
sx
f32
sy
f32
&self
sx
f32
sy
f32