pub struct Gradient {
stops: Vec<GradientStop>,
tile_mode: SpreadMode,
pub(crate) transform: Transform,
points_to_unit: Transform,
pub(crate) colors_are_opaque: bool,
has_uniform_stops: bool,
}
Fields§
§stops: Vec<GradientStop>
§tile_mode: SpreadMode
§transform: Transform
§points_to_unit: Transform
§colors_are_opaque: bool
§has_uniform_stops: bool
Implementations§
source§impl Gradient
impl Gradient
pub fn new( stops: Vec<GradientStop>, tile_mode: SpreadMode, transform: Transform, points_to_unit: Transform, ) -> Self
pub fn push_stages( &self, p: &mut RasterPipelineBuilder, push_stages_pre: &dyn Fn(&mut RasterPipelineBuilder), push_stages_post: &dyn Fn(&mut RasterPipelineBuilder), ) -> bool
pub fn apply_opacity(&mut self, opacity: f32)
Trait Implementations§
impl StructuralPartialEq for Gradient
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnwindSafe for Gradient
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)