pub struct CompositionGraphicsDevice(/* private fields */);Expand description
Direct2D-backed composition device that allocates drawing surfaces.
Implementations§
Source§impl CompositionGraphicsDevice
impl CompositionGraphicsDevice
Sourcepub fn create_drawing_surface(
&self,
width: f32,
height: f32,
) -> Result<CompositionDrawingSurface>
pub fn create_drawing_surface( &self, width: f32, height: f32, ) -> Result<CompositionDrawingSurface>
Creates a drawing surface widthxheight pixels in size, using a
premultiplied BGRA pixel format.
Trait Implementations§
Source§impl Clone for CompositionGraphicsDevice
impl Clone for CompositionGraphicsDevice
Source§fn clone(&self) -> CompositionGraphicsDevice
fn clone(&self) -> CompositionGraphicsDevice
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 Freeze for CompositionGraphicsDevice
impl RefUnwindSafe for CompositionGraphicsDevice
impl Send for CompositionGraphicsDevice
impl Sync for CompositionGraphicsDevice
impl Unpin for CompositionGraphicsDevice
impl UnsafeUnpin for CompositionGraphicsDevice
impl UnwindSafe for CompositionGraphicsDevice
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