Trait IconThemeExt

Source
pub trait IconThemeExt: 'static {
Show 18 methods // Required methods fn add_resource_path(&self, path: &str); fn append_search_path<P: AsRef<Path>>(&self, path: P); fn get_example_icon_name(&self) -> Option<GString>; fn has_icon(&self, icon_name: &str) -> bool; fn list_contexts(&self) -> Vec<GString>; fn list_icons(&self, context: Option<&str>) -> Vec<GString>; fn load_icon( &self, icon_name: &str, size: i32, flags: IconLookupFlags, ) -> Result<Option<Pixbuf>, Error>; fn load_icon_for_scale( &self, icon_name: &str, size: i32, scale: i32, flags: IconLookupFlags, ) -> Result<Option<Pixbuf>, Error>; fn load_surface<P: IsA<Window>>( &self, icon_name: &str, size: i32, scale: i32, for_window: Option<&P>, flags: IconLookupFlags, ) -> Result<Option<Surface>, Error>; fn lookup_by_gicon<P: IsA<Icon>>( &self, icon: &P, size: i32, flags: IconLookupFlags, ) -> Option<IconInfo>; fn lookup_by_gicon_for_scale<P: IsA<Icon>>( &self, icon: &P, size: i32, scale: i32, flags: IconLookupFlags, ) -> Option<IconInfo>; fn lookup_icon( &self, icon_name: &str, size: i32, flags: IconLookupFlags, ) -> Option<IconInfo>; fn lookup_icon_for_scale( &self, icon_name: &str, size: i32, scale: i32, flags: IconLookupFlags, ) -> Option<IconInfo>; fn prepend_search_path<P: AsRef<Path>>(&self, path: P); fn rescan_if_needed(&self) -> bool; fn set_custom_theme(&self, theme_name: Option<&str>); fn set_screen(&self, screen: &Screen); fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}

Required Methods§

Source

fn add_resource_path(&self, path: &str)

Source

fn append_search_path<P: AsRef<Path>>(&self, path: P)

Source

fn get_example_icon_name(&self) -> Option<GString>

Source

fn has_icon(&self, icon_name: &str) -> bool

Source

fn list_contexts(&self) -> Vec<GString>

Source

fn list_icons(&self, context: Option<&str>) -> Vec<GString>

Source

fn load_icon( &self, icon_name: &str, size: i32, flags: IconLookupFlags, ) -> Result<Option<Pixbuf>, Error>

Source

fn load_icon_for_scale( &self, icon_name: &str, size: i32, scale: i32, flags: IconLookupFlags, ) -> Result<Option<Pixbuf>, Error>

Source

fn load_surface<P: IsA<Window>>( &self, icon_name: &str, size: i32, scale: i32, for_window: Option<&P>, flags: IconLookupFlags, ) -> Result<Option<Surface>, Error>

Source

fn lookup_by_gicon<P: IsA<Icon>>( &self, icon: &P, size: i32, flags: IconLookupFlags, ) -> Option<IconInfo>

Source

fn lookup_by_gicon_for_scale<P: IsA<Icon>>( &self, icon: &P, size: i32, scale: i32, flags: IconLookupFlags, ) -> Option<IconInfo>

Source

fn lookup_icon( &self, icon_name: &str, size: i32, flags: IconLookupFlags, ) -> Option<IconInfo>

Source

fn lookup_icon_for_scale( &self, icon_name: &str, size: i32, scale: i32, flags: IconLookupFlags, ) -> Option<IconInfo>

Source

fn prepend_search_path<P: AsRef<Path>>(&self, path: P)

Source

fn rescan_if_needed(&self) -> bool

Source

fn set_custom_theme(&self, theme_name: Option<&str>)

Source

fn set_screen(&self, screen: &Screen)

Source

fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§