pub struct Theme { /* private fields */ }
Expand description
Theme
is the representation of a css styling.
Implementations§
Source§impl Theme
impl Theme
Sourcepub fn create() -> ThemeBuilder
pub fn create() -> ThemeBuilder
Creates a new ThemeBuilder
object with default theme as base.
Sourcepub fn create_from_css(css: impl Into<String>) -> ThemeBuilder
pub fn create_from_css(css: impl Into<String>) -> ThemeBuilder
Creates a new ThemeBuilder
with the given css as base.
Sourcepub fn create_from_path(path: impl Into<String>) -> ThemeBuilder
pub fn create_from_path(path: impl Into<String>) -> ThemeBuilder
Creates a new ThemeBuilder
with the given css path as base.
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Theme, String>
pub fn get(&self, property: &str, query: &Selector) -> Option<Value>
pub fn brush(&self, property: &str, query: &Selector) -> Option<Brush>
pub fn uint(&self, property: &str, query: &Selector) -> Option<u32>
pub fn float(&self, property: &str, query: &Selector) -> Option<f32>
pub fn string(&self, property: &str, query: &Selector) -> Option<String>
Trait Implementations§
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more