#include "ev-link.h"
#include "ev-document-info.h"
+#include "ev-render-context.h"
G_BEGIN_DECLS
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;
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);
};
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