pub struct DummyTheme(/* private fields */);Expand description
A dummy theme that only returns None or Color::WHITE.
Useful for testing.
Trait Implementations§
Source§impl Clone for DummyTheme
impl Clone for DummyTheme
Source§fn clone(&self) -> DummyTheme
fn clone(&self) -> DummyTheme
Returns a duplicate 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 DummyTheme
impl Debug for DummyTheme
Source§impl Default for DummyTheme
impl Default for DummyTheme
Source§fn default() -> DummyTheme
fn default() -> DummyTheme
Returns the “default value” for a type. Read more
Source§impl Theme for DummyTheme
impl Theme for DummyTheme
Source§fn of(&self, _id: WidgetId) -> Option<Style>
fn of(&self, _id: WidgetId) -> Option<Style>
Return the Style of the given widget using its ID.
Returns None if the theme does not have styles for the given widget.
In that case, you should use Theme::defaults to get widget style defaults.
Source§fn defaults(&self) -> DefaultStyles
fn defaults(&self) -> DefaultStyles
Get the default widget styles.
Source§fn window_background(&self) -> Color
fn window_background(&self) -> Color
Get the background color of the window.
Source§fn globals_mut(&mut self) -> &mut Globals
fn globals_mut(&mut self) -> &mut Globals
Get mutable global style values.
impl Copy for DummyTheme
Auto Trait Implementations§
impl Freeze for DummyTheme
impl RefUnwindSafe for DummyTheme
impl Send for DummyTheme
impl Sync for DummyTheme
impl Unpin for DummyTheme
impl UnwindSafe for DummyTheme
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