pub struct DrawCommand<'a, T: 'a> {
pub bitmap: &'a T,
pub bitmap_location: Rect,
pub draw_location: (f32, f32),
}Expand description
A command instructing the user on how to draw a single character.
Fields§
§bitmap: &'a TThe bitmap that contains the character
bitmap_location: RectThe location of the character in the bitmap
draw_location: (f32, f32)The location on the screen to draw the character
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for DrawCommand<'a, T>
impl<'a, T> RefUnwindSafe for DrawCommand<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DrawCommand<'a, T>where
T: Sync,
impl<'a, T> Sync for DrawCommand<'a, T>where
T: Sync,
impl<'a, T> Unpin for DrawCommand<'a, T>
impl<'a, T> UnwindSafe for DrawCommand<'a, T>where
T: RefUnwindSafe,
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