1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
use crate::prelude::*;
use skia_bindings::SkCoverageMode;

#[derive(Copy, Clone, PartialEq, Eq, Debug)]
#[repr(i32)]
pub enum CoverageMode {
    Union = SkCoverageMode::kUnion as _,
    Intersect = SkCoverageMode::kIntersect as _,
    Difference = SkCoverageMode::kDifference as _,
    ReverseDifference = SkCoverageMode::kReverseDifference as _,
    Xor = SkCoverageMode::kXor as _,
}

impl NativeTransmutable<SkCoverageMode> for CoverageMode {}
#[test]
fn test_coverage_mode_layout() {
    CoverageMode::test_layout()
}