Trait PixbufLoaderExt

Source
pub trait PixbufLoaderExt: 'static {
    // Required methods
    fn close(&self) -> Result<(), Error>;
    fn get_animation(&self) -> Option<PixbufAnimation>;
    fn get_format(&self) -> Option<PixbufFormat>;
    fn get_pixbuf(&self) -> Option<Pixbuf>;
    fn set_size(&self, width: i32, height: i32);
    fn write(&self, buf: &[u8]) -> Result<(), Error>;
    fn write_bytes(&self, buffer: &Bytes) -> Result<(), Error>;
    fn connect_area_prepared<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_area_updated<F: Fn(&Self, i32, i32, i32, i32) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
    fn connect_size_prepared<F: Fn(&Self, i32, i32) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn close(&self) -> Result<(), Error>

Source

fn get_animation(&self) -> Option<PixbufAnimation>

Source

fn get_format(&self) -> Option<PixbufFormat>

Source

fn get_pixbuf(&self) -> Option<Pixbuf>

Source

fn set_size(&self, width: i32, height: i32)

Source

fn write(&self, buf: &[u8]) -> Result<(), Error>

Source

fn write_bytes(&self, buffer: &Bytes) -> Result<(), Error>

Source

fn connect_area_prepared<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_area_updated<F: Fn(&Self, i32, i32, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_closed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_size_prepared<F: Fn(&Self, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId

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§