2023-06-22 00:38:36 +02:00
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
2024-04-09 22:25:16 +02:00
|
|
|
pub enum Primitive {
|
2023-06-22 00:38:36 +02:00
|
|
|
/// A path filled with some paint.
|
|
|
|
|
Fill {
|
|
|
|
|
/// The path to fill.
|
|
|
|
|
path: tiny_skia::Path,
|
|
|
|
|
/// The paint to use.
|
|
|
|
|
paint: tiny_skia::Paint<'static>,
|
|
|
|
|
/// The fill rule to follow.
|
|
|
|
|
rule: tiny_skia::FillRule,
|
|
|
|
|
},
|
|
|
|
|
/// A path stroked with some paint.
|
|
|
|
|
Stroke {
|
|
|
|
|
/// The path to stroke.
|
|
|
|
|
path: tiny_skia::Path,
|
|
|
|
|
/// The paint to use.
|
|
|
|
|
paint: tiny_skia::Paint<'static>,
|
|
|
|
|
/// The stroke settings.
|
|
|
|
|
stroke: tiny_skia::Stroke,
|
|
|
|
|
},
|
|
|
|
|
}
|