Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-12-22 04:14:06 (GMT)
committer Owen Taylor <otaylor@src.gnome.org>2004-12-22 04:14:06 (GMT)
commit694748d4887f8ffd866ae30c1660e86af2ceafed (patch)
tree699b42d76bf7f36c7be539c67bc162bb5bd0bc0d /backend/ev-document.h
parent484bd6fc379965a3ad83e758135691d84d595f87 (diff)
Redo size handling.
Tue Dec 21 23:05:51 2004 Owen Taylor <otaylor@redhat.com> * backend/ev-document.{h,cc} pdf/xpdf/pdf-document.cc: Redo size handling. * shell/ev-view.c: Track the size from the document.
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r--backend/ev-document.h60
1 files changed, 33 insertions, 27 deletions
diff --git a/backend/ev-document.h b/backend/ev-document.h
index aa10f9b..e572fed 100644
--- a/backend/ev-document.h
+++ b/backend/ev-document.h
@@ -50,38 +50,44 @@ struct _EvDocumentIface
int page);
void (* set_target) (EvDocument *document,
GdkDrawable *target);
- void (* set_page_rect) (EvDocument *document,
+ void (* set_scale) (EvDocument *document,
+ double scale);
+ void (* set_page_offset) (EvDocument *document,
int x,
- int y,
- int width,
- int height);
- void (* render) (EvDocument *document,
- int clip_x,
- int clip_y,
- int clip_width,
- int clip_height);
+ int y);
+ void (* get_page_size) (EvDocument *document,
+ int *width,
+ int *height);
+ void (* render) (EvDocument *document,
+ int clip_x,
+ int clip_y,
+ int clip_width,
+ int clip_height);
};
GType ev_document_get_type (void);
-gboolean ev_document_load (EvDocument *document,
- const char *uri,
- GError **error);
-int ev_document_get_n_pages (EvDocument *document);
-void ev_document_set_page (EvDocument *document,
- int page);
-void ev_document_set_target (EvDocument *document,
- GdkDrawable *target);
-void ev_document_set_page_rect (EvDocument *document,
- int x,
- int y,
- int width,
- int height);
-void ev_document_render (EvDocument *document,
- int clip_x,
- int clip_y,
- int clip_width,
- int clip_height);
+gboolean ev_document_load (EvDocument *document,
+ const char *uri,
+ GError **error);
+int ev_document_get_n_pages (EvDocument *document);
+void ev_document_set_page (EvDocument *document,
+ int page);
+void ev_document_set_target (EvDocument *document,
+ GdkDrawable *target);
+void ev_document_set_scale (EvDocument *document,
+ double scale);
+void ev_document_set_page_offset (EvDocument *document,
+ int x,
+ int y);
+void ev_document_get_page_size (EvDocument *document,
+ int *width,
+ int *height);
+void ev_document_render (EvDocument *document,
+ int clip_x,
+ int clip_y,
+ int clip_width,
+ int clip_height);
G_END_DECLS