X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-image.h;h=412a85382a48579947f8840f46b3839502755918;hb=f9c2880d31bb2f5d4411849b9207c5d26a5c616a;hp=6688e7a3427ed76bdb7113fc959dfe34d114519c;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/libdocument/ev-image.h b/libdocument/ev-image.h index 6688e7a3..412a8538 100644 --- a/libdocument/ev-image.h +++ b/libdocument/ev-image.h @@ -17,11 +17,15 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ +#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef __EV_IMAGE_H__ #define __EV_IMAGE_H__ #include -#include +#include G_BEGIN_DECLS @@ -46,28 +50,18 @@ struct _EvImageClass { GObjectClass base_class; }; -GType ev_image_get_type (void) G_GNUC_CONST; -EvImage *ev_image_new_from_pixbuf (GdkPixbuf *pixbuf); - -GdkPixbuf *ev_image_get_pixbuf (EvImage *image); -const gchar *ev_image_save_tmp (EvImage *image); -const gchar *ev_image_get_tmp_uri (EvImage *image); +GType ev_image_get_type (void) G_GNUC_CONST; +EvImage *ev_image_new (gint page, + gint img_id); +EvImage *ev_image_new_from_pixbuf (GdkPixbuf *pixbuf); +gint ev_image_get_id (EvImage *image); +gint ev_image_get_page (EvImage *image); +GdkPixbuf *ev_image_get_pixbuf (EvImage *image); +const gchar *ev_image_save_tmp (EvImage *image, + GdkPixbuf *pixbuf); +const gchar *ev_image_get_tmp_uri (EvImage *image); -/* Image Mapping stuff */ -typedef struct _EvImageMapping EvImageMapping; -struct _EvImageMapping { - EvImage *image; - gdouble x1; - gdouble y1; - gdouble x2; - gdouble y2; -}; - -void ev_image_mapping_free (GList *image_mapping); -EvImage *ev_image_mapping_find (GList *image_mapping, - gdouble x, - gdouble y); G_END_DECLS