pub enum Geometry {
Rect {
center: Option<Anim<[f32; 2]>>,
size: Option<Anim<[f32; 2]>>,
corner_radius: Option<Anim<f32>>,
rotation: Option<Anim<f32>>,
},
Ellipse {
center: Option<Anim<[f32; 2]>>,
size: Option<Anim<[f32; 2]>>,
rotation: Option<Anim<f32>>,
},
Polygon {
center: Option<Anim<[f32; 2]>>,
points: u32,
radius: Option<Anim<f32>>,
roundness: Option<Anim<f32>>,
rotation: Option<Anim<f32>>,
},
Star {
center: Option<Anim<[f32; 2]>>,
points: u32,
outer_radius: Option<Anim<f32>>,
inner_radius: Option<Anim<f32>>,
rotation: Option<Anim<f32>>,
},
Path {
d: String,
},
}Expand description
One outline, in its area’s unit square. Masks take the same outlines.
Variants§
Rect
A rectangle, optionally with rounded corners.
Fields
Ellipse
An ellipse.
Fields
Polygon
A regular polygon.
Fields
Star
A star.
Fields
Path
An outline as SVG path data (d), in the area’s unit square.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Geometry
impl<'de> Deserialize<'de> for Geometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Forget for Geometry
impl Freeze for Geometry
impl Move for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more