Struct allegro::bitmap::Bitmap [−][src]
Implementations
impl Bitmap[src]
pub fn new(_: &Core, w: i32, h: i32) -> Result<Bitmap, ()>[src]
pub fn load(_: &Core, filename: &str) -> Result<Bitmap, ()>[src]
pub unsafe fn wrap(bmp: *mut ALLEGRO_BITMAP, own: bool) -> Bitmap[src]
Wraps an Allegro bitmap.
pub unsafe fn clone_and_wrap(bmp: *mut ALLEGRO_BITMAP) -> Result<Bitmap, ()>[src]
pub fn maybe_clone(&self) -> Result<Bitmap, ()>[src]
Trait Implementations
impl BitmapLike for Bitmap[src]
fn get_allegro_bitmap(&self) -> *mut ALLEGRO_BITMAP[src]
fn create_sub_bitmap(
&self,
x: i32,
y: i32,
w: i32,
h: i32
) -> Result<Weak<SubBitmap>, ()>[src]
&self,
x: i32,
y: i32,
w: i32,
h: i32
) -> Result<Weak<SubBitmap>, ()>
fn get_width(&self) -> i32[src]
fn get_height(&self) -> i32[src]
fn get_format(&self) -> PixelFormat[src]
fn get_flags(&self) -> BitmapFlags[src]
fn get_pixel(&self, x: i32, y: i32) -> Color[src]
fn convert_mask_to_alpha(&self, mask_color: Color)[src]
fn is_compatible_bitmap(&self) -> bool[src]
impl Clone for Bitmap[src]
impl Drop for Bitmap[src]
impl Send for Bitmap[src]
impl Sync for Bitmap[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,