X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document.h;h=2629a47fd54eebff7429a3a06f882b96cb4c42c4;hb=dba517b12cce84d27def17a4b8f44ae847c5048a;hp=044014f370cb8798782d9cd7fca4bea3b7ca7a6f;hpb=e9ffd7b5401b32979ea83bc56da4592e80f8ce3e;p=evince.git diff --git a/backend/ev-document.h b/backend/ev-document.h index 044014f3..2629a47f 100644 --- a/backend/ev-document.h +++ b/backend/ev-document.h @@ -28,6 +28,7 @@ #include "ev-link.h" #include "ev-document-info.h" +#include "ev-render-context.h" G_BEGIN_DECLS @@ -55,14 +56,6 @@ typedef enum EV_DOCUMENT_ERROR_ENCRYPTED } EvDocumentError; -typedef enum -{ - EV_ORIENTATION_PORTRAIT, - EV_ORIENTATION_LANDSCAPE, - EV_ORIENTATION_UPSIDEDOWN, - EV_ORIENTATION_SEASCAPE -} EvOrientation; - typedef struct { double x1; double y1; @@ -94,12 +87,8 @@ struct _EvDocumentIface EvRectangle *rect); GList * (* get_links) (EvDocument *document, int page); - GdkPixbuf * (* render_pixbuf) (EvDocument *document, - int page, - double scale); - EvOrientation (* get_orientation) (EvDocument *document); - void (* set_orientation) (EvDocument *document, - EvOrientation orientation); + GdkPixbuf * (* render_pixbuf) (EvDocument *document, + EvRenderContext *rc); EvDocumentInfo * (* get_info) (EvDocument *document); }; @@ -130,11 +119,11 @@ char *ev_document_get_text (EvDocument *document, GList *ev_document_get_links (EvDocument *document, int page); GdkPixbuf *ev_document_render_pixbuf (EvDocument *document, - int page, - double scale); -EvOrientation ev_document_get_orientation (EvDocument *document); -void ev_document_set_orientation (EvDocument *document, - EvOrientation orientation); + EvRenderContext *rc); + +gint ev_rect_cmp (EvRectangle *a, + EvRectangle *b); + G_END_DECLS