Skip to main content

DrawOpen

Trait DrawOpen 

Source
pub trait DrawOpen: Context2DData {
    // Provided methods
    fn line(&self, p1: Point<i32>, p2: Point<i32>) { ... }
    fn polyline(&self, points: &[Point<i32>]) { ... }
    fn arc(&self, border: Rect<i32>, p1: Point<i32>, p2: Point<i32>) { ... }
    fn angle_arc(&self, orgin: Point<i32>, radius: u32, start: f32, end: f32) { ... }
    fn poly_bezier(&self, points: &[Point<i32>]) { ... }
}

Provided Methods§

Source

fn line(&self, p1: Point<i32>, p2: Point<i32>)

Source

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

Source

fn arc(&self, border: Rect<i32>, p1: Point<i32>, p2: Point<i32>)

Source

fn angle_arc(&self, orgin: Point<i32>, radius: u32, start: f32, end: f32)

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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