Mercurial > geeqie
diff src/image.h @ 12:147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
##### an offical release when making enhancements and translation updates. #####
Tue Mar 1 11:32:26 2005 John Ellis <johne@verizon.net>
* src/Makefile.am: Add pan-view.[ch]:
* image.[ch]: Add support for using a grid of tiles as soource image. Added
scroll_notify callback for when the viewable regionis scrolled. Added ability
to set min and max for the zoom range. Removed unnecessary
gtk_widget_size_request from image_size_sync. Added image_scroll_to_point.
* layout_util.c: Add menu item and callback for the new 'Pan view'.
* pixbuf_util.c (pixbuf_draw_layout): Fix for when offset is non-zero.
* typedefs.h: Add source tile stuff for ImageWindow.
* ui_tabcomp.c: Fix tab completion pop-up menu placement.
* pan-view.[ch]: New files for the pan view - 2.1 is officially started :)
author | gqview |
---|---|
date | Tue, 01 Mar 2005 17:16:34 +0000 |
parents | d907d608745f |
children | ef790149ae21 |
line wrap: on
line diff
--- a/src/image.h Tue Mar 01 14:50:03 2005 +0000 +++ b/src/image.h Tue Mar 01 17:16:34 2005 +0000 @@ -28,6 +28,9 @@ void image_set_scroll_func(ImageWindow *imd, void (*func)(ImageWindow *, GdkScrollDirection direction, guint32 time, gdouble x, gdouble y, guint state, gpointer), gpointer data); +void image_set_scroll_notify_func(ImageWindow *imd, + void (*func)(ImageWindow *imd, gint x, gint y, gint width, gint height, gpointer data), + gpointer data); void image_set_complete_func(ImageWindow *imd, void (*func)(ImageWindow *, gint preload, gpointer), gpointer data); @@ -53,11 +56,13 @@ void image_area_changed(ImageWindow *imd, gint x, gint y, gint width, gint height); void image_reload(ImageWindow *imd); void image_scroll(ImageWindow *imd, gint x, gint y); +void image_scroll_to_point(ImageWindow *imd, gint x, gint y); void image_alter(ImageWindow *imd, AlterType type); /* zoom */ void image_zoom_adjust(ImageWindow *imd, gdouble increment); void image_zoom_adjust_at_point(ImageWindow *imd, gdouble increment, gint x, gint y); +void image_zoom_set_limits(ImageWindow *imd, gdouble min, gdouble max); void image_zoom_set(ImageWindow *imd, gdouble zoom); void image_zoom_set_fill_geometry(ImageWindow *imd, gint vertical); gdouble image_zoom_get(ImageWindow *imd); @@ -92,6 +97,15 @@ void image_overlay_remove(ImageWindow *imd, gint id); + +void image_set_image_as_tiles(ImageWindow *imd, gint width, gint height, + gint tile_width, gint tile_height, gint cache_size, + ImageTileRequestFunc func_tile_request, + ImageTileDisposeFunc func_tile_dispose, + gpointer data, + gdouble zoom); + + #endif