[−][src]Trait piet::IntoBrush
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.
Required methods
pub fn make_brush<'a>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
[src]
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
Implementors
impl<P: RenderContext> IntoBrush<P> for Color
[src]
pub fn make_brush<'a>(
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
[src]
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
impl<P: RenderContext> IntoBrush<P> for FixedGradient
[src]
pub fn make_brush<'a>(
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
[src]
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
impl<P: RenderContext> IntoBrush<P> for PaintBrush
[src]
pub fn make_brush<'a>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
[src]
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
impl<P: RenderContext> IntoBrush<P> for LinearGradient
[src]
pub fn make_brush<'a>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>
[src]
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, P::Brush>