pub trait LayerBbox<L>: Bbox {
// Required method
fn layer_bbox(&self, layer: &L) -> Option<Rect>;
}
Expand description
A trait representing functions available for multi-layered objects with bounding boxes.
Required Methods§
Sourcefn layer_bbox(&self, layer: &L) -> Option<Rect>
fn layer_bbox(&self, layer: &L) -> Option<Rect>
Compute the bounding box considering only objects occupying the given layer.