From a2f71f42ba300cec5490050a471efeebf627d534 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 6 Dec 2022 04:42:25 +0100 Subject: Rename `Fill` to `ColorFilter` in `graphics::image::vector` --- graphics/src/image/vector.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'graphics/src') diff --git a/graphics/src/image/vector.rs b/graphics/src/image/vector.rs index 0af5be01..82d77aff 100644 --- a/graphics/src/image/vector.rs +++ b/graphics/src/image/vector.rs @@ -8,8 +8,6 @@ use iced_native::Size; use std::collections::{HashMap, HashSet}; use std::fs; -type Fill = Option<[u8; 4]>; - /// Entry in cache corresponding to an svg handle pub enum Svg { /// Parsed svg @@ -36,11 +34,13 @@ impl Svg { #[derive(Debug)] pub struct Cache { svgs: HashMap, - rasterized: HashMap<(u64, u32, u32, Fill), T::Entry>, + rasterized: HashMap<(u64, u32, u32, ColorFilter), T::Entry>, svg_hits: HashSet, - rasterized_hits: HashSet<(u64, u32, u32, Fill)>, + rasterized_hits: HashSet<(u64, u32, u32, ColorFilter)>, } +type ColorFilter = Option<[u8; 4]>; + impl Cache { /// Load svg pub fn load(&mut self, handle: &svg::Handle) -> &Svg { -- cgit