diff options
Diffstat (limited to 'src/layout/frame.rs')
| -rw-r--r-- | src/layout/frame.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs index 6cecc7a3..119aeea6 100644 --- a/src/layout/frame.rs +++ b/src/layout/frame.rs @@ -92,12 +92,14 @@ pub enum Shape { Rect(Size), /// An ellipse with its origin in the center. Ellipse(Size), + /// A line to a `Point` (relative to its position) with a stroke width. + Line(Point, Length), /// A bezier path. Path(Path), } /// How text and shapes are filled. -#[derive(Debug, Copy, Clone, PartialEq, Hash, Serialize, Deserialize)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)] pub enum Fill { /// A solid color. Color(Color), |
