pub struct RadialGradient {
pub center: Point,
pub radius: f32,
pub focal: Option<Point>,
pub stops: Vec<GradientStop>,
pub spread: SpreadMethod,
}Expand description
A radial gradient: color stops sweep from focal outward to a
circle of radius radius centered on center. When focal is
None, it defaults to center (the common case).
Fields§
§center: Point§radius: f32§focal: Option<Point>§stops: Vec<GradientStop>§spread: SpreadMethodTrait Implementations§
Source§impl Clone for RadialGradient
impl Clone for RadialGradient
Source§fn clone(&self) -> RadialGradient
fn clone(&self) -> RadialGradient
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RadialGradient
impl RefUnwindSafe for RadialGradient
impl Send for RadialGradient
impl Sync for RadialGradient
impl Unpin for RadialGradient
impl UnsafeUnpin for RadialGradient
impl UnwindSafe for RadialGradient
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