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