pub struct Gradient {
pub stops: Vec<GradientStop>,
}
Fields§
§stops: Vec<GradientStop>
Implementations§
source§impl Gradient
impl Gradient
pub fn make_source( &self, matrix: &MatrixFixedPoint, alpha: u32, ) -> Box<GradientSource>
pub fn make_two_circle_source( &self, c1x: f32, c1y: f32, r1: f32, c2x: f32, c2y: f32, r2: f32, matrix: &MatrixFixedPoint, alpha: u32, ) -> Box<TwoCircleRadialGradientSource>
pub fn make_sweep_source( &self, start_angle: f32, end_angle: f32, matrix: &MatrixFixedPoint, alpha: u32, ) -> Box<SweepGradientSource>
Trait Implementations§
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
)