Implement Frame::fill and Frame::stroke

This commit is contained in:
Héctor Ramón Jiménez 2020-02-12 07:08:49 +01:00
parent 74dd79e97f
commit f34407bfda
3 changed files with 100 additions and 2 deletions

View file

@ -9,10 +9,16 @@ impl Path {
pub fn new(f: impl FnOnce(&mut Builder)) -> Self {
let mut builder = Builder::new();
// TODO: Make it pure instead of side-effect-based (?)
f(&mut builder);
builder.build()
}
#[inline]
pub(crate) fn raw(&self) -> &lyon::path::Path {
&self.raw
}
}
#[allow(missing_debug_implementations)]