mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 06:48:11 +08:00
Implement Pen Tool (#79)
This commit is contained in:
committed by
Keavon Chambers
parent
b556dd6bfd
commit
e40727e914
@@ -9,6 +9,9 @@ pub use line::Line;
|
||||
pub mod rect;
|
||||
pub use rect::Rect;
|
||||
|
||||
pub mod polyline;
|
||||
pub use polyline::PolyLine;
|
||||
|
||||
pub mod shape;
|
||||
pub use shape::Shape;
|
||||
|
||||
@@ -25,6 +28,7 @@ pub enum LayerDataTypes {
|
||||
Circle(Circle),
|
||||
Rect(Rect),
|
||||
Line(Line),
|
||||
PolyLine(PolyLine),
|
||||
Shape(Shape),
|
||||
}
|
||||
|
||||
@@ -35,6 +39,7 @@ impl LayerDataTypes {
|
||||
Self::Circle(c) => c.render(),
|
||||
Self::Rect(r) => r.render(),
|
||||
Self::Line(l) => l.render(),
|
||||
Self::PolyLine(pl) => pl.render(),
|
||||
Self::Shape(s) => s.render(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user