summaryrefslogtreecommitdiff
path: root/src/layout/frame.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-04-23 17:46:14 +0200
committerLaurenz <laurmaedje@gmail.com>2021-04-23 17:46:14 +0200
commit6292d25afb3080f606844d7e03fec5c80f0140ff (patch)
tree8d2495edccaa6bdaaa4d012be18df15788c640d0 /src/layout/frame.rs
parent72478946c261f04754c11f8a6abf6eb0f43dea31 (diff)
Reengineer font and resource loading 🏞
Diffstat (limited to 'src/layout/frame.rs')
-rw-r--r--src/layout/frame.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs
index 24ba65ce..9890e33f 100644
--- a/src/layout/frame.rs
+++ b/src/layout/frame.rs
@@ -1,7 +1,5 @@
-use fontdock::FaceId;
-
use crate::color::Color;
-use crate::env::ResourceId;
+use crate::env::{FaceId, ResourceId};
use crate::geom::{Length, Path, Point, Size};
use serde::{Deserialize, Serialize};
@@ -114,15 +112,13 @@ pub enum Shape {
pub enum Fill {
/// The fill is a color.
Color(Color),
- /// The fill is an image.
- Image(Image),
}
/// An image element.
#[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)]
pub struct Image {
/// The image resource.
- pub res: ResourceId,
+ pub id: ResourceId,
/// The size of the image in the document.
pub size: Size,
}