Trait allegro::SharedBitmap [] [src]

pub trait SharedBitmap {
    fn create_sub_bitmap(&self, x: i32, y: i32, w: i32, h: i32) -> Result<SubBitmap()>;
    fn get_backing_bitmap(&self) -> Option<Rc<Bitmap>>;
}

Expresses something that shares access with a real bitmap.

Required Methods

fn create_sub_bitmap(&self, x: i32, y: i32, w: i32, h: i32) -> Result<SubBitmap()>

fn get_backing_bitmap(&self) -> Option<Rc<Bitmap>>

Returns the backing bitmap, if possible.

Implementors