pub struct ClusterState {
pub offset: [f32; 2],
pub scale: [f32; 2],
pub rotation: f32,
pub opacity: f32,
pub fill: Option<ColorMix>,
pub stroke: Option<ColorMix>,
pub tracking: f32,
}Expand description
Animation state of one cluster.
Fields§
§offset: [f32; 2]Translation in pixels, +y down.
scale: [f32; 2]Non-negative scale about its center.
rotation: f32Clockwise rotation about its center, in radians.
opacity: f32Multiplies fill and stroke coverage, in [0, 1].
fill: Option<ColorMix>Fill color change; None keeps it.
stroke: Option<ColorMix>Stroke color change; None keeps them.
tracking: f32Extra space after the cluster in pixels, like letter spacing.
Implementations§
Source§impl ClusterState
impl ClusterState
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
Whether the state changes nothing.
Trait Implementations§
Source§impl Clone for ClusterState
impl Clone for ClusterState
impl Copy for ClusterState
Source§impl Debug for ClusterState
impl Debug for ClusterState
Source§impl PartialEq for ClusterState
impl PartialEq for ClusterState
impl StructuralPartialEq for ClusterState
Auto Trait Implementations§
impl Freeze for ClusterState
impl RefUnwindSafe for ClusterState
impl Send for ClusterState
impl Sync for ClusterState
impl Unpin for ClusterState
impl UnsafeUnpin for ClusterState
impl UnwindSafe for ClusterState
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