pub enum Mode {
Center,
Crop,
Fit,
Stretch,
Tile,
}
Expand description
define how the wallpaper will be stretch, zoom, repeated etc
Variants§
Center
center image witout zooming. Image is may not full visible. Empty space is filled with black.
Crop
zoom image to match x and y size of display and keep aspect ratio. Some parts of the image is may cut off.
Fit
zoom image to match match x or y size of the display, the other will be filled with a black bar at each side. All parts of the immages are visible.
Stretch
zoom x and y independently from each other to match display size.
Tile
Repeat the image until the Screen is filled. May not all parts of the image are visible.
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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