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::graphic_element::GraphicElementShape;
5use crate::schema::animated_properties::position::Position;
6use crate::schema::{
7 animated_properties::multi_dimensional::MultiDimensional, shapes::shape::Shape,
8};
9use serde::{Deserialize, Serialize};
10
11#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
12pub struct EllipseShape {
13 #[serde(flatten)]
14 pub shape: Shape,
15 /// Position
16 #[serde(rename = "p")]
17 pub position: Position,
18 /// Size
19 #[serde(rename = "s")]
20 pub size: MultiDimensional,
21}