NHDT->ANH, nethack->anethack, nhdat->anhdat
[aNetHack.git] / win / gnome / gnsignal.h
blobb59279fa000f594d327312f825068908acf6bda0
1 /* aNetHack 0.0.1 gnsignal.h $ANH-Date: 1432512807 2015/05/25 00:13:27 $ $ANH-Branch: master $:$ANH-Revision: 1.8 $ */
2 /* Copyright (C) 1998 by Anthony Taylor <tonyt@ptialaska.net> */
3 /* aNetHack may be freely redistributed. See license for details. */
5 #ifndef GnomeHackSignals_h
6 #define GnomeHackSignals_h
8 #include <gtk/gtk.h>
9 #include <gnome.h>
10 #include "gnomeprv.h"
11 #include "gnglyph.h"
13 /* The list of custom signals */
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
31 guint ghack_signals[GHSIG_LAST_SIG];
33 extern void ghack_init_signals(void);
35 void ghack_handle_key_press(GtkWidget *widget, GdkEventKey *event,
36 gpointer data);
37 void ghack_handle_button_press(GtkWidget *widget, GdkEventButton *event,
38 gpointer data);
40 typedef struct {
41 int x, y, mod;
42 } GHClick;
44 extern GList *g_keyBuffer;
45 extern GList *g_clickBuffer;
46 extern int g_numKeys;
47 extern int g_numClicks;
49 extern int g_askingQuestion;
51 void ghack_delay(GtkWidget *win, int numMillisecs, gpointer data);
53 #endif /* GnomeHackSignals_h */