diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-05-19 00:33:50 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-19 00:33:50 +0200 |
| commit | 1cb6328d20a3edb09654ec579f514d42be9fe2fc (patch) | |
| tree | 12f86ff9a46551ce5ae36ce6c84fdc630a391253 /src | |
| parent | 118fc1014bcfc5585fd3ce32348fbfe14bdc05a9 (diff) | |
Reword some doc comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout/frame.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs index f3883937..cf8ddb09 100644 --- a/src/layout/frame.rs +++ b/src/layout/frame.rs @@ -41,7 +41,7 @@ impl Frame { pub enum Element { /// Shaped text. Text(Text), - /// A geometric shape. + /// A filled geometric shape. Geometry(Shape, Fill), /// A raster image. Image(ImageId, Size), @@ -54,7 +54,7 @@ pub struct Text { pub face_id: FaceId, /// The font size. pub size: Length, - /// The glyph fill color / texture. + /// The glyph's fill color. pub fill: Fill, /// The glyphs. pub glyphs: Vec<Glyph>, @@ -84,7 +84,7 @@ impl Text { } } -/// Some shape. +/// A geometric shape. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub enum Shape { /// A rectangle with its origin in the topleft corner. @@ -95,9 +95,9 @@ pub enum Shape { Path(Path), } -/// The kind of graphic fill to be applied to a [`Shape`]. +/// How text and shapes are filled. #[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)] pub enum Fill { - /// The fill is a color. + /// A solid color. Color(Color), } |
