#include <glib-object.h>
#include <gdk/gdk.h>
#include <evince-document.h>
#include <evince-view.h>
Go to the source code of this file.
|
GType | ev_page_cache_get_type (void) G_GNUC_CONST |
|
EvPageCache * | ev_page_cache_new (EvDocument *document) |
|
void | ev_page_cache_set_page_range (EvPageCache *cache, gint start, gint end) |
|
EvJobPageDataFlags | ev_page_cache_get_flags (EvPageCache *cache) |
|
void | ev_page_cache_set_flags (EvPageCache *cache, EvJobPageDataFlags flags) |
|
void | ev_page_cache_mark_dirty (EvPageCache *cache, gint page, EvJobPageDataFlags flags) |
|
EvMappingList * | ev_page_cache_get_link_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_image_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_form_field_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_annot_mapping (EvPageCache *cache, gint page) |
|
EvMappingList * | ev_page_cache_get_media_mapping (EvPageCache *cache, gint page) |
|
cairo_region_t * | ev_page_cache_get_text_mapping (EvPageCache *cache, gint page) |
|
const gchar * | ev_page_cache_get_text (EvPageCache *cache, gint page) |
|
gboolean | ev_page_cache_get_text_layout (EvPageCache *cache, gint page, EvRectangle **areas, guint *n_areas) |
|
PangoAttrList * | ev_page_cache_get_text_attrs (EvPageCache *cache, gint page) |
|
gboolean | ev_page_cache_get_text_log_attrs (EvPageCache *cache, gint page, PangoLogAttr **log_attrs, gulong *n_attrs) |
|
void | ev_page_cache_ensure_page (EvPageCache *cache, gint page) |
|
gboolean | ev_page_cache_is_page_cached (EvPageCache *cache, gint page) |
|
#define EV_IS_PAGE_CACHE_CLASS |
( |
|
klass) | |
(G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_PAGE_CACHE)) |
void ev_page_cache_ensure_page |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 750 of file ev-page-cache.c.
754 g_return_if_fail (page >= 0 && page < cache->n_pages);
Definition at line 554 of file ev-page-cache.c.
560 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 532 of file ev-page-cache.c.
538 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 510 of file ev-page-cache.c.
516 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 488 of file ev-page-cache.c.
494 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
Definition at line 576 of file ev-page-cache.c.
582 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
const gchar* ev_page_cache_get_text |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 620 of file ev-page-cache.c.
626 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
PangoAttrList* ev_page_cache_get_text_attrs |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 683 of file ev-page-cache.c.
689 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
gboolean ev_page_cache_get_text_layout |
( |
EvPageCache * |
cache, |
|
|
gint |
page, |
|
|
EvRectangle ** |
areas, |
|
|
guint * |
n_areas |
|
) |
| |
Definition at line 642 of file ev-page-cache.c.
650 g_return_val_if_fail (page >= 0 && page < cache->n_pages,
FALSE);
gboolean ev_page_cache_get_text_log_attrs |
( |
EvPageCache * |
cache, |
|
|
gint |
page, |
|
|
PangoLogAttr ** |
log_attrs, |
|
|
gulong * |
n_attrs |
|
) |
| |
Definition at line 718 of file ev-page-cache.c.
726 g_return_val_if_fail (page >= 0 && page < cache->n_pages,
FALSE);
cairo_region_t* ev_page_cache_get_text_mapping |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 598 of file ev-page-cache.c.
604 g_return_val_if_fail (page >= 0 && page < cache->n_pages, NULL);
GType ev_page_cache_get_type |
( |
void |
) | |
|
gboolean ev_page_cache_is_page_cached |
( |
EvPageCache * |
cache, |
|
|
gint |
page |
|
) |
| |
Definition at line 760 of file ev-page-cache.c.
766 g_return_val_if_fail (page >= 0 && page < cache->n_pages,
FALSE);
void ev_page_cache_set_page_range |
( |
EvPageCache * |
cache, |
|
|
gint |
start, |
|
|
gint |
end |
|
) |
| |
Definition at line 384 of file ev-page-cache.c.
389 gint pages_to_pre_cache;
394 for (i = start; i <= end; i++)
402 while ((start - i > 0) || (end + i < cache->n_pages)) {
403 if (end + i < cache->n_pages) {
405 if (--pages_to_pre_cache == 0)
411 if (--pages_to_pre_cache == 0)