diff options
| author | Martin Haug <mhaug@live.de> | 2021-06-10 23:08:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-10 23:15:51 +0200 |
| commit | c28708aa196eaca247cdab6b5e8af9751b4f1dad (patch) | |
| tree | e390e84d1a7a1eb2789680a39141c804ff3f85a1 /src/layout/frame.rs | |
| parent | 5611c26577c4cf6d52b9b66b7b1a32253aa23ec1 (diff) | |
Text decorations
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), |
