1998-06-28 18:39:58 +08:00
|
|
|
#ifndef __GIMPSIGNAL_H__
|
|
|
|
#define __GIMPSIGNAL_H__
|
|
|
|
|
|
|
|
#include <gtk/gtksignal.h>
|
|
|
|
|
|
|
|
/* This is the gtk "signal id" */
|
|
|
|
typedef guint GimpSignalID;
|
|
|
|
|
|
|
|
|
|
|
|
typedef const struct _GimpSignalType GimpSignalType;
|
|
|
|
/* The arguments are encoded in the names.. */
|
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_void;
|
1998-06-28 18:39:58 +08:00
|
|
|
typedef void (*GimpHandlerVoid)(GtkObject*, gpointer);
|
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_pointer;
|
1998-06-28 18:39:58 +08:00
|
|
|
typedef void (*GimpHandlerPointer)(GtkObject*, gpointer, gpointer);
|
|
|
|
|
1998-11-08 07:02:14 +08:00
|
|
|
extern GimpSignalType* const gimp_sigtype_int;
|
1998-06-28 18:39:58 +08:00
|
|
|
typedef void (*GimpHandlerInt)(GtkObject*, gint, gpointer);
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
GimpSignalID gimp_signal_new(const gchar* name,
|
|
|
|
GtkSignalRunType signal_flags,
|
|
|
|
GtkType object_type,
|
|
|
|
guint function_offset,
|
|
|
|
GimpSignalType* sig_type);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|