Trait ux::IconThemeExt [−][src]
pub trait IconThemeExt: 'static { pub fn get_search_paths(&self) -> Vec<String, Global>ⓘ; pub fn get_theme_name(&self) -> Option<String>; pub fn has_icon(&self, icon_name: &str) -> bool; pub fn lookup(&self, icon_name: &str, size: i32) -> Option<Handle>; pub fn set_search_paths(&self, paths: &[&str]); pub fn set_theme_name(&self, theme_name: &str); pub fn connect_property_theme_name_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self); }
Required methods
pub fn get_search_paths(&self) -> Vec<String, Global>ⓘ
[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
pub 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.
pub fn has_icon(&self, icon_name: &str) -> bool
[src]
pub 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.
pub 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.
pub 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.
pub fn connect_property_theme_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
Implementors
impl<O> IconThemeExt for O where
O: Is<IconTheme>,
[src]
impl<O> IconThemeExt for O where
O: Is<IconTheme>,
[src]pub fn get_search_paths(&self) -> Vec<String, Global>ⓘ
[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
pub 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.
pub fn has_icon(&self, icon_name: &str) -> bool
[src]
pub 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.
pub 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.
pub 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.
pub fn connect_property_theme_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),