1997-11-25 06:05:25 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
1998-04-13 13:44:11 +08:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
2001-10-13 20:52:30 +08:00
|
|
|
#ifndef __GIMP_DISPLAY_SCROLL_H__
|
|
|
|
#define __GIMP_DISPLAY_SCROLL_H__
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* routines for grabbing the image and scrolling via the pointer */
|
2001-09-26 01:44:03 +08:00
|
|
|
void start_grab_and_scroll (GimpDisplay *gdisp,
|
2001-01-23 04:46:50 +08:00
|
|
|
GdkEventButton *bevent);
|
2001-09-26 01:44:03 +08:00
|
|
|
void end_grab_and_scroll (GimpDisplay *gdisp,
|
2001-01-23 04:46:50 +08:00
|
|
|
GdkEventButton *bevent);
|
2001-09-26 01:44:03 +08:00
|
|
|
void grab_and_scroll (GimpDisplay *gdisp,
|
2001-01-23 04:46:50 +08:00
|
|
|
GdkEventMotion *mevent);
|
2001-09-26 01:44:03 +08:00
|
|
|
void scroll_to_pointer_position (GimpDisplay *gdisp,
|
2001-01-23 04:46:50 +08:00
|
|
|
GdkEventMotion *mevent);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
1999-08-13 06:21:04 +08:00
|
|
|
/* generic scroll-by-offset function */
|
2001-10-13 20:52:30 +08:00
|
|
|
gboolean gimp_display_scroll (GimpDisplay *gdisp,
|
|
|
|
gint x_offset,
|
|
|
|
gint y_offset);
|
1999-08-13 06:21:04 +08:00
|
|
|
|
2001-10-13 20:52:30 +08:00
|
|
|
void gimp_display_scroll_clamp_offsets (GimpDisplay *gdisp);
|
1999-08-13 06:21:04 +08:00
|
|
|
|
2001-10-13 20:52:30 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_DISPLAY_SCROLL_H__ */
|