Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ev-document.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2005-03-23 11:07:32 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-03-23 11:07:32 (GMT)
commit1c0d19bd22598eca159c3febdcdaf4168891cb8f (patch)
tree76cc5403e6c20380228ab3f7718130162fbf864d /backend/ev-document.h
parent730f128d1fb4feb815c8111c9956d1598c655408 (diff)
merge evince-threads branch
Diffstat (limited to 'backend/ev-document.h')
-rw-r--r--backend/ev-document.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/backend/ev-document.h b/backend/ev-document.h
index b54a0b9..be0d1db 100644
--- a/backend/ev-document.h
+++ b/backend/ev-document.h
@@ -37,10 +37,16 @@ G_BEGIN_DECLS
#define EV_IS_DOCUMENT_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EV_TYPE_DOCUMENT))
#define EV_DOCUMENT_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EV_TYPE_DOCUMENT, EvDocumentIface))
-typedef struct _EvDocument EvDocument;
-typedef struct _EvDocumentIface EvDocumentIface;
+typedef struct _EvDocument EvDocument;
+typedef struct _EvDocumentIface EvDocumentIface;
+typedef struct _EvPageCache EvPageCache;
+typedef struct _EvPageCacheClass EvPageCacheClass;
+
+#include "ev-page-cache.h"
+
#define EV_DOCUMENT_ERROR ev_document_error_quark ()
+#define EV_DOC_MUTEX (ev_document_get_doc_mutex ())
typedef enum
{
@@ -88,12 +94,17 @@ struct _EvDocumentIface
int clip_y,
int clip_width,
int clip_height);
+ GdkPixbuf *(* render_pixbuf) (EvDocument *document);
+
};
-GType ev_document_get_type (void);
-GQuark ev_document_error_quark (void);
+GType ev_document_get_type (void);
+GQuark ev_document_error_quark (void);
+EvPageCache *ev_document_get_page_cache (EvDocument *document);
+GMutex *ev_document_get_doc_mutex (void);
+
gboolean ev_document_load (EvDocument *document,
const char *uri,
@@ -127,6 +138,8 @@ void ev_document_render (EvDocument *document,
int clip_y,
int clip_width,
int clip_height);
+/* Quick hack to test threaded rendering */
+GdkPixbuf *ev_document_render_pixbuf (EvDocument *document);
void ev_document_page_changed (EvDocument *document);
void ev_document_scale_changed (EvDocument *document);