Enum tiny_skia::SpreadMode
source · pub enum SpreadMode {
Pad,
Reflect,
Repeat,
}
Expand description
A shader spreading mode.
Variants§
Pad
Replicate the edge color if the shader draws outside of its original bounds.
Reflect
Repeat the shader’s image horizontally and vertically, alternating mirror images so that adjacent images always seam.
Repeat
Repeat the shader’s image horizontally and vertically.
Trait Implementations§
source§impl Clone for SpreadMode
impl Clone for SpreadMode
source§fn clone(&self) -> SpreadMode
fn clone(&self) -> SpreadMode
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 SpreadMode
impl Debug for SpreadMode
source§impl Default for SpreadMode
impl Default for SpreadMode
source§impl PartialEq for SpreadMode
impl PartialEq for SpreadMode
source§fn eq(&self, other: &SpreadMode) -> bool
fn eq(&self, other: &SpreadMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SpreadMode
impl StructuralPartialEq for SpreadMode
Auto Trait Implementations§
impl RefUnwindSafe for SpreadMode
impl Send for SpreadMode
impl Sync for SpreadMode
impl Unpin for SpreadMode
impl UnwindSafe for SpreadMode
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