pub enum PolygonSpec {
Circle {
vertices: u8,
radius: f32,
},
Rectangle {
width: f32,
height: f32,
rounding_radius: f32,
smoothing: f32,
},
Regular {
vertices: u8,
radius: f32,
rounding_radius: f32,
smoothing: f32,
rotation_degrees: f32,
},
}Expand description
Inputs for the finite rounded polygons used as morph endpoints. These are source coordinates before path generation and normalization.
Variants§
Circle
The final circle radius, as in AndroidX RoundedPolygon.circle.
Rectangle
Regular
The circumradius of the unrounded regular polygon.
Trait Implementations§
Source§impl Clone for PolygonSpec
impl Clone for PolygonSpec
impl Copy for PolygonSpec
Source§impl Debug for PolygonSpec
impl Debug for PolygonSpec
Source§impl PartialEq for PolygonSpec
impl PartialEq for PolygonSpec
impl StructuralPartialEq for PolygonSpec
Auto Trait Implementations§
impl Forget for PolygonSpec
impl Freeze for PolygonSpec
impl Move for PolygonSpec
impl RefUnwindSafe for PolygonSpec
impl Send for PolygonSpec
impl Sync for PolygonSpec
impl Unpin for PolygonSpec
impl UnsafeUnpin for PolygonSpec
impl UnwindSafe for PolygonSpec
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