home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / gimpsignal.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-29  |  2.4 KB  |  77 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.  
  19. #ifndef __GIMP_SIGNAL_H__
  20. #define __GIMP_SIGNAL_H__
  21.  
  22.  
  23. #include <gtk/gtksignal.h>
  24.  
  25.  
  26. /* This is the gtk "signal id" */
  27. typedef guint GimpSignalID;
  28.  
  29. typedef const struct _GimpSignalType GimpSignalType;
  30.  
  31.  
  32. /* The arguments are encoded in the names.. */
  33.  
  34. extern GimpSignalType * const gimp_sigtype_void;
  35. typedef void (* GimpHandlerVoid) (GtkObject *object,
  36.                   gpointer   data);
  37.  
  38. extern GimpSignalType * const gimp_sigtype_pointer;
  39. typedef void (* GimpHandlerPointer) (GtkObject *object,
  40.                      gpointer   p,
  41.                      gpointer   data);
  42.  
  43. extern GimpSignalType * const gimp_sigtype_int;
  44. typedef void (* GimpHandlerInt) (GtkObject *object,
  45.                  gint       i,
  46.                  gpointer   data);
  47.  
  48. extern GimpSignalType * const gimp_sigtype_double;
  49. typedef void (* GimpHandlerDouble) (GtkObject *object,
  50.                     gdouble    d,
  51.                     gpointer   data);
  52.  
  53. extern GimpSignalType * const gimp_sigtype_int_int_int;
  54. typedef void (* GimpHandlerIntIntInt) (GtkObject *object,
  55.                        gint       i1,
  56.                        gint       i2,
  57.                        gint       i3,
  58.                        gpointer   data);
  59.  
  60. extern GimpSignalType * const gimp_sigtype_int_int_int_int;
  61. typedef void (* GimpHandlerIntIntIntInt) (GtkObject *object,
  62.                       gint       i1,
  63.                       gint       i2,
  64.                       gint       i3,
  65.                       gint       i4,
  66.                       gpointer   data);
  67.  
  68.  
  69. GimpSignalID gimp_signal_new (const gchar      *name,
  70.                   GtkSignalRunType  signal_flags,
  71.                   GtkType           object_type,
  72.                   guint             function_offset,
  73.                   GimpSignalType   *sig_type);
  74.  
  75.  
  76. #endif /* __GIMP_SIGNAL_H__ */
  77.