mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-24 15:18:12 +00:00
2557c517b1
Thu Aug 12 21:38:53 BST 1999 Andy Thomas <alt@gimp.org> * app/commands.c * app/commands.h * app/disp_callbacks.c * app/gdisplay.c * app/gdisplay.h * app/info_dialog.c * app/info_dialog.h * app/info_window.c * app/info_window.h * app/menus.c * app/scale.c * app/scroll.c * app/scroll.h * app/nav_window.c (new) * app/nav_window.h (new) * pixmap/dropper.xpm (new) New "navigator" image (accessed via <Image>/Window Nav..). This gives an outline of the location of the current view on an image. Eg if your image window is only showing part of an image then the Window Navigation window will outline the area viewed. You can "drag" the outlined square around the viewport and the main image will scroll. Additional a single click outside the square will center the image at that location. Also started to add additional information to a new page inside the Window information dialog (currently only pixel value is shown). Both these features are currently work in progress and unfinished. In particular the Navigator does not keep in step with changes to the basic image (however it does keep in step with image size changes and if you modify the size of the image viewing window). It also does not display the transparent areas of images very nicely.
43 lines
1.6 KiB
C
43 lines
1.6 KiB
C
/* 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
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef __SCROLL_H__
|
|
#define __SCROLL_H__
|
|
|
|
#include "gdisplay.h"
|
|
|
|
/* app init and exit routines */
|
|
void init_scrolling (void);
|
|
void free_scrolling (void);
|
|
|
|
/* routines for scrolling the image via the scrollbars */
|
|
void scrollbar_disconnect (GtkAdjustment *, gpointer);
|
|
gint scrollbar_vert_update (GtkAdjustment *, gpointer);
|
|
gint scrollbar_horz_update (GtkAdjustment *, gpointer);
|
|
|
|
/* routines for grabbing the image and scrolling via the pointer */
|
|
void start_grab_and_scroll (GDisplay *, GdkEventButton *);
|
|
void end_grab_and_scroll (GDisplay *, GdkEventButton *);
|
|
void grab_and_scroll (GDisplay *, GdkEventMotion *);
|
|
void scroll_to_pointer_position (GDisplay *, GdkEventMotion *);
|
|
|
|
/* generic scroll-by-offset function */
|
|
gint scroll_display (GDisplay *, gint, gint);
|
|
|
|
|
|
#endif /* __SCROLL_H__ */
|