PixmapExt

Trait PixmapExt 

Source
trait PixmapExt: Sized {
    // Required methods
    fn try_create(width: u32, height: u32) -> Result<Pixmap, Error>;
    fn copy_region(&self, region: IntRect) -> Result<Pixmap, Error>;
    fn clear(&mut self);
    fn into_srgb(&mut self);
    fn into_linear_rgb(&mut self);
}

Required Methods§

Source

fn try_create(width: u32, height: u32) -> Result<Pixmap, Error>

Source

fn copy_region(&self, region: IntRect) -> Result<Pixmap, Error>

Source

fn clear(&mut self)

Source

fn into_srgb(&mut self)

Source

fn into_linear_rgb(&mut self)

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.

Implementations on Foreign Types§

Source§

impl PixmapExt for Pixmap

Source§

fn try_create(width: u32, height: u32) -> Result<Pixmap, Error>

Source§

fn copy_region(&self, region: IntRect) -> Result<Pixmap, Error>

Source§

fn clear(&mut self)

Source§

fn into_srgb(&mut self)

Source§

fn into_linear_rgb(&mut self)

Implementors§