Trait sdl2_image::ImageRWops
[−]
[src]
pub trait ImageRWops { fn load(&self) -> Result<Surface, String>; fn load_typed(&self, _type: &str) -> Result<Surface, String>; fn load_cur(&self) -> Result<Surface, String>; fn load_ico(&self) -> Result<Surface, String>; fn load_bmp(&self) -> Result<Surface, String>; fn load_pnm(&self) -> Result<Surface, String>; fn load_xpm(&self) -> Result<Surface, String>; fn load_xcf(&self) -> Result<Surface, String>; fn load_pcx(&self) -> Result<Surface, String>; fn load_gif(&self) -> Result<Surface, String>; fn load_jpg(&self) -> Result<Surface, String>; fn load_tif(&self) -> Result<Surface, String>; fn load_png(&self) -> Result<Surface, String>; fn load_tga(&self) -> Result<Surface, String>; fn load_lbm(&self) -> Result<Surface, String>; fn load_xv(&self) -> Result<Surface, String>; fn load_webp(&self) -> Result<Surface, 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, String>
load as a surface. except TGA
fn load_typed(&self, _type: &str) -> Result<Surface, String>
load as a surface. This can load all supported image formats.
fn load_cur(&self) -> Result<Surface, String>
fn load_ico(&self) -> Result<Surface, String>
fn load_bmp(&self) -> Result<Surface, String>
fn load_pnm(&self) -> Result<Surface, String>
fn load_xpm(&self) -> Result<Surface, String>
fn load_xcf(&self) -> Result<Surface, String>
fn load_pcx(&self) -> Result<Surface, String>
fn load_gif(&self) -> Result<Surface, String>
fn load_jpg(&self) -> Result<Surface, String>
fn load_tif(&self) -> Result<Surface, String>
fn load_png(&self) -> Result<Surface, String>
fn load_tga(&self) -> Result<Surface, String>
fn load_lbm(&self) -> Result<Surface, String>
fn load_xv(&self) -> Result<Surface, String>
fn load_webp(&self) -> Result<Surface, 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
Implementors
impl<'a> ImageRWops for RWops<'a>