Implement Frame::fill and Frame::stroke
This commit is contained in:
parent
74dd79e97f
commit
f34407bfda
3 changed files with 100 additions and 2 deletions
|
|
@ -133,6 +133,16 @@ impl Default for LineCap {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<LineCap> for lyon::tessellation::LineCap {
|
||||
fn from(line_cap: LineCap) -> lyon::tessellation::LineCap {
|
||||
match line_cap {
|
||||
LineCap::Butt => lyon::tessellation::LineCap::Butt,
|
||||
LineCap::Square => lyon::tessellation::LineCap::Square,
|
||||
LineCap::Round => lyon::tessellation::LineCap::Round,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum LineJoin {
|
||||
Miter,
|
||||
|
|
@ -146,6 +156,16 @@ impl Default for LineJoin {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<LineJoin> for lyon::tessellation::LineJoin {
|
||||
fn from(line_join: LineJoin) -> lyon::tessellation::LineJoin {
|
||||
match line_join {
|
||||
LineJoin::Miter => lyon::tessellation::LineJoin::Miter,
|
||||
LineJoin::Round => lyon::tessellation::LineJoin::Round,
|
||||
LineJoin::Bevel => lyon::tessellation::LineJoin::Bevel,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum Fill {
|
||||
Color(Color),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue