Trait pizarra::shape::ShapeStored[][src]

pub trait ShapeStored: Debug {
    fn draw_commands(&self) -> DrawCommand;
fn bbox(&self) -> [Vec2DWorld; 2];
fn shape_type(&self) -> ShapeType;
fn intersects_circle(&self, center: Vec2DWorld, radius: f64) -> bool;
fn color(&self) -> Color; }

Required methods

return the commands needed to draw this shape

Must know its bbox

Returns the current shape type

does this circle intersect this shape? Used by the eraser

returns the color of this shape

Implementors