X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document.h;h=e95ce96f277c080ddc8191a37392ead2fe25a05d;hb=848665b157185945d190a7a746d054d7f5d5e6e0;hp=044014f370cb8798782d9cd7fca4bea3b7ca7a6f;hpb=e9ffd7b5401b32979ea83bc56da4592e80f8ce3e;p=evince.git diff --git a/backend/ev-document.h b/backend/ev-document.h index 044014f3..e95ce96f 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,9 +87,8 @@ struct _EvDocumentIface EvRectangle *rect); GList * (* get_links) (EvDocument *document, int page); - GdkPixbuf * (* render_pixbuf) (EvDocument *document, - int page, - double scale); + GdkPixbuf * (* render_pixbuf) (EvDocument *document, + EvRenderContext *rc); EvOrientation (* get_orientation) (EvDocument *document); void (* set_orientation) (EvDocument *document, EvOrientation orientation); @@ -130,12 +122,16 @@ 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); + EvRenderContext *rc); EvOrientation ev_document_get_orientation (EvDocument *document); void ev_document_set_orientation (EvDocument *document, EvOrientation orientation); + +gint ev_rect_cmp (EvRectangle *a, + EvRectangle *b); + + G_END_DECLS #endif