pub struct Frame {
pub width: u32,
pub height: u32,
pub encoding: PixelEncoding,
pub bitmap: Vec<u32>,
}
Fields§
§width: u32
§height: u32
§encoding: PixelEncoding
§bitmap: Vec<u32>
Implementations§
source§impl Frame
impl Frame
pub fn new(width: u32, height: u32, encoding: PixelEncoding) -> Self
pub fn set_size(&mut self, width: u32, height: u32)
pub fn set_pixel(&mut self, pos_x: u32, pos_y: u32, pixel: Pixel)
pub fn set_encoded_pixel(&mut self, pos_x: u32, pos_y: u32, pixel: u32)
pub fn blit<B: Iterator<Item = Pixel>>( &mut self, pos_x: u32, pos_y: u32, bitmap: B, width: u32, height: u32 )
pub fn clear(&mut self, value: Pixel)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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