summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 1974b578..622b0363 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -229,15 +229,6 @@ pub enum Element {
Geometry(Geometry),
}
-/// The kind of graphic fill to be applied to a [`Shape`].
-#[derive(Debug, Clone, PartialEq)]
-pub enum Fill {
- /// The fill is a color.
- Color(Color),
- /// The fill is an image.
- Image(Image),
-}
-
/// A shape with some kind of fill.
#[derive(Debug, Clone, PartialEq)]
pub struct Geometry {
@@ -258,8 +249,17 @@ pub enum Shape {
Rect(Size),
}
+/// The kind of graphic fill to be applied to a [`Shape`].
+#[derive(Debug, Copy, Clone, PartialEq)]
+pub enum Fill {
+ /// The fill is a color.
+ Color(Color),
+ /// The fill is an image.
+ Image(Image),
+}
+
/// An image element.
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq)]
pub struct Image {
/// The image resource.
pub res: ResourceId,