1999-06-20 21:53:15 +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
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
#ifndef __GIMP_SIGNAL_H__
|
|
|
|
#define __GIMP_SIGNAL_H__
|
1998-06-28 18:39:58 +08:00
|
|
|
|
|
|
|
#include <gtk/gtksignal.h>
|
|
|
|
|
|
|
|
/* This is the gtk "signal id" */
|
|
|
|
typedef guint GimpSignalID;
|
|
|
|
|
|
|
|
typedef const struct _GimpSignalType GimpSignalType;
|
1999-06-20 21:53:15 +08:00
|
|
|
|
1998-06-28 18:39:58 +08:00
|
|
|
/* The arguments are encoded in the names.. */
|
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_void;
|
1999-10-17 21:48:19 +08:00
|
|
|
typedef void (*GimpHandlerVoid) (GtkObject*,
|
|
|
|
gpointer);
|
1998-06-28 18:39:58 +08:00
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_pointer;
|
1999-10-17 21:48:19 +08:00
|
|
|
typedef void (*GimpHandlerPointer) (GtkObject*, gpointer,
|
|
|
|
gpointer);
|
1998-06-28 18:39:58 +08:00
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_int;
|
1999-10-17 21:48:19 +08:00
|
|
|
typedef void (*GimpHandlerInt) (GtkObject*, gint,
|
|
|
|
gpointer);
|
1999-06-20 21:53:15 +08:00
|
|
|
|
|
|
|
extern GimpSignalType* const gimp_sigtype_double;
|
1999-10-17 21:48:19 +08:00
|
|
|
typedef void (*GimpHandlerDouble) (GtkObject*, gdouble,
|
|
|
|
gpointer);
|
|
|
|
|
|
|
|
extern GimpSignalType* const gimp_sigtype_int_int_int;
|
|
|
|
typedef void (*GimpHandlerIntIntInt) (GtkObject*, gint, gint, gint,
|
|
|
|
gpointer);
|
1998-06-28 18:39:58 +08:00
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_int_int_int_int;
|
1998-06-28 18:39:58 +08:00
|
|
|
typedef void (*GimpHandlerIntIntIntInt) (GtkObject*, gint, gint, gint, gint,
|
|
|
|
gpointer);
|
|
|
|
|
1999-06-20 21:53:15 +08:00
|
|
|
GimpSignalID gimp_signal_new (const gchar *name,
|
|
|
|
GtkSignalRunType signal_flags,
|
|
|
|
GtkType object_type,
|
|
|
|
guint function_offset,
|
|
|
|
GimpSignalType *sig_type);
|
1998-06-28 18:39:58 +08:00
|
|
|
|
1999-06-20 21:53:15 +08:00
|
|
|
#endif /* __GIMP_SIGNAL_H__ */
|