Skip to main content

ElementBoundingBox

Trait ElementBoundingBox 

Source
pub trait ElementBoundingBox {
    // Required method
    fn bounding_box(&self, id: ElementId) -> Option<BoundingBox>;
}
Expand description

Resolves axis-aligned layout bounds for elements.

Required Methods§

Source

fn bounding_box(&self, id: ElementId) -> Option<BoundingBox>

Returns the bounding box of id.

Returns None when id is unknown.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§