DisplayExt

Trait DisplayExt 

Source
pub trait DisplayExt: Display {
    // 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,
    ) -> Result<Cookie<()>> { ... }
    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,
    ) -> Result<()> { ... }
    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,
    ) -> Result<Cookie<()>> { ... }
    fn put_subimage_checked(
        &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,
    ) -> Result<()> { ... }
    fn get_ximage(
        &mut self,
        drawable: impl Into<Drawable>,
        format: ImageFormat,
        x: i16,
        y: i16,
        width: u16,
        height: u16,
        plane_mask: u32,
    ) -> Result<Image<Vec<u8>>> { ... }
}

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, ) -> Result<Cookie<()>>

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, ) -> Result<()>

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, ) -> Result<Cookie<()>>

Send a subimage of an Image to the display.

Source

fn put_subimage_checked( &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, ) -> Result<()>

Source

fn get_ximage( &mut self, drawable: impl Into<Drawable>, format: ImageFormat, x: i16, y: i16, width: u16, height: u16, plane_mask: u32, ) -> Result<Image<Vec<u8>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<D: Display + ?Sized> DisplayExt for D