Trait druid::piet::IntoBrush

pub trait IntoBrush<P>where
    P: RenderContext + ?Sized,{ }
Expand description

A trait for various types that can be used as brushes.

These include backend-independent types such Color and LinearGradient, as well as the types used to represent these on a specific backend.

This is an internal trait that you should not have to implement or think about.

Implementations on Foreign Types§

§

impl<'a> IntoBrush<CoreGraphicsContext<'a>> for Brush

Implementors§

§

impl<P> IntoBrush<P> for Colorwhere P: RenderContext,

§

impl<P> IntoBrush<P> for FixedGradientwhere P: RenderContext,

§

impl<P> IntoBrush<P> for PaintBrushwhere P: RenderContext,

§

impl<P> IntoBrush<P> for LinearGradientwhere P: RenderContext,

§

impl<P> IntoBrush<P> for RadialGradientwhere P: RenderContext,