[][src]Struct pyxel::Canvas

pub struct Canvas { /* fields omitted */ }

A Pyxel canvas.

Methods

impl Canvas[src]

pub fn layers(&self) -> &Vec<Layer>[src]

Returns the layers of this canvas.

pub fn height(&self) -> i32[src]

Returns the height of this canvas in pixels.

pub fn tile_height(&self) -> u16[src]

Returns the height of the tiles in this canvas in pixels.

pub fn tile_width(&self) -> u16[src]

Returns the width of the tiles in this canvas in pixels.

pub fn width(&self) -> i32[src]

Returns the width of this canvas in pixels.

Trait Implementations

impl Debug for Canvas[src]

impl<'de> Deserialize<'de> for Canvas[src]

Auto Trait Implementations

impl Sync for Canvas

impl Unpin for Canvas

impl Send for Canvas

impl UnwindSafe for Canvas

impl RefUnwindSafe for Canvas

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]