Struct ux::IconTheme [−][src]
pub struct IconTheme { /* fields omitted */ }
Implementations
impl IconTheme
[src]
Trait Implementations
impl AsRef<IconTheme> for IconTheme
[src]
impl Clone for IconTheme
[src]
impl Debug for IconTheme
[src]
impl Default for IconTheme
[src]
impl Display for IconTheme
[src]
impl Is<IconTheme> for IconTheme
[src]
impl Object for IconTheme
[src]
Auto Trait Implementations
impl !RefUnwindSafe for IconTheme
impl Send for IconTheme
impl !Sync for IconTheme
impl Unpin for IconTheme
impl UnwindSafe for IconTheme
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<O> IconThemeExt for O where
O: Is<IconTheme>,
[src]
O: Is<IconTheme>,
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),
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,