1 /* SCCS Id: @(#)gnsignal.h 3.4 2000/07/16 */ 2 /* Copyright (C) 1998 by Anthony Taylor <tonyt@ptialaska.net> */ 3 /* NetHack may be freely redistributed. See license for details. */ 4 5 #ifndef GnomeHackSignals_h 6 #define GnomeHackSignals_h 7 8 #include <gtk/gtk.h> 9 #include <gnome.h> 10 #include "gnomeprv.h" 11 #include "gnglyph.h" 12 13 /* The list of custom signals */ 14 15 enum { 16 GHSIG_CURS, 17 GHSIG_PUTSTR, 18 GHSIG_PRINT_GLYPH, 19 GHSIG_CLEAR, 20 GHSIG_DISPLAY, 21 GHSIG_START_MENU, 22 GHSIG_ADD_MENU, 23 GHSIG_END_MENU, 24 GHSIG_SELECT_MENU, 25 GHSIG_CLIPAROUND, 26 GHSIG_FADE_HIGHLIGHT, 27 GHSIG_DELAY, 28 GHSIG_LAST_SIG 29 }; 30 31 guint ghack_signals[GHSIG_LAST_SIG]; 32 33 extern void ghack_init_signals( void); 34 35 36 void ghack_handle_key_press(GtkWidget *widget, GdkEventKey *event, 37 gpointer data); 38 void ghack_handle_button_press(GtkWidget *widget, GdkEventButton *event, 39 gpointer data); 40 41 typedef struct { 42 int x, y, mod; 43 } GHClick; 44 45 extern GList *g_keyBuffer; 46 extern GList *g_clickBuffer; 47 extern int g_numKeys; 48 extern int g_numClicks; 49 50 extern int g_askingQuestion; 51 52 void ghack_delay( GtkWidget *win, int numMillisecs, gpointer data); 53 54 55 #endif /* GnomeHackSignals_h */ 56 57