///
/// Returns the actual format of this window.
///
/// After the window has been created, this function will return the actual surface format
/// of the window. It might differ from the requested format if the requested format could
/// not be fulfilled by the platform. It might also be a superset, for example certain
/// buffer sizes may be larger than requested.
///
/// **Note**: Depending on the platform, certain values in this surface format may still
/// contain the requested values, that is, the values that have been passed to
/// setFormat(). Typical examples are the OpenGL version, profile and options. These may
/// not get updated during create() since these are context specific and a single window
/// may be used together with multiple contexts over its lifetime. Use the
/// QOpenGLContext's format() instead to query such values.
///
/// **See also:** [`create()`]
/// [`requested_format()`]
/// [`OpenGLContext::format`]
Returns the actual format of this window.
After the window has been created, this function will return the actual surface format
of the window. It might differ from the requested format if the requested format could
not be fulfilled by the platform. It might also be a superset, for example certain
buffer sizes may be larger than requested.

Note**: Depending on the platform, certain values in this surface format may still
contain the requested values, that is, the values that have been passed to
setFormat(). Typical examples are the OpenGL version, profile and options. These may
not get updated during create() since these are context specific and a single window
may be used together with multiple contexts over its lifetime. Use the
QOpenGLContext's format() instead to query such values.


Returns the actual format of this window . After the window has been created this function will return the actual surface format of the window . It might differ from the requested format if the requested format could not be fulfilled by the platform . It might also be a superset for example certain buffer sizes may be larger than requested . Note ** : Depending on the platform certain values in this surface format may still contain the requested values that is the values that have been passed to setFormat () . Typical examples are the OpenGL version profile and options . These may not get updated during create () since these are context specific and a single window may be used together with multiple contexts over its lifetime . Use the QOpenGLContext ' s format () instead to query such values .
pub fn format(&self) -> SurfaceFormat {
        let (obj_data, funcs) = self.get_window_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).format)(obj_data);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = SurfaceFormat::new_from_rc(t);
            } else {
                ret_val = SurfaceFormat::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn format ( & self ) -> SurfaceFormat { let ( obj_data , funcs ) = self . get_window_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . format ) ( obj_data ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = SurfaceFormat :: new_from_rc ( t ) ; } else { ret_val = SurfaceFormat :: new_from_owned ( t ) ; } ret_val } }
Returns the actual format of this window.
Returns the actual format of this window .
&self