Struct freya::prelude::InputTheme  
source · pub struct InputTheme {
    pub font_theme: FontTheme,
    pub background: Cow<'static, str>,
    pub hover_background: Cow<'static, str>,
    pub border_fill: Cow<'static, str>,
    pub width: Cow<'static, str>,
    pub margin: Cow<'static, str>,
}Expand description
Theming properties for the Input component.
Fields§
§font_theme: FontTheme§background: Cow<'static, str>§hover_background: Cow<'static, str>§border_fill: Cow<'static, str>§width: Cow<'static, str>§margin: Cow<'static, str>Implementations§
source§impl InputTheme
 
impl InputTheme
sourcepub fn apply_optional(&mut self, optional: &InputThemeWith)
 
pub fn apply_optional(&mut self, optional: &InputThemeWith)
Checks each field in optional and if it’s Some, it overwrites the corresponding self field.
Trait Implementations§
source§impl Clone for InputTheme
 
impl Clone for InputTheme
source§fn clone(&self) -> InputTheme
 
fn clone(&self) -> InputTheme
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for InputTheme
 
impl Debug for InputTheme
source§impl PartialEq<InputTheme> for InputTheme
 
impl PartialEq<InputTheme> for InputTheme
source§fn eq(&self, other: &InputTheme) -> bool
 
fn eq(&self, other: &InputTheme) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for InputTheme
impl StructuralEq for InputTheme
impl StructuralPartialEq for InputTheme
Auto Trait Implementations§
impl RefUnwindSafe for InputTheme
impl Send for InputTheme
impl Sync for InputTheme
impl Unpin for InputTheme
impl UnwindSafe for InputTheme
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
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.