Implement Frame::fill and Frame::stroke
This commit is contained in:
parent
74dd79e97f
commit
f34407bfda
3 changed files with 100 additions and 2 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue