[−][src]Trait piet_common::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
fn make_brush<impl FnOnce() -> Rect>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
Implementations on Foreign Types
impl<'a> IntoBrush<CairoRenderContext<'a>> for Brush[src]
fn make_brush<impl FnOnce() -> Rect>(
&'b self,
_piet: &mut CairoRenderContext,
_bbox: impl FnOnce() -> Rect
) -> Cow<'b, Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect, [src]
&'b self,
_piet: &mut CairoRenderContext,
_bbox: impl FnOnce() -> Rect
) -> Cow<'b, Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
Implementors
impl<P> IntoBrush<P> for Color where
P: RenderContext, [src]
P: RenderContext,
fn make_brush<impl FnOnce() -> Rect>(
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect, [src]
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
impl<P> IntoBrush<P> for FixedGradient where
P: RenderContext, [src]
P: RenderContext,
fn make_brush<impl FnOnce() -> Rect>(
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect, [src]
&'a self,
piet: &mut P,
_bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
impl<P> IntoBrush<P> for PaintBrush where
P: RenderContext, [src]
P: RenderContext,
fn make_brush<impl FnOnce() -> Rect>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect, [src]
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
impl<P> IntoBrush<P> for LinearGradient where
P: RenderContext, [src]
P: RenderContext,
fn make_brush<impl FnOnce() -> Rect>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect, [src]
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,
impl<P> IntoBrush<P> for RadialGradient where
P: RenderContext, [src]
P: RenderContext,
fn make_brush<impl FnOnce() -> Rect>(
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect, [src]
&'a self,
piet: &mut P,
bbox: impl FnOnce() -> Rect
) -> Cow<'a, <P as RenderContext>::Brush> where
impl FnOnce() -> Rect: FnOnce() -> Rect,