Struct ux::native::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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Construction<T> for T where
    T: Default + Clone
[src]

impl<T> From<T> for T[src]

impl<O> IconThemeExt for O where
    O: Is<IconTheme>, 
[src]

pub fn get_search_paths(&self) -> Vec<String, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[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 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.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,