pub struct RectangleGeometry {
pub center: AnimatedPoint,
pub size: Animated<Vec2>,
pub corner_radius: Animated<f32>,
pub rotation_degrees: Animated<f32>,
}Expand description
A rectangle about its centre, turned clockwise about it. Its outline starts at the top-right corner and runs clockwise.
Fields§
§center: AnimatedPointCentre.
size: Animated<Vec2>Full width and height, before rotation. Non-negative.
corner_radius: Animated<f32>Corner radius, as a fraction of the shorter side. Non-negative; a radius past half the rectangle is capped.
rotation_degrees: Animated<f32>Clockwise rotation about the centre, in degrees.
Trait Implementations§
Source§impl Clone for RectangleGeometry
impl Clone for RectangleGeometry
Source§impl Debug for RectangleGeometry
impl Debug for RectangleGeometry
Source§impl<'de> Deserialize<'de> for RectangleGeometry
impl<'de> Deserialize<'de> for RectangleGeometry
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
Source§impl PartialEq for RectangleGeometry
impl PartialEq for RectangleGeometry
Source§impl Serialize for RectangleGeometry
impl Serialize for RectangleGeometry
impl StructuralPartialEq for RectangleGeometry
Auto Trait Implementations§
impl Freeze for RectangleGeometry
impl RefUnwindSafe for RectangleGeometry
impl Send for RectangleGeometry
impl Sync for RectangleGeometry
impl Unpin for RectangleGeometry
impl UnsafeUnpin for RectangleGeometry
impl UnwindSafe for RectangleGeometry
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