diff options
author | Reizner Evgeniy <razrfalcon@gmail.com> | 2018-03-25 23:17:00 +0300 |
---|---|---|
committer | Reizner Evgeniy <razrfalcon@gmail.com> | 2018-03-25 23:17:00 +0300 |
commit | ea20ff9b1d1917a8ead68eb578fba909dc25b8fc (patch) | |
tree | 035c435de5b37a6f28c48ca7717676ea46eb8002 /capi | |
parent | 39df1d0ff3100b0e222ed800d10b7cb003849d5e (diff) |
Preprocessor and tree are moved to the `usvg` crate.
Diffstat (limited to 'capi')
-rw-r--r-- | capi/src/lib.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/capi/src/lib.rs b/capi/src/lib.rs index d4c154b..7a2fdc9 100644 --- a/capi/src/lib.rs +++ b/capi/src/lib.rs @@ -30,7 +30,8 @@ use resvg::qt; #[cfg(feature = "cairo-backend")] use resvg::cairo; -use resvg::RectExt; +use resvg::usvg; +use resvg::geom::*; use resvg::tree::prelude::*; @@ -90,7 +91,7 @@ pub struct resvg_transform { } #[repr(C)] -pub struct resvg_render_tree(resvg::tree::RenderTree); +pub struct resvg_render_tree(resvg::tree::Tree); #[repr(C)] pub struct resvg_handle(resvg::InitObject); @@ -572,10 +573,12 @@ fn to_native_opt(opt: &resvg_options) -> resvg::Options { }; resvg::Options { - path, - dpi: opt.dpi, + usvg: usvg::Options { + path, + dpi: opt.dpi, + keep_named_groups: opt.keep_named_groups, + }, fit_to, background, - keep_named_groups: opt.keep_named_groups, } } |