Skip to main content

AsyncDisplayExt

Trait AsyncDisplayExt 

Source
pub trait AsyncDisplayExt: AsyncDisplay {
    // Provided methods
    fn put_ximage(
        &mut self,
        image: &Image<impl AsRef<[u8]>>,
        drawable: impl Into<Drawable>,
        gc: impl Into<Gcontext>,
        dst_x: i16,
        dst_y: i16,
    ) -> SendRequest<'_, Self, ()> { ... }
    fn put_ximage_checked(
        &mut self,
        image: &Image<impl AsRef<[u8]>>,
        drawable: impl Into<Drawable>,
        gc: impl Into<Gcontext>,
        dst_x: i16,
        dst_y: i16,
    ) -> CheckedSendRequest<'_, Self, ()> { ... }
    fn put_subimage(
        &mut self,
        image: &Image<impl AsRef<[u8]>>,
        drawable: impl Into<Drawable>,
        gc: impl Into<Gcontext>,
        src_x: usize,
        src_y: usize,
        width: usize,
        height: usize,
        dst_x: i16,
        dst_y: i16,
    ) -> SendRequestRaw<'_, Self> { ... }
}

Provided Methods§

Source

fn put_ximage( &mut self, image: &Image<impl AsRef<[u8]>>, drawable: impl Into<Drawable>, gc: impl Into<Gcontext>, dst_x: i16, dst_y: i16, ) -> SendRequest<'_, Self, ()>

Send an Image to the display.

Source

fn put_ximage_checked( &mut self, image: &Image<impl AsRef<[u8]>>, drawable: impl Into<Drawable>, gc: impl Into<Gcontext>, dst_x: i16, dst_y: i16, ) -> CheckedSendRequest<'_, Self, ()>

Source

fn put_subimage( &mut self, image: &Image<impl AsRef<[u8]>>, drawable: impl Into<Drawable>, gc: impl Into<Gcontext>, src_x: usize, src_y: usize, width: usize, height: usize, dst_x: i16, dst_y: i16, ) -> SendRequestRaw<'_, Self>

Send a subimage of an Image to the display.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<D: AsyncDisplay + ?Sized> AsyncDisplayExt for D

Available on crate feature async only.