]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-document-misc.h
[libdocument] Protect some public methods with g_return macros
[evince.git] / libdocument / ev-document-misc.h
index 5d846717199a49550d1186c5f47c788342bb0f49..5a2ea035d8d209cb8d19bea5872b8bd3256fd71e 100644 (file)
  *  $Id$
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef EV_DOCUMENT_MISC_H
 #define EV_DOCUMENT_MISC_H
 
+#include <cairo.h>
 
 #include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gtk/gtkstyle.h>
+#include <gtk/gtk.h>
 
 G_BEGIN_DECLS
 
-
 GdkPixbuf *ev_document_misc_get_thumbnail_frame  (int           width,
                                                  int           height,
                                                  GdkPixbuf    *source_pixbuf);
@@ -41,6 +45,13 @@ void       ev_document_misc_paint_one_page       (GdkDrawable  *drawable,
                                                  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);
+
 G_END_DECLS
 
 #endif /* EV_DOCUMENT_MISC_H */