pub struct StrokeItem {
pub paint: Animated<Paint>,
pub width: Animated<f32>,
pub opacity: Animated<f32>,
pub join: LineJoin,
pub miter_limit: f32,
pub cap: LineCap,
pub dash: Option<Dash>,
}Expand description
A stroke along geometry, centred on its outline.
Fields§
§paint: Animated<Paint>What covers the stroke.
width: Animated<f32>Full width, as a fraction of the shorter side. Non-negative; zero draws nothing.
opacity: Animated<f32>Opacity in 0..=1.
join: LineJoinHow segments meet.
miter_limit: f32Longest a miter join reaches, as a multiple of half the width, before it is beveled. At least 1.
cap: LineCapHow open ends look.
dash: Option<Dash>Dashes, or a solid stroke when absent.
Trait Implementations§
Source§impl Clone for StrokeItem
impl Clone for StrokeItem
Source§impl Debug for StrokeItem
impl Debug for StrokeItem
Source§impl<'de> Deserialize<'de> for StrokeItem
impl<'de> Deserialize<'de> for StrokeItem
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 StrokeItem
impl PartialEq for StrokeItem
Source§impl Serialize for StrokeItem
impl Serialize for StrokeItem
impl StructuralPartialEq for StrokeItem
Auto Trait Implementations§
impl Freeze for StrokeItem
impl RefUnwindSafe for StrokeItem
impl Send for StrokeItem
impl Sync for StrokeItem
impl Unpin for StrokeItem
impl UnsafeUnpin for StrokeItem
impl UnwindSafe for StrokeItem
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