Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Finalize refactor in PDF, SVG, PS
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechkral committed Feb 6, 2019
1 parent 9b8caae commit 2ae5561
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 412 deletions.
4 changes: 2 additions & 2 deletions src/pdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ impl FromGlibPtrFull<*mut ffi::cairo_surface_t> for File {


pub struct Writer<W: io::Write> {
writer: support::Writer_<File, W>,
writer: support::Writer<File, W>,
}

impl<W: io::Write> Writer<W> {
pub fn new(width: f64, height: f64, writer: W) -> Writer<W> {
let writer = support::Writer_::new(ffi::cairo_pdf_surface_create_for_stream,
let writer = support::Writer::new(ffi::cairo_pdf_surface_create_for_stream,
width, height, writer);

Writer { writer }
Expand Down

0 comments on commit 2ae5561

Please sign in to comment.