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 Geometrywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<EasingPoint>: Freeze,
PhantomData<Key<[f32; 2]>>: Freeze,
PhantomData<Key<f32>>: Freeze,
impl Move for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometrywhere
RawVecInner: Send,
impl Sync for Geometrywhere
RawVecInner: Sync,
impl Unpin for Geometry
impl UnsafeUnpin for Geometrywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<EasingPoint>: UnsafeUnpin,
PhantomData<Key<[f32; 2]>>: UnsafeUnpin,
PhantomData<Key<f32>>: UnsafeUnpin,
impl UnwindSafe for Geometrywhere
RawVecInner: UnwindSafe,
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