X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=backend%2Fev-document.h;h=2cea42f373ad5f0c83299e82f292b2ed889f9e96;hb=728e908951ca5d09152d4fdd309dd52bce692c7a;hp=044014f370cb8798782d9cd7fca4bea3b7ca7a6f;hpb=e9ffd7b5401b32979ea83bc56da4592e80f8ce3e;p=evince.git diff --git a/backend/ev-document.h b/backend/ev-document.h index 044014f3..2cea42f3 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,13 +56,10 @@ 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 x; + double y; +} EvPoint; typedef struct { double x1; @@ -94,12 +92,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 +124,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