home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / disp_callbacks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-30  |  2.1 KB  |  54 lines

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18. #ifndef __DISP_CALLBACKS_H__
  19. #define __DISP_CALLBACKS_H__
  20.  
  21. #include "gdisplay.h"
  22. #include "patterns.h"
  23.  
  24. #define CANVAS_EVENT_MASK  GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK | \
  25.                            GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | \
  26.                GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK | \
  27.                GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | \
  28.                GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | \
  29.                GDK_PROXIMITY_OUT_MASK
  30.  
  31. gint gdisplay_shell_events  (GtkWidget *, GdkEvent *, GDisplay *);
  32. gint gdisplay_canvas_events (GtkWidget *, GdkEvent *);
  33.  
  34. gint gdisplay_hruler_button_press (GtkWidget *, GdkEventButton *, gpointer);
  35. gint gdisplay_vruler_button_press (GtkWidget *, GdkEventButton *, gpointer);
  36. gint gdisplay_origin_button_press (GtkWidget *, GdkEventButton *, gpointer);
  37.  
  38. gboolean gdisplay_drag_drop    (GtkWidget      *widget,
  39.                 GdkDragContext *context,
  40.                 gint            x,
  41.                 gint            y,
  42.                 guint           time,
  43.                 gpointer        data);
  44. void     gdisplay_drop_color   (GtkWidget      *widget,
  45.                 guchar          r,
  46.                 guchar          g,
  47.                 guchar          b,
  48.                 gpointer        data);
  49. void     gdisplay_drop_pattern (GtkWidget      *widget,
  50.                 GPattern       *pattern,
  51.                 gpointer        data);
  52.  
  53. #endif /* __DISP_CALLBACKS_H__ */
  54.