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:
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