1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 13:15:35 +03:00

Add Locus utilities

This commit is contained in:
Yuri Strot 2016-09-10 18:41:04 +07:00
parent e55793d03f
commit c00ebecdee

View File

@ -11,4 +11,19 @@ public class Locus {
return Rect()
}
// GENERATED NOT
public func stroke(with with: Stroke) -> Shape {
return Shape(form: self, stroke: with)
}
// GENERATED NOT
public func fill(with with: Fill) -> Shape {
return Shape(form: self, fill: with)
}
// GENERATED NOT
public func stroke(fill fill: Fill = Color.black, width: Double = 1, cap: LineCap = .butt, join: LineJoin = .miter, dashes: [Double] = []) -> Shape {
return Shape(form: self, stroke: Stroke(fill: fill, width: width, cap: cap, join: join, dashes: dashes))
}
}