[][src]Struct piet_common::D2DRenderContext

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

Methods

impl<'b, 'a> D2DRenderContext<'a> where
    'a: 'b, 
[src]

pub fn new<RT>(
    factory: &'a Factory,
    dwrite: &'a Factory,
    rt: &'b mut RT
) -> D2DRenderContext<'b> where
    RT: RenderTarget
[src]

Create a new Piet RenderContext for the Direct2D RenderTarget.

Note: the signature of this function has more restrictive lifetimes than the implementation requires, because we actually clone the RT, but this will likely change.

Trait Implementations

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

type Point = Point2

The type of a 2D point, for this backend. Read more

type Coord = f32

The type of 1D measurements, for example stroke width. Read more

type Brush = GenericBrush

The type of a "brush". Read more

type Text = D2DText<'a>

An associated factory for creating text layouts and related resources.

type TextLayout = D2DTextLayout

type Image = Bitmap

The associated type of an image.

fn with_save<impl FnOnce(&mut Self) -> Result<(), Error>>(
    &mut self,
    f: impl FnOnce(&mut Self) -> Result<(), Error>
) -> Result<(), Error> where
    impl FnOnce(&mut Self) -> Result<(), Error>: FnOnce(&mut Self) -> Result<(), Error>, 
[src]

Do graphics operations with the context state saved and then restored. Read more

Auto Trait Implementations

impl<'a> Send for D2DRenderContext<'a>

impl<'a> Sync for D2DRenderContext<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> RoundFrom for T
[src]

impl<T, U> RoundInto for T where
    U: RoundFrom<T>, 
[src]