pub struct Stroke {
pub paint: Option<PaintChoice>,
pub width: Anim<f32>,
pub dash: Vec<f32>,
pub cap: Option<LineCap>,
pub join: Option<LineJoin>,
}Expand description
A line along outlines.
Fields§
§paint: Option<PaintChoice>What covers it. Default: the theme’s text color.
width: Anim<f32>Width, as a fraction of the area’s shorter side.
dash: Vec<f32>Dash and gap lengths, as fractions of the area’s shorter side. Default: solid.
cap: Option<LineCap>How open ends look. Default butt.
join: Option<LineJoin>How segments meet. Default miter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stroke
impl<'de> Deserialize<'de> for Stroke
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 Stroke
Auto Trait Implementations§
impl Forget for Stroke
impl Freeze for Strokewhere
*const u8 is !null: Freeze,
PhantomData<Stop>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Key<f32>>: Freeze,
PhantomData<f32>: Freeze,
impl Move for Stroke
impl RefUnwindSafe for Stroke
impl Send for Strokewhere
RawVecInner: Send,
impl Sync for Strokewhere
RawVecInner: Sync,
impl Unpin for Stroke
impl UnsafeUnpin for Strokewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Stop>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Key<f32>>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
impl UnwindSafe for Strokewhere
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