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§

source

fn layer_bbox(&self, layer: LayerId) -> Option<Rect>

Compute the bounding box considering only objects occupying the given layer.

Implementations on Foreign Types§

source§

impl<T: LayerBbox> LayerBbox for &T

source§

fn layer_bbox(&self, layer: LayerId) -> Option<Rect>

source§

impl<T: LayerBbox> LayerBbox for Vec<T>

source§

fn layer_bbox(&self, layer: LayerId) -> Option<Rect>

Implementors§