Struct components::Gradient[]

pub struct Gradient {
    pub kind: GradientType,
    pub stops: RefCell<Vec<ColorStop, Global>>,
}

Fields

kind: GradientTypestops: RefCell<Vec<ColorStop, Global>>

Implementations

impl Gradient

pub fn new(kind: GradientType) -> Gradient

pub fn add_color_stop(&self, stop: ColorStop)

pub fn get_color_count(&self) -> usize

pub fn get_color_stop(&self, index: usize) -> Option<ColorStop>

Trait Implementations

impl Clone for Gradient

impl Debug for Gradient

impl Default for Gradient

Auto Trait Implementations

impl !RefUnwindSafe for Gradient

impl Send for Gradient

impl !Sync for Gradient

impl Unpin for Gradient

impl UnwindSafe for Gradient

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Construction<T> for T where
    T: Default + Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,