diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-07-29 15:05:35 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-07-29 15:05:35 (GMT) |
commit | 646b17b09453da438218e6b86a2b8b830e5b73c0 (patch) | |
tree | c03029b1d6e4156e480f898b02700cd215991e9b /shell/ev-page-cache.h | |
parent | c7a7adde3814522c4a577cb28569fcc0b48ce07e (diff) |
Make the page cache aware of page orientation.
2005-07-29 Marco Pesenti Gritti <mpg@redhat.com>
* shell/ev-page-cache.c: (build_height_to_page),
(ev_page_cache_new), (ev_page_cache_get_size),
(ev_page_cache_get_max_width), (ev_page_cache_get_max_height),
(ev_page_cache_get_height_to_page):
* shell/ev-page-cache.h:
* shell/ev-view.c: (get_page_y_offset), (get_page_extents),
(ev_view_size_request_continuous_dual_page),
(ev_view_size_request_continuous),
(ev_view_zoom_for_size_continuous_and_dual_page),
(ev_view_zoom_for_size_continuous):
Make the page cache aware of page orientation.
Diffstat (limited to 'shell/ev-page-cache.h')
-rw-r--r-- | shell/ev-page-cache.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/shell/ev-page-cache.h b/shell/ev-page-cache.h index af8532e..3360d82 100644 --- a/shell/ev-page-cache.h +++ b/shell/ev-page-cache.h @@ -31,23 +31,26 @@ G_BEGIN_DECLS GType ev_page_cache_get_type (void) G_GNUC_CONST; /* Used by ev-document.c only */ -EvPageCache *ev_page_cache_new (EvDocument *document); -gint ev_page_cache_get_n_pages (EvPageCache *page_cache); -const char *ev_page_cache_get_title (EvPageCache *page_cache); -void ev_page_cache_get_size (EvPageCache *page_cache, - gint page, - EvOrientation orientation, - gfloat scale, - gint *width, - gint *height); -void ev_page_cache_get_max_width (EvPageCache *page_cache, - gfloat scale, - gint *width); -void ev_page_cache_get_max_height (EvPageCache *page_cache, - gfloat scale, - gint *height); +EvPageCache *ev_page_cache_new (EvDocument *document); +gint ev_page_cache_get_n_pages (EvPageCache *page_cache); +const char *ev_page_cache_get_title (EvPageCache *page_cache); +void ev_page_cache_get_size (EvPageCache *page_cache, + gint page, + EvOrientation orientation, + gfloat scale, + gint *width, + gint *height); +void ev_page_cache_get_max_width (EvPageCache *page_cache, + EvOrientation orientation, + gfloat scale, + gint *width); +void ev_page_cache_get_max_height (EvPageCache *page_cache, + EvOrientation orientation, + gfloat scale, + gint *height); void ev_page_cache_get_height_to_page (EvPageCache *page_cache, - gint page, + gint page, + EvOrientation orientation, gfloat scale, gint *height, gint *dual_height); |