[][src]Struct piet::FixedLinearGradient

pub struct FixedLinearGradient {
    pub start: Point,
    pub end: Point,
    pub stops: Vec<GradientStop>,
}

Specification of a linear gradient.

This specification is in terms of image-space coordinates. In many cases, it is better to specify coordinates relative to the Rect of the item being drawn; for these, use LinearGradient instead.

Fields

start: Point

The start point (corresponding to pos 0.0).

end: Point

The end point (corresponding to pos 1.0).

stops: Vec<GradientStop>

The stops.

There must be at least two for the gradient to be valid.

Trait Implementations

impl Clone for FixedLinearGradient[src]

impl Debug for FixedLinearGradient[src]

impl From<FixedLinearGradient> for FixedGradient[src]

impl From<FixedLinearGradient> for PaintBrush[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.