Trait components::IconThemeExt [−][src]
pub trait IconThemeExt: 'static { fn get_search_paths(&self) -> Vec<String>; fn get_theme_name(&self) -> Option<String>; fn has_icon(&self, icon_name: &str) -> bool; fn lookup(&self, icon_name: &str, size: i32) -> Option<Handle>; fn set_search_paths(&self, paths: &[&str]); fn set_theme_name(&self, theme_name: &str); fn connect_property_theme_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required methods
fn get_search_paths(&self) -> Vec<String>
[src]
get_search_paths: @theme: a #IconTheme
Gets the directories the #IconTheme will search in to find icons.
Return value: (element-type utf8) (transfer none): the search paths
fn get_theme_name(&self) -> Option<String>
[src]
get_theme_name: @theme: A #IconTheme
Get the value of the #IconTheme:theme-name property.
Returns: the current value of the “theme-name” property.
fn has_icon(&self, icon_name: &str) -> bool
[src]
fn lookup(&self, icon_name: &str, size: i32) -> Option<Handle>
[src]
lookup: @theme: an #IconTheme @icon_name: The name of the icon @size: The desired size of the icon
If the icon is available, returns a #CoglHandle of the icon.
Return value: (transfer none): a #CoglHandle of the icon, or %None.
fn set_search_paths(&self, paths: &[&str])
[src]
set_search_paths: @theme: a #IconTheme @paths: (element-type utf8): a list of search paths
Sets the directories the #IconTheme will search in to find icons. By default, it will look in the default system and local icon directories.
fn set_theme_name(&self, theme_name: &str)
[src]
set_theme_name: @theme: A #IconTheme @theme_name: the name of an icon theme to load, or %None
Set the value of the #IconTheme:theme-name property. This will cause the icon theme to be loaded if it differs from the existing theme name. If the theme could not be loaded, it will fall back to using the default icon theme (hicolor).
This will override the system’s theme setting. To revert to the system icon theme, this function can be called with a %None @theme_name argument.
fn connect_property_theme_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<IconTheme>> IconThemeExt for O
[src]
fn get_search_paths(&self) -> Vec<String>
[src]
get_search_paths: @theme: a #IconTheme
Gets the directories the #IconTheme will search in to find icons.
Return value: (element-type utf8) (transfer none): the search paths
fn get_theme_name(&self) -> Option<String>
[src]
get_theme_name: @theme: A #IconTheme
Get the value of the #IconTheme:theme-name property.
Returns: the current value of the “theme-name” property.
fn has_icon(&self, icon_name: &str) -> bool
[src]
fn lookup(&self, icon_name: &str, size: i32) -> Option<Handle>
[src]
lookup: @theme: an #IconTheme @icon_name: The name of the icon @size: The desired size of the icon
If the icon is available, returns a #CoglHandle of the icon.
Return value: (transfer none): a #CoglHandle of the icon, or %None.
fn set_search_paths(&self, paths: &[&str])
[src]
set_search_paths: @theme: a #IconTheme @paths: (element-type utf8): a list of search paths
Sets the directories the #IconTheme will search in to find icons. By default, it will look in the default system and local icon directories.
fn set_theme_name(&self, theme_name: &str)
[src]
set_theme_name: @theme: A #IconTheme @theme_name: the name of an icon theme to load, or %None
Set the value of the #IconTheme:theme-name property. This will cause the icon theme to be loaded if it differs from the existing theme name. If the theme could not be loaded, it will fall back to using the default icon theme (hicolor).
This will override the system’s theme setting. To revert to the system icon theme, this function can be called with a %None @theme_name argument.
fn connect_property_theme_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId