Struct cdg_renderer::CdgInterpreter
[−]
[src]
pub struct CdgInterpreter { /* fields omitted */ }
Methods
impl CdgInterpreter
[src]
Basic accessors, constructors
fn new() -> Self
fn dirty(&self) -> Option<Rectangle<u16>>
fn clear_dirty_region(&mut self)
Mark the entire region clean
impl CdgInterpreter
[src]
fn handle_cmd(&mut self, command: Command)
Trait Implementations
impl GenericImage for CdgInterpreter
[src]
type Pixel = Rgba<u8>
The type of pixel.
fn dimensions(&self) -> (u32, u32)
The width and height of this image.
fn bounds(&self) -> (u32, u32, u32, u32)
The bounding rectangle of this image.
fn get_pixel(&self, x: u32, y: u32) -> Self::Pixel
Returns the pixel located at (x, y) Read more
fn get_pixel_mut(&mut self, x: u32, y: u32) -> &mut Self::Pixel
Puts a pixel at location (x, y) Read more
fn put_pixel(&mut self, x: u32, y: u32, pixel: Self::Pixel)
Put a pixel at location (x, y) Read more
fn blend_pixel(&mut self, x: u32, y: u32, pixel: Self::Pixel)
Put a pixel at location (x, y), taking into account alpha channels Read more
fn width(&self) -> u32
The width of this image.
fn height(&self) -> u32
The height of this image.
fn in_bounds(&self, x: u32, y: u32) -> bool
Returns true if this x, y coordinate is contained inside the image.
unsafe fn unsafe_get_pixel(&self, x: u32, y: u32) -> Self::Pixel
Returns the pixel located at (x, y) Read more
unsafe fn unsafe_put_pixel(&mut self, x: u32, y: u32, pixel: Self::Pixel)
Puts a pixel at location (x, y) Read more
fn pixels(&self) -> Pixels<Self>
Returns an Iterator over the pixels of this image. The iterator yields the coordinates of each pixel along with their value Read more
fn pixels_mut(&mut self) -> MutPixels<Self>
Returns an Iterator over mutable pixels of this image. The iterator yields the coordinates of each pixel along with a mutable reference to them. Read more
fn copy_from<O>(&mut self, other: &O, x: u32, y: u32) -> bool where
O: GenericImage<Pixel = Self::Pixel>,
O: GenericImage<Pixel = Self::Pixel>,
Copies all of the pixels from another image into this image. Read more
fn sub_image(
&'a mut self,
x: u32,
y: u32,
width: u32,
height: u32
) -> SubImage<'a, Self> where
Self: 'static,
<Self::Pixel as Pixel>::Subpixel: 'static,
Self::Pixel: 'static,
&'a mut self,
x: u32,
y: u32,
width: u32,
height: u32
) -> SubImage<'a, Self> where
Self: 'static,
<Self::Pixel as Pixel>::Subpixel: 'static,
Self::Pixel: 'static,
Returns a subimage that is a view into this image.