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

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


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


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.