X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-document-misc.h;h=8e929836e3343e5f6c9746f6365daf4122c5de6f;hb=f9c2880d31bb2f5d4411849b9207c5d26a5c616a;hp=08607745ef06fe7b67eb7a9c84edb7119a8f1d43;hpb=217797d63b2d3b1c9a7a0511af1bbf3d99f0d482;p=evince.git diff --git a/libdocument/ev-document-misc.h b/libdocument/ev-document-misc.h index 08607745..8e929836 100644 --- a/libdocument/ev-document-misc.h +++ b/libdocument/ev-document-misc.h @@ -19,17 +19,20 @@ * $Id$ */ +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef EV_DOCUMENT_MISC_H #define EV_DOCUMENT_MISC_H +#include #include -#include -#include +#include G_BEGIN_DECLS - GdkPixbuf *ev_document_misc_get_thumbnail_frame (int width, int height, GdkPixbuf *source_pixbuf); @@ -41,11 +44,15 @@ void ev_document_misc_paint_one_page (GdkDrawable *drawable, GdkRectangle *area, GtkBorder *border, gboolean highlight); + cairo_surface_t *ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf); +GdkPixbuf *ev_document_misc_pixbuf_from_surface (cairo_surface_t *surface); cairo_surface_t *ev_document_misc_surface_rotate_and_scale (cairo_surface_t *surface, gint dest_width, gint dest_height, gint dest_rotation); +void ev_document_misc_invert_surface (cairo_surface_t *surface); +void ev_document_misc_invert_pixbuf (GdkPixbuf *pixbuf); G_END_DECLS