pub struct LineStyleOption {
pub color: Option<String>,
pub width: Option<f64>,
pub line_type: Option<LineType>,
pub opacity: Option<f64>,
pub cap: Option<LineCap>,
pub join: Option<LineJoin>,
pub shadow: Option<ShadowOption>,
}Expand description
The stroke of a shape or a line.
Fields§
§color: Option<String>The colour of the line.
width: Option<f64>The width of the line.
line_type: Option<LineType>The dash pattern type.
opacity: Option<f64>The opacity of the line.
cap: Option<LineCap>The cap drawn at the ends of the line.
join: Option<LineJoin>The join drawn between two segments.
shadow: Option<ShadowOption>The shadow cast by the line.
Implementations§
Source§impl LineStyleOption
Inherent implementation of LineStyleOption.
impl LineStyleOption
Inherent implementation of LineStyleOption.
Trait Implementations§
Source§impl Clone for LineStyleOption
impl Clone for LineStyleOption
Source§impl Debug for LineStyleOption
impl Debug for LineStyleOption
Source§impl Default for LineStyleOption
impl Default for LineStyleOption
Source§impl PartialEq for LineStyleOption
impl PartialEq for LineStyleOption
impl StructuralPartialEq for LineStyleOption
Auto Trait Implementations§
impl Freeze for LineStyleOption
impl RefUnwindSafe for LineStyleOption
impl Send for LineStyleOption
impl Sync for LineStyleOption
impl Unpin for LineStyleOption
impl UnsafeUnpin for LineStyleOption
impl UnwindSafe for LineStyleOption
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