[][src]Struct piet_cairo::CairoRenderContext

pub struct CairoRenderContext<'a> { /* fields omitted */ }

Implementations

impl<'a> CairoRenderContext<'a>[src]

pub fn new(ctx: &mut Context) -> CairoRenderContext[src]

Create a new Cairo back-end.

At the moment, it uses the "toy text API" for text layout, but when we change to a more sophisticated text layout approach, we'll probably need a factory for that as an additional argument.

Trait Implementations

impl<'a> IntoBrush<CairoRenderContext<'a>> for Brush[src]

impl<'a> RenderContext for CairoRenderContext<'a>[src]

type Brush = Brush

The type of a "brush". Read more

type Text = CairoText<'a>

An associated factory for creating text layouts and related resources.

type TextLayout = CairoTextLayout

type Image = ImageSurface

The associated type of an image.

Auto Trait Implementations

impl<'a> RefUnwindSafe for CairoRenderContext<'a>

impl<'a> !Send for CairoRenderContext<'a>

impl<'a> !Sync for CairoRenderContext<'a>

impl<'a> Unpin for CairoRenderContext<'a>

impl<'a> !UnwindSafe for CairoRenderContext<'a>

Blanket Implementations

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

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

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

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

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

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<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.