[−][src]Struct piet_common::D2DRenderContext
Methods
impl<'b, 'a> D2DRenderContext<'a> where
'a: 'b, [src]
impl<'b, 'a> D2DRenderContext<'a> where
'a: 'b, pub fn new<RT>( | [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]
impl<'a> RenderContext for D2DRenderContext<'a>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 clear(&mut self, rgb: u32) -> Result<(), Error> | [src] |
fn solid_brush(&mut self, rgba: u32) -> Result<GenericBrush, Error> | [src] |
fn fill<impl Shape>( | [src] |
fn stroke<impl Shape, impl RoundInto | [src] |
fn clip<impl Shape>( | [src] |
fn text(&mut self) -> &mut <D2DRenderContext<'a> as RenderContext>::Text | [src] |
fn draw_text<impl RoundInto | [src] |
fn save(&mut self) -> Result<(), Error> | [src] |
fn restore(&mut self) -> Result<(), Error> | [src] |
fn finish(&mut self) -> Result<(), Error> | [src] |
fn transform(&mut self, transform: Affine) | [src] |
fn make_image( | [src] |
fn draw_image<impl Into | [src] |
fn with_save<impl 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> Send for D2DRenderContext<'a>impl<'a> Sync for D2DRenderContext<'a>
impl<'a> Sync for D2DRenderContext<'a>Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> RoundFrom for T[src]
impl<T> RoundFrom for Tfn round_from(x: T) -> T | [src] |
impl<T, U> RoundInto for T where
U: RoundFrom<T>, [src]
impl<T, U> RoundInto for T where
U: RoundFrom<T>, fn round_into(self) -> U | [src] |