Trait flo_canvas::GraphicsPrimitives[][src]

pub trait GraphicsPrimitives: GraphicsContext {
    fn rect(&mut self, x1: f32, y1: f32, x2: f32, y2: f32) { ... }
fn circle(&mut self, center_x: f32, center_y: f32, radius: f32) { ... }
fn bezier_path<TPath: BezierPath>(&mut self, path: &TPath)
    where
        TPath::Point: Coordinate2D
, { ... }
fn bezier_curve<TCurve: BezierCurve>(&mut self, curve: &TCurve)
    where
        TCurve::Point: Coordinate2D
, { ... }
fn draw_list<'a, DrawIter: 'a + IntoIterator<Item = Draw>>(
        &'a mut self,
        drawing: DrawIter
    ) { ... } }
Expand description

GraphicsPrimitives adds new primitives that can be built directly from a graphics context

Provided methods

Draws a rectangle between particular coordinates

Draws a circle at a particular point

Draws a bezier path

Draws a bezier curve (defined by the BezierCurve trait)

Draws a series of instructions

Implementors