Add transform stack to canvas::Frame

This commit is contained in:
Héctor Ramón Jiménez 2020-02-14 04:59:31 +01:00
parent 76df374624
commit 558abf648b
6 changed files with 122 additions and 12 deletions

View file

@ -21,6 +21,16 @@ impl Path {
pub(crate) fn raw(&self) -> &lyon::path::Path {
&self.raw
}
#[inline]
pub(crate) fn transformed(
&self,
transform: &lyon::math::Transform,
) -> Path {
Path {
raw: self.raw.transformed(transform),
}
}
}
#[allow(missing_debug_implementations)]