Enum rin_graphics::Gradient [−][src]
pub enum Gradient<C> { Linear { start_color: C, end_color: C, direction: LinearGradientDirection, }, Circular { start_color: C, end_color: C, }, }
Specifies a gradient that can be used to draw certain primitives instead of a solid color
Variants
Show fields
Fields of Linear
Implementations
impl<C: ToRgb> Gradient<C>
[src]
impl<C: ToRgb> Gradient<C>
[src]Auto Trait Implementations
impl<C> RefUnwindSafe for Gradient<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Gradient<C> where
C: Send,
C: Send,
impl<C> Sync for Gradient<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Gradient<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Gradient<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]