Struct crankstart::graphics::BitmapInner
source · pub struct BitmapInner { /* private fields */ }
Implementations§
source§impl BitmapInner
impl BitmapInner
pub fn get_data(&self) -> Result<BitmapData, Error>
pub fn draw( &self, location: ScreenPoint, flip: LCDBitmapFlip ) -> Result<(), Error>
pub fn draw_scaled( &self, location: ScreenPoint, scale: Vector2D<f32> ) -> Result<(), Error>
pub fn draw_rotated( &self, location: ScreenPoint, degrees: f32, center: Vector2D<f32>, scale: Vector2D<f32> ) -> Result<(), Error>
pub fn rotated(&self, degrees: f32, scale: Vector2D<f32>) -> Result<Self, Error>
pub fn tile( &self, location: ScreenPoint, size: ScreenSize, flip: LCDBitmapFlip ) -> Result<(), Error>
pub fn clear(&self, color: LCDColor) -> Result<(), Error>
pub fn duplicate(&self) -> Result<Self, Error>
pub fn transform( &self, rotation: f32, scale: Vector2D<f32> ) -> Result<Self, Error>
pub fn into_color( &self, bitmap: Bitmap, top_left: Point2D<i32> ) -> Result<LCDColor, Error>
pub fn load(&self, path: &str) -> Result<(), Error>
pub fn check_mask_collision( &self, my_location: ScreenPoint, my_flip: LCDBitmapFlip, other: Bitmap, other_location: ScreenPoint, other_flip: LCDBitmapFlip, rect: ScreenRect ) -> Result<bool, Error>
Trait Implementations§
source§impl Debug for BitmapInner
impl Debug for BitmapInner
Auto Trait Implementations§
impl RefUnwindSafe for BitmapInner
impl !Send for BitmapInner
impl !Sync for BitmapInner
impl Unpin for BitmapInner
impl UnwindSafe for BitmapInner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more