pub struct BackgroundTypePattern {
pub fill: BackgroundFill,
pub intensity: i32,
pub is_inverted: bool,
pub is_moving: bool,
}
Expand description
A PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user
Fields§
§fill: BackgroundFill
Fill of the background
intensity: i32
Intensity of the pattern when it is shown above the filled background; 0-100.
is_inverted: bool
True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only
is_moving: bool
True, if the background needs to be slightly moved when device is tilted
Trait Implementations§
Source§impl Clone for BackgroundTypePattern
impl Clone for BackgroundTypePattern
Source§fn clone(&self) -> BackgroundTypePattern
fn clone(&self) -> BackgroundTypePattern
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 BackgroundTypePattern
impl Debug for BackgroundTypePattern
Source§impl<'de> Deserialize<'de> for BackgroundTypePattern
impl<'de> Deserialize<'de> for BackgroundTypePattern
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 BackgroundTypePattern
impl PartialEq for BackgroundTypePattern
Source§impl Serialize for BackgroundTypePattern
impl Serialize for BackgroundTypePattern
impl StructuralPartialEq for BackgroundTypePattern
Auto Trait Implementations§
impl Freeze for BackgroundTypePattern
impl RefUnwindSafe for BackgroundTypePattern
impl Send for BackgroundTypePattern
impl Sync for BackgroundTypePattern
impl Unpin for BackgroundTypePattern
impl UnwindSafe for BackgroundTypePattern
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