use std::fmt::Display;
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum StrokeLinejoin {
Arcs,
Bevel,
#[default]
Miter,
MiterClip,
Round,
}
impl Display for StrokeLinejoin {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
StrokeLinejoin::Arcs => write!(f, "arcs"),
StrokeLinejoin::Bevel => write!(f, "bevel"),
StrokeLinejoin::Miter => write!(f, "miter"),
StrokeLinejoin::MiterClip => write!(f, "miterClip"),
StrokeLinejoin::Round => write!(f, "round"),
}
}
}
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub enum StrokeLinecap {
#[default]
Butt,
Round,
Square,
}
impl Display for StrokeLinecap {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
StrokeLinecap::Butt => write!(f, "butt"),
StrokeLinecap::Round => write!(f, "round"),
StrokeLinecap::Square => write!(f, "square"),
}
}
}