1use crate::pathkit;
4
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7pub enum PathOp {
8 Difference,
10 Intersect,
12 Union,
14 Xor,
16 ReverseDifference,
18}
19
20impl From<PathOp> for pathkit::SkPathOp::Type {
21 fn from(op: PathOp) -> Self {
22 match op {
23 PathOp::Difference => pathkit::SkPathOp::kDifference_SkPathOp,
24 PathOp::Intersect => pathkit::SkPathOp::kIntersect_SkPathOp,
25 PathOp::Union => pathkit::SkPathOp::kUnion_SkPathOp,
26 PathOp::Xor => pathkit::SkPathOp::kXOR_SkPathOp,
27 PathOp::ReverseDifference => pathkit::SkPathOp::kReverseDifference_SkPathOp,
28 }
29 }
30}