pub enum DrawStyle {
Fill,
Stroke {
width: f32,
cap: StrokeCap,
join: StrokeJoin,
miter: f32,
path_effect: Option<PathEffect>,
},
}Expand description
Draw style for text (fill or stroke).
Variants§
Fill
Stroke
Fields
§
join: StrokeJoinLine join style for stroke segment joins.
§
path_effect: Option<PathEffect>Optional path effect (dash, corner rounding, etc.).
Implementations§
Trait Implementations§
impl StructuralPartialEq for DrawStyle
Auto Trait Implementations§
impl Freeze for DrawStyle
impl RefUnwindSafe for DrawStyle
impl Send for DrawStyle
impl Sync for DrawStyle
impl Unpin for DrawStyle
impl UnsafeUnpin for DrawStyle
impl UnwindSafe for DrawStyle
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