micropdf 0.16.0

A pure Rust PDF library - A pure Rust PDF library with fz_/pdf_ API compatibility
//! Device — compatibility shim.
//!
//! Re-exports from `crate::micropdf::device`.

pub use crate::micropdf::device::{
    MpBBoxDevice as BBoxDevice, MpBlendMode as BlendMode, MpContainer as Container,
    MpContainerType as ContainerType, MpDevice as Device, MpNullDevice as NullDevice,
    MpTraceDevice as TraceDevice,
};

#[cfg(test)]
mod tests {
    use super::*;
    use crate::fitz::geometry::Matrix;

    #[test]
    fn test_shim_reexport() {
        let mut device = NullDevice;
        let path = crate::fitz::path::Path::new();
        let cs = crate::fitz::colorspace::Colorspace::device_rgb();
        let color = [1.0, 0.0, 0.0];
        device.fill_path(&path, false, &Matrix::IDENTITY, &cs, &color, 1.0);
    }
}