Trait flo_canvas::GraphicsContext [] [src]

pub trait GraphicsContext {
    fn new_path(&mut self);
fn move_to(&mut self, x: f32, y: f32);
fn line_to(&mut self, x: f32, y: f32);
fn bezier_curve_to(
        &mut self,
        x1: f32,
        y1: f32,
        x2: f32,
        y2: f32,
        x3: f32,
        y3: f32
    );
fn close_path(&mut self);
fn fill(&mut self);
fn stroke(&mut self);
fn line_width(&mut self, width: f32);
fn line_width_pixels(&mut self, width: f32);
fn line_join(&mut self, join: LineJoin);
fn line_cap(&mut self, cap: LineCap);
fn new_dash_pattern(&mut self);
fn dash_length(&mut self, length: f32);
fn dash_offset(&mut self, offset: f32);
fn fill_color(&mut self, col: Color);
fn stroke_color(&mut self, col: Color);
fn blend_mode(&mut self, mode: BlendMode);
fn identity_transform(&mut self);
fn canvas_height(&mut self, height: f32);
fn center_region(&mut self, minx: f32, miny: f32, maxx: f32, maxy: f32);
fn transform(&mut self, transform: Transform2D);
fn unclip(&mut self);
fn clip(&mut self);
fn store(&mut self);
fn restore(&mut self);
fn free_stored_buffer(&mut self);
fn push_state(&mut self);
fn pop_state(&mut self);
fn clear_canvas(&mut self);
fn layer(&mut self, layer_id: u32);
fn layer_blend(&mut self, layer_id: u32, blend_mode: BlendMode);
fn clear_layer(&mut self); fn draw(&mut self, d: Draw) { ... }
fn draw_list<'a>(&'a mut self, drawing: Box<Iterator<Item = Draw> + 'a>) { ... } }

A graphics context provides the basic set of graphics actions that can be performed

Required Methods

Provided Methods

Implementors