Struct libxdgkit::icon_theme::IconTheme[][src]

pub struct IconTheme {
    pub name: Option<String>,
    pub comment: Option<String>,
    pub inherits: Option<Vec<String>>,
    pub directories: Option<Vec<Directory>>,
    pub scaled_directories: Option<Vec<String>>,
    pub hidden: Option<bool>,
    pub example: Option<String>,
}

Fields

name: Option<String>

[REQUIRED BY SPECS] short name of the icon theme, used in e.g. lists when selecting themes.

comment: Option<String>

[REQUIRED BY SPECS] longer string describing the theme

inherits: Option<Vec<String>>

The name of the theme that this theme inherits from. If an icon name is not found in the current theme, it is searched for in the inherited theme (and recursively in all the inherited themes). If no theme is specified implementations are required to add the “hicolor” theme to the inheritance tree. An implementation may optionally add other default themes in between the last specified theme and the hicolor theme.

directories: Option<Vec<Directory>>

[REQUIRED BY SPECS] list of subdirectories for this theme. For every subdirectory there must be a section in the index.theme file describing that directory.

scaled_directories: Option<Vec<String>>

Additional list of subdirectories for this theme, in addition to the ones in Directories. These directories should only be read by implementations supporting scaled directories and was added to keep compatibility with old implementations that don’t support these.

hidden: Option<bool>

Whether to hide the theme in a theme selection user interface. This is used for things such as fallback-themes that are not supposed to be visible to the user.

example: Option<String>

The name of an icon that should be used as an example of how this theme looks.

Implementations

impl IconTheme[src]

Implementations

pub fn empty() -> Self where
    Self: Sized
[src]

Creates a blank theme, not according to specs

You must specify a name,comment, and directories to be inline with the specs

pub fn new(file_name: String) -> Self where
    Self: Sized
[src]

Trait Implementations

impl Debug for IconTheme[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.