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<SpreadMode> for SpreadMode
impl PartialEq<SpreadMode> 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 ==
.