]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-pixbuf-cache.h
2007-01-14 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian transla...
[evince.git] / shell / ev-pixbuf-cache.h
index 19d0311f55bf2c2ede126efe50460891657dc141..6f96dc18f91efe633c673ec380c8da3b62cc30f6 100644 (file)
@@ -42,30 +42,40 @@ G_BEGIN_DECLS
 typedef struct {
        int page;
        EvRectangle rect;
+       GdkRegion *covered_region;
 } EvViewSelection;
 
 typedef struct _EvPixbufCache       EvPixbufCache;
 typedef struct _EvPixbufCacheClass  EvPixbufCacheClass;
 
-GType          ev_pixbuf_cache_get_type         (void) G_GNUC_CONST;
-EvPixbufCache *ev_pixbuf_cache_new                  (EvDocument    *document);
+GType          ev_pixbuf_cache_get_type             (void) G_GNUC_CONST;
+EvPixbufCache *ev_pixbuf_cache_new                  (GtkWidget     *view,
+                                                    EvDocument    *document);
 void           ev_pixbuf_cache_set_page_range       (EvPixbufCache *pixbuf_cache,
                                                     gint           start_page,
                                                     gint           end_page,
+                                                    gint           rotation,
                                                     gfloat         scale,
                                                     GList          *selection_list);
 GdkPixbuf     *ev_pixbuf_cache_get_pixbuf           (EvPixbufCache *pixbuf_cache,
                                                     gint           page);
 GList         *ev_pixbuf_cache_get_link_mapping     (EvPixbufCache *pixbuf_cache,
                                                     gint           page);
-/* Selection */
-GList         *ev_pixbuf_cach_get_text_mapping      (EvPixbufCache *pixbuf_cache,
+GList         *ev_pixbuf_cache_get_image_mapping    (EvPixbufCache *pixbuf_cache,
+                                                    gint           page);
+GdkRegion     *ev_pixbuf_cache_get_text_mapping     (EvPixbufCache *pixbuf_cache,
                                                     gint           page);
+void           ev_pixbuf_cache_clear                (EvPixbufCache *pixbuf_cache);
+void           ev_pixbuf_cache_style_changed        (EvPixbufCache *pixbuf_cache);
+
+/* Selection */
 GdkPixbuf     *ev_pixbuf_cache_get_selection_pixbuf (EvPixbufCache *pixbuf_cache,
                                                     gint           page,
-                                                    gfloat         scale);
+                                                    gfloat         scale,
+                                                    GdkRegion     **region);
 void           ev_pixbuf_cache_set_selection_list   (EvPixbufCache *pixbuf_cache,
                                                     GList         *selection_list);
+GList         *ev_pixbuf_cache_get_selection_list   (EvPixbufCache *pixbuf_cache);
 
 G_END_DECLS