pub enum BackgroundSource {
Wallpaper {
name: String,
},
Gradient {
from: [u8; 3],
to: [u8; 3],
angle_deg: f32,
},
Color {
rgb: [u8; 3],
},
}Expand description
The backdrop the framed screen sits on.
Variants§
Wallpaper
A named wallpaper from the bundled set (e.g. "aurora").
Gradient
A linear gradient between two RGB colors at angle_deg.
Fields
Color
A flat fill.
Trait Implementations§
Source§impl Clone for BackgroundSource
impl Clone for BackgroundSource
Source§fn clone(&self) -> BackgroundSource
fn clone(&self) -> BackgroundSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundSource
impl Debug for BackgroundSource
Source§impl Default for BackgroundSource
impl Default for BackgroundSource
Source§impl<'de> Deserialize<'de> for BackgroundSource
impl<'de> Deserialize<'de> for BackgroundSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackgroundSource
impl PartialEq for BackgroundSource
Source§fn eq(&self, other: &BackgroundSource) -> bool
fn eq(&self, other: &BackgroundSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackgroundSource
impl Serialize for BackgroundSource
impl StructuralPartialEq for BackgroundSource
Auto Trait Implementations§
impl Freeze for BackgroundSource
impl RefUnwindSafe for BackgroundSource
impl Send for BackgroundSource
impl Sync for BackgroundSource
impl Unpin for BackgroundSource
impl UnsafeUnpin for BackgroundSource
impl UnwindSafe for BackgroundSource
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