pub fn from_theme(name: &str) -> Icon<'a> {
        let str_in_name_1 = CString::new(name).unwrap();

        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_icon)(::std::ptr::null()).all_funcs).icon_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).from_theme)(obj_data, str_in_name_1.as_ptr());
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Icon::new_from_rc(t);
            } else {
                ret_val = Icon::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Returns the QIcon corresponding to *name* in the current
/// icon theme.
///
/// The latest version of the freedesktop icon specification and naming
/// specification can be obtained here:
///
/// * [http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html](http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html)
///
/// * [http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html](http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html)
///
/// To fetch an icon from the current icon theme:
///
/// **Note**: By default, only X11 will support themed icons. In order to
/// use themed icons on Mac and Windows, you will have to bundle a
/// compliant theme in one of your themeSearchPaths() and set the
/// appropriate themeName().
///
/// **Note**: Qt will make use of GTK's icon-theme.cache if present to speed up
/// the lookup. These caches can be generated using gtk-update-icon-cache:
/// [https://developer.gnome.org/gtk3/stable/gtk-update-icon-cache.html](https://developer.gnome.org/gtk3/stable/gtk-update-icon-cache.html)
///
///
/// **Note**: If an icon can't be found in the current theme, then it will be
/// searched in fallbackSearchPaths() as an unthemed icon.
///
/// **See also:** [`theme_name()`]
/// [`set_theme_name()`]
/// [`theme_search_paths()`]
/// [`fallback_search_paths()`]
///
/// **Overloads**
/// Returns the QIcon corresponding to *name* in the current
/// icon theme. If no such icon is found in the current theme
/// *fallback* is returned instead.
///
/// If you want to provide a guaranteed fallback for platforms that
/// do not support theme icons, you can use the second argument:
///
Returns the QIcon corresponding to *name* in the current
icon theme.

The latest version of the freedesktop icon specification and naming
specification can be obtained here.





To fetch an icon from the current icon theme.

Note**: By default, only X11 will support themed icons. In order to
use themed icons on Mac and Windows, you will have to bundle a
compliant theme in one of your themeSearchPaths() and set the
appropriate themeName().

Note**: Qt will make use of GTK's icon-theme.cache if present to speed up
the lookup.

Note**: If an icon can't be found in the current theme, then it will be
searched in fallbackSearchPaths() as an unthemed icon.



Overloads
Returns the QIcon corresponding to *name* in the current
icon theme. If no such icon is found in the current theme
fallback* is returned instead.

If you want to provide a guaranteed fallback for platforms that
do not support theme icons, you can use the second argument.
Returns the QIcon corresponding to * name * in the current icon theme . The latest version of the freedesktop icon specification and naming specification can be obtained here . To fetch an icon from the current icon theme . Note ** : By default only X11 will support themed icons . In order to use themed icons on Mac and Windows you will have to bundle a compliant theme in one of your themeSearchPaths () and set the appropriate themeName () . Note ** : Qt will make use of GTK ' s icon - theme . cache if present to speed up the lookup . Note ** : If an icon can ' t be found in the current theme then it will be searched in fallbackSearchPaths () as an unthemed icon . Overloads Returns the QIcon corresponding to * name * in the current icon theme . If no such icon is found in the current theme fallback * is returned instead . If you want to provide a guaranteed fallback for platforms that do not support theme icons you can use the second argument .
pub fn from_theme(name: &str) -> Icon<'a> {
        let str_in_name_1 = CString::new(name).unwrap();
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_icon)(::std::ptr::null()).all_funcs).icon_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).from_theme)(obj_data, str_in_name_1.as_ptr());
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Icon::new_from_rc(t);
            } else {
                ret_val = Icon::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn from_theme ( name : & str ) -> Icon < ' a > { let str_in_name_1 = CString :: new ( name ) . unwrap ( ) ; let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_icon ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . icon_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . from_theme ) ( obj_data , str_in_name_1 . as_ptr ( ) ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Icon :: new_from_rc ( t ) ; } else { ret_val = Icon :: new_from_owned ( t ) ; } ret_val } }
Returns the QIcon corresponding to *name* in the current
icon theme.
Returns the QIcon corresponding to * name * in the current icon theme .
name
&str
name
&str