Skip to main content

DrawPath

Trait DrawPath 

Source
pub trait DrawPath: Context2DData {
    // Provided methods
    fn begin_path(&self) { ... }
    fn end_path(&self) { ... }
    fn move_to(&self, p: Point<i32>) { ... }
    fn line_to(&self, p: Point<i32>) { ... }
    fn arc_to(&self, rect: Rect<i32>, p1: Point<i32>, p2: Point<i32>) { ... }
    fn poly_bezier_to(&self, points: &[Point<i32>]) { ... }
    fn polyline_to(&self, points: &[Point<i32>]) { ... }
    fn close_figure(&self) { ... }
}

Provided Methods§

Source

fn begin_path(&self)

Source

fn end_path(&self)

Source

fn move_to(&self, p: Point<i32>)

Source

fn line_to(&self, p: Point<i32>)

Source

fn arc_to(&self, rect: Rect<i32>, p1: Point<i32>, p2: Point<i32>)

Source

fn poly_bezier_to(&self, points: &[Point<i32>])

Source

fn polyline_to(&self, points: &[Point<i32>])

Source

fn close_figure(&self)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> DrawPath for T
where T: Context2DData,