drawing_impeller 1002.0.1

Impeller backend for 2D graphics library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::convert_to_rect;

pub struct Path {
    pub(crate) path: impellers::Path,
}

impl drawing_api::Path for Path {
    fn get_bounds(&self) -> drawing_api::PixelRect {
        let bounds = self.path.get_bounds();
        convert_to_rect(&bounds)
    }
}