X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fev-document.h;h=2cea42f373ad5f0c83299e82f292b2ed889f9e96;hb=8e6d88c8b0d2871ec61a42f38352425122281be6;hp=1fd8fe3221eda755b300d6592c32a4aaa12f8df5;hpb=79986dda7231d1ef1c530909bde8e18a507a2a2a;p=evince.git diff --git a/backend/ev-document.h b/backend/ev-document.h index 1fd8fe32..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,14 +56,10 @@ typedef enum EV_DOCUMENT_ERROR_ENCRYPTED } EvDocumentError; -typedef enum -{ - EV_ORIENTATION_DOCUMENT, - EV_ORIENTATION_PORTRAIT, - EV_ORIENTATION_LANDSCAPE, - EV_ORIENTATION_UPSIDEDOWN, - EV_ORIENTATION_SEASCAPE -} EvOrientation; +typedef struct { + double x; + double y; +} EvPoint; typedef struct { double x1; @@ -95,11 +92,8 @@ struct _EvDocumentIface EvRectangle *rect); GList * (* get_links) (EvDocument *document, int page); - GdkPixbuf * (* render_pixbuf) (EvDocument *document, - int page, - double scale); - void (* set_orientation) (EvDocument *document, - EvOrientation orientation); + GdkPixbuf * (* render_pixbuf) (EvDocument *document, + EvRenderContext *rc); EvDocumentInfo * (* get_info) (EvDocument *document); }; @@ -130,10 +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); -void ev_document_set_orientation (EvDocument *document, - EvOrientation orientation); + EvRenderContext *rc); + +gint ev_rect_cmp (EvRectangle *a, + EvRectangle *b); + G_END_DECLS