summaryrefslogtreecommitdiff
path: root/platform/ios/common.h
diff options
context:
space:
mode:
authorPaul Gardiner <paul@pauls-mac-mini.site>2013-09-17 15:04:13 +0100
committerPaul Gardiner <paul@pauls-mac-mini.site>2013-09-17 15:08:40 +0100
commit43bcd8a7516bfbd455d81de7e00d5e139abce438 (patch)
tree71efd1fe71fb8dfd6dd4399547f9e10fa2b24d5d /platform/ios/common.h
parent0f6711fd4db36602034734b063cdaf30a396126c (diff)
downloadmupdf-43bcd8a7516bfbd455d81de7e00d5e139abce438.tar.xz
iOS: split the classes into separate files
Diffstat (limited to 'platform/ios/common.h')
-rw-r--r--platform/ios/common.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/platform/ios/common.h b/platform/ios/common.h
new file mode 100644
index 00000000..9642f009
--- /dev/null
+++ b/platform/ios/common.h
@@ -0,0 +1,30 @@
+//
+// common.h
+// MuPDF
+//
+// Copyright (c) 2013 Artifex Software, Inc. All rights reserved.
+//
+
+#ifndef MuPDF_common_h
+#define MuPDF_common_h
+
+#include <UIKit/UIKit.h>
+
+#undef ABS
+#undef MIN
+#undef MAX
+
+#include "mupdf/fitz.h"
+#include "dispatch/dispatch.h"
+
+extern fz_context *ctx;
+extern dispatch_queue_t queue;
+extern float screenScale;
+
+CGSize fitPageToScreen(CGSize page, CGSize screen);
+
+int search_page(fz_document *doc, int number, char *needle, fz_cookie *cookie);
+
+fz_rect search_result_bbox(fz_document *doc, int i);
+
+#endif