diff options
Diffstat (limited to 'macpdf/carbonpdf.h')
-rw-r--r-- | macpdf/carbonpdf.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/macpdf/carbonpdf.h b/macpdf/carbonpdf.h new file mode 100644 index 00000000..dde4dca7 --- /dev/null +++ b/macpdf/carbonpdf.h @@ -0,0 +1,31 @@ +#include <Carbon/Carbon.h> + +#include <fitz.h> +#include <mupdf.h> + +typedef struct viewctx +{ + WindowRef window; + HIViewRef view; + char *doctitle; + + float zoom; + int rotate; + int pageno; + + pdf_page *page; + fz_obj *pageobj; + + pdf_xref *xref; + pdf_pagetree *pages; + pdf_outline *outline; + fz_renderer *rast; + fz_pixmap *image; +} viewctx; + +OSStatus view_register(void); + +OSStatus +view_openpdf(HIViewRef view, char *filename); + +OSStatus view_showpage(HIViewRef view); |