Skip to main content

Drawable

Trait Drawable 

Source
pub trait Drawable {
    // Required method
    fn bbox(&self, strips: &[Strip]) -> Option<RectU16>;
}
Expand description

A drawable object that can report its bounding box.

Required Methods§

Source

fn bbox(&self, strips: &[Strip]) -> Option<RectU16>

Return the tile-aligned bounding box of the given object, if it has one.

Implementors§