[][src]Trait sdl2::image::ImageRWops

pub trait ImageRWops {
    fn load(&self) -> Result<Surface<'static>, String>;
fn load_typed(&self, _type: &str) -> Result<Surface<'static>, String>;
fn load_cur(&self) -> Result<Surface<'static>, String>;
fn load_ico(&self) -> Result<Surface<'static>, String>;
fn load_bmp(&self) -> Result<Surface<'static>, String>;
fn load_pnm(&self) -> Result<Surface<'static>, String>;
fn load_xpm(&self) -> Result<Surface<'static>, String>;
fn load_xcf(&self) -> Result<Surface<'static>, String>;
fn load_pcx(&self) -> Result<Surface<'static>, String>;
fn load_gif(&self) -> Result<Surface<'static>, String>;
fn load_jpg(&self) -> Result<Surface<'static>, String>;
fn load_tif(&self) -> Result<Surface<'static>, String>;
fn load_png(&self) -> Result<Surface<'static>, String>;
fn load_tga(&self) -> Result<Surface<'static>, String>;
fn load_lbm(&self) -> Result<Surface<'static>, String>;
fn load_xv(&self) -> Result<Surface<'static>, String>;
fn load_webp(&self) -> Result<Surface<'static>, String>;
fn is_cur(&self) -> bool;
fn is_ico(&self) -> bool;
fn is_bmp(&self) -> bool;
fn is_pnm(&self) -> bool;
fn is_xpm(&self) -> bool;
fn is_xcf(&self) -> bool;
fn is_pcx(&self) -> bool;
fn is_gif(&self) -> bool;
fn is_jpg(&self) -> bool;
fn is_tif(&self) -> bool;
fn is_png(&self) -> bool;
fn is_lbm(&self) -> bool;
fn is_xv(&self) -> bool;
fn is_webp(&self) -> bool; }

Required methods

fn load(&self) -> Result<Surface<'static>, String>

load as a surface. except TGA

fn load_typed(&self, _type: &str) -> Result<Surface<'static>, String>

load as a surface. This can load all supported image formats.

fn load_cur(&self) -> Result<Surface<'static>, String>

fn load_ico(&self) -> Result<Surface<'static>, String>

fn load_bmp(&self) -> Result<Surface<'static>, String>

fn load_pnm(&self) -> Result<Surface<'static>, String>

fn load_xpm(&self) -> Result<Surface<'static>, String>

fn load_xcf(&self) -> Result<Surface<'static>, String>

fn load_pcx(&self) -> Result<Surface<'static>, String>

fn load_gif(&self) -> Result<Surface<'static>, String>

fn load_jpg(&self) -> Result<Surface<'static>, String>

fn load_tif(&self) -> Result<Surface<'static>, String>

fn load_png(&self) -> Result<Surface<'static>, String>

fn load_tga(&self) -> Result<Surface<'static>, String>

fn load_lbm(&self) -> Result<Surface<'static>, String>

fn load_xv(&self) -> Result<Surface<'static>, String>

fn load_webp(&self) -> Result<Surface<'static>, String>

fn is_cur(&self) -> bool

fn is_ico(&self) -> bool

fn is_bmp(&self) -> bool

fn is_pnm(&self) -> bool

fn is_xpm(&self) -> bool

fn is_xcf(&self) -> bool

fn is_pcx(&self) -> bool

fn is_gif(&self) -> bool

fn is_jpg(&self) -> bool

fn is_tif(&self) -> bool

fn is_png(&self) -> bool

fn is_lbm(&self) -> bool

fn is_xv(&self) -> bool

fn is_webp(&self) -> bool

Loading content...

Implementors

impl<'a> ImageRWops for RWops<'a>[src]

Loading content...