Struct quicksilver::graphics::Canvas
[−]
[src]
pub struct Canvas { /* fields omitted */ }
The way to draw items to the screen, produced by WindowBuilder
Methods
impl Canvas
[src]
fn set_camera(&mut self, cam: Camera)
[src]
Set the camera view for the Canvas
fn clear(&mut self, color: Color)
[src]
Clear the screen to a given color
fn present(&mut self, _window: &Window)
[src]
Draw the changes made to the screen
fn draw_image(&mut self, image: &Image, center: Vector)
[src]
Draw an image with a given center
fn draw_image_blend(&mut self, image: &Image, center: Vector, col: Color)
[src]
Draw an image with a given center blended with a given color
fn draw_image_trans(
&mut self,
image: &Image,
center: Vector,
col: Color,
trans: Transform
)
[src]
&mut self,
image: &Image,
center: Vector,
col: Color,
trans: Transform
)
Draw a transform image blended with a given color
fn draw_rect(&mut self, rect: Rectangle, col: Color)
[src]
Draw a rectangle filled with a given color
fn draw_rect_trans(&mut self, rect: Rectangle, col: Color, trans: Transform)
[src]
Draw a rectangle filled with a given color with a given transform
fn draw_circle(&mut self, circ: Circle, col: Color)
[src]
Draw a circled filled with a given color
fn draw_circle_trans(&mut self, circ: Circle, col: Color, trans: Transform)
[src]
Draw a circle filled with a given color with a given transformation
fn draw_polygon(&mut self, vertices: &[Vector], col: Color)
[src]
Draw a polygon filled with a given color
fn draw_polygon_trans(
&mut self,
vertices: &[Vector],
col: Color,
trans: Transform
)
[src]
&mut self,
vertices: &[Vector],
col: Color,
trans: Transform
)
Draw a polygon filled with a given color with a given transform
fn draw_line(&mut self, line: Line, col: Color)
[src]
Draw a line with a given color
fn draw_line_trans(&mut self, line: Line, col: Color, trans: Transform)
[src]
Draw a transformed line
fn draw_point(&mut self, vec: Vector, col: Color)
[src]
Draw a point with a color
fn draw_shape(&mut self, shape: Shape, col: Color)
[src]
Draw a shape filled with a given color
fn draw_shape_trans(&mut self, shape: Shape, col: Color, trans: Transform)
[src]
Draw a translated shape filled with a given color