pub fn connect(&self) -> Result<bool, glib::Error> {
        unsafe {
            let mut error = ptr::null_mut();
            let ret = ffi::cogl_renderer_connect(self.to_glib_none().0, &mut error);
            if error.is_null() {
                Ok(ret == crate::TRUE)
            } else {
                Err(from_glib_full(error))
            }
        }
    }
/// Connects the configured `self`. Renderer connection isn't a
/// very active process, it basically just means validating that
/// any given constraint criteria can be satisfied and that a
/// usable driver and window system backend can be found.
///
/// # Returns
///
/// `true` if there was no error while connecting the
///  given `self`. `false` if there was an error.
Connects the configured `self`. Renderer connection isn't a
very active process, it basically just means validating that
any given constraint criteria can be satisfied and that a
usable driver and window system backend can be found.
Connects the configured ` self ` . Renderer connection isn ' t a very active process it basically just means validating that any given constraint criteria can be satisfied and that a usable driver and window system backend can be found .
pub fn connect(&self) -> Result<bool, glib::Error> {
        unsafe {
            let mut error = ptr::null_mut();
            let ret = ffi::cogl_renderer_connect(self.to_glib_none().0, &mut error);
            if error.is_null() {
                Ok(ret == crate::TRUE)
            } else {
                Err(from_glib_full(error))
            }
        }
    }
pub fn connect ( & self ) -> Result < bool , glib :: Error > { unsafe { let mut error = ptr :: null_mut ( ) ; let ret = ffi :: cogl_renderer_connect ( self . to_glib_none ( ) . 0 , & mut error ) ; if error . is_null ( ) { Ok ( ret == crate :: TRUE ) } else { Err ( from_glib_full ( error ) ) } } }
Connects the configured `self`.
Connects the configured ` self ` .
&self
`true` if there was no error while connecting the
given `self`. `false` if there was an error.
` true ` if there was no error while connecting the given ` self ` . ` false ` if there was an error .
&self