Add transform stack to canvas::Frame
This commit is contained in:
parent
76df374624
commit
558abf648b
6 changed files with 122 additions and 12 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue