[][src]Trait vga_buffer_rs::DrawTarget

pub trait DrawTarget {
    pub fn draw<T: Draw>(&mut self, obj: &T) -> bool;
}

Implement the ability to draw an object on screen

Required methods

pub fn draw<T: Draw>(&mut self, obj: &T) -> bool[src]

Should return false if the obj can't fit on screen.

Loading content...

Implementors

impl DrawTarget for Buffer[src]

impl DrawTarget for VgaBuffer[src]

Loading content...