pub struct CompositionDrawingSurface { /* private fields */ }Expand description
Composition surface that Direct2D content is drawn into.
Implementations§
Source§impl CompositionDrawingSurface
impl CompositionDrawingSurface
Sourcepub fn begin_draw<T: Interface>(&self) -> Result<(T, (i32, i32))>
pub fn begin_draw<T: Interface>(&self) -> Result<(T, (i32, i32))>
Begins drawing, returning the target and backing-atlas pixel offset.
If this method succeeds, call end_draw even if a later drawing
operation fails.
Sourcepub fn end_draw(&self) -> Result<()>
pub fn end_draw(&self) -> Result<()>
Finishes drawing begun with begin_draw and presents
the surface contents.
Trait Implementations§
Source§impl Clone for CompositionDrawingSurface
impl Clone for CompositionDrawingSurface
Source§fn clone(&self) -> CompositionDrawingSurface
fn clone(&self) -> CompositionDrawingSurface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for CompositionDrawingSurface
impl !Sync for CompositionDrawingSurface
impl Freeze for CompositionDrawingSurface
impl RefUnwindSafe for CompositionDrawingSurface
impl Unpin for CompositionDrawingSurface
impl UnsafeUnpin for CompositionDrawingSurface
impl UnwindSafe for CompositionDrawingSurface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more