tawasuyu/llimphi
Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.
1// Copyright 2024 the Velato Authors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3
4use super::visual::VisualLayer;
5use serde::{Deserialize, Serialize};
6
7/// Has an array of shapes
8#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
9pub struct SolidLayer {
10 /// Visual layer data
11 #[serde(flatten)]
12 pub visual_layer: VisualLayer,
13 #[serde(rename = "sw")]
14 pub width: f64,
15 #[serde(rename = "sh")]
16 pub height: f64,
17 /// Color of the layer, unlike most other places, the color is a #rrggbb
18 /// hex string
19 #[serde(rename = "sc")]
20 pub color: String,
21}