pub struct Canvas { /* private fields */ }Expand description
A Pyxel canvas.
Implementations§
Source§impl Canvas
impl Canvas
Sourcepub fn tile_height(&self) -> u16
pub fn tile_height(&self) -> u16
Returns the height of the tiles in this canvas in pixels.
Sourcepub fn tile_width(&self) -> u16
pub fn tile_width(&self) -> u16
Returns the width of the tiles in this canvas in pixels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Canvas
impl<'de> Deserialize<'de> for Canvas
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnwindSafe for Canvas
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