[][src]Trait pathfinder::traits::Draw

pub trait Draw {
    fn draw(&self, image: IW, offset: Coordinate, shape: &Shape) -> IW;
fn size(&self) -> u32;
fn links(&self) -> &[HL]; }

Functions required to draw the structure on the image.

Required methods

fn draw(&self, image: IW, offset: Coordinate, shape: &Shape) -> IW

fn size(&self) -> u32

Loading content...

Implementors

impl Draw for Group[src]

fn draw(&self, image: IW, offset: Coordinate, shape: &Shape) -> IW[src]

Draws the Nodes inside that Group.

If none the Group is draw as blank.

impl Draw for Node[src]

fn draw(&self, image: IW, offset: Coordinate, shape: &Shape) -> IW[src]

Draws the node on an IW.

It is recommended to not use this directory. But instead use the Map struct, which uses this trait implementation.

Loading content...