Trait sdl2_image::LoadSurface
[−]
[src]
pub trait LoadSurface: Sized { fn from_file(filename: &Path) -> Result<Self, String>; fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String>; }
Static method extensions for creating Surfaces
Required Methods
fn from_file(filename: &Path) -> Result<Self, String>
fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String>
Implementors
impl<'a> LoadSurface for Surface<'a>