]> www.fi.muni.cz Git - evince.git/blobdiff - libview/ev-pixbuf-cache.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / libview / ev-pixbuf-cache.h
index 5e48f2845c10f848fa75ab7e2374b3c1fcbed491..2faf2a7752e22dafbd2c852c3a9cd5f8e898b9e3 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 /* This File is basically an extention of EvView, and is out here just to keep
  * ev-view.c from exploding.
  */
 
+#if !defined (__EV_EVINCE_VIEW_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-view.h> can be included directly."
+#endif
+
 #ifndef __EV_PIXBUF_CACHE_H__
 #define __EV_PIXBUF_CACHE_H__
 
 #include <gtk/gtk.h>
 
-#include "ev-document.h"
-#include "ev-selection.h"
+#include <evince-document.h>
+#include <evince-view.h>
 
 G_BEGIN_DECLS
 
@@ -43,7 +47,7 @@ G_BEGIN_DECLS
 typedef struct {
        int page;
        EvRectangle rect;
-       GdkRegion *covered_region;
+       cairo_region_t *covered_region;
        EvSelectionStyle style;
 } EvViewSelection;
 
@@ -52,35 +56,30 @@ typedef struct _EvPixbufCacheClass  EvPixbufCacheClass;
 
 GType          ev_pixbuf_cache_get_type             (void) G_GNUC_CONST;
 EvPixbufCache *ev_pixbuf_cache_new                  (GtkWidget     *view,
-                                                    EvDocument    *document);
+                                                    EvDocumentModel *model,
+                                                    gsize            max_size);
+void           ev_pixbuf_cache_set_max_size         (EvPixbufCache   *pixbuf_cache,
+                                                    gsize            max_size);
 void           ev_pixbuf_cache_set_page_range       (EvPixbufCache *pixbuf_cache,
                                                     gint           start_page,
                                                     gint           end_page,
-                                                    gint           rotation,
-                                                    gfloat         scale,
                                                     GList          *selection_list);
 cairo_surface_t *ev_pixbuf_cache_get_surface        (EvPixbufCache *pixbuf_cache,
                                                     gint           page);
-GList         *ev_pixbuf_cache_get_link_mapping     (EvPixbufCache *pixbuf_cache,
-                                                    gint           page);
-GList         *ev_pixbuf_cache_get_image_mapping    (EvPixbufCache *pixbuf_cache,
-                                                    gint           page);
-GdkRegion     *ev_pixbuf_cache_get_text_mapping     (EvPixbufCache *pixbuf_cache,
-                                                    gint           page);
-GList        *ev_pixbuf_cache_get_form_field_mapping (EvPixbufCache *pixbuf_cache,
-                                                      gint         page);
 void           ev_pixbuf_cache_clear                (EvPixbufCache *pixbuf_cache);
 void           ev_pixbuf_cache_style_changed        (EvPixbufCache *pixbuf_cache);
-void           ev_pixbuf_cache_reload_page         (EvPixbufCache *pixbuf_cache,
-                                                    GdkRegion     *region,
-                                                    gint           page,
-                                                    gint           rotation,
-                                                    gdouble         scale);
+void           ev_pixbuf_cache_reload_page         (EvPixbufCache  *pixbuf_cache,
+                                                    cairo_region_t *region,
+                                                    gint            page,
+                                                    gint            rotation,
+                                                    gdouble         scale);
+void           ev_pixbuf_cache_set_inverted_colors  (EvPixbufCache *pixbuf_cache,
+                                                    gboolean       inverted_colors);
 /* Selection */
-cairo_surface_t *ev_pixbuf_cache_get_selection_surface (EvPixbufCache *pixbuf_cache,
-                                                       gint           page,
-                                                       gfloat         scale,
-                                                       GdkRegion     **region);
+cairo_surface_t *ev_pixbuf_cache_get_selection_surface (EvPixbufCache   *pixbuf_cache,
+                                                       gint             page,
+                                                       gfloat           scale,
+                                                       cairo_region_t **region);
 void           ev_pixbuf_cache_set_selection_list   (EvPixbufCache *pixbuf_cache,
                                                     GList         *selection_list);
 GList         *ev_pixbuf_cache_get_selection_list   (EvPixbufCache *pixbuf_cache);