[][src]Struct orbtk_theming::config::ThemeConfig

pub struct ThemeConfig {
    pub styles: HashMap<String, StyleConfig>,
    pub resources: HashMap<String, Value>,
}

Fields

styles: HashMap<String, StyleConfig>resources: HashMap<String, Value>

Implementations

impl<'a> ThemeConfig[src]

pub fn extend(self, other: ThemeConfig) -> Self[src]

Extends the given theme with a other theme. Replaces the current name with name of other. If a style with the same key is on other, it will replace the style in the current theme.

pub fn property(&'a self, property: &str, selector: &Selector) -> Option<Value>[src]

Gets a property by the given name and a selector.

Trait Implementations

impl Clone for ThemeConfig[src]

impl Debug for ThemeConfig[src]

impl Default for ThemeConfig[src]

impl<'de> Deserialize<'de> for ThemeConfig[src]

impl<'_> From<&'_ str> for ThemeConfig[src]

impl Serialize for ThemeConfig[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.