[][src]Enum raqote::Source

pub enum Source {
    Solid(SolidSource),
    Image(ImageTransform2D<f32>),
    RadialGradient(GradientTransform2D<f32>),
    LinearGradient(GradientTransform2D<f32>),
}

LinearGradients have an implicit start point at 0,0 and an end point at 256,0. The transform parameter can be used to adjust them to the desired location. RadialGradients have an implict center at 0,0 and a radius of 128.

These locations are an artifact of the blitter implementation and will probably change in the future to become more ergonomic.

Variants

Solid(SolidSource)Image(ImageTransform2D<f32>)RadialGradient(GradientTransform2D<f32>)LinearGradient(GradientTransform2D<f32>)

Auto Trait Implementations

impl Send for Source

impl Sync for Source

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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