]> granicus.if.org Git - nethack/commitdiff
*** empty log message ***
authorjwalz <jwalz>
Sat, 5 Jan 2002 21:06:01 +0000 (21:06 +0000)
committerjwalz <jwalz>
Sat, 5 Jan 2002 21:06:01 +0000 (21:06 +0000)
win/gnome/gnsignal.h [new file with mode: 0644]

diff --git a/win/gnome/gnsignal.h b/win/gnome/gnsignal.h
new file mode 100644 (file)
index 0000000..ad43e98
--- /dev/null
@@ -0,0 +1,56 @@
+/*     SCCS Id: @(#)gnsignal.h 3.3     2000/07/16      */
+/* Copyright (C) 1998 by Anthony Taylor <tonyt@ptialaska.net> */
+/* NetHack may be freely redistributed.  See license for details. */
+
+#ifndef GnomeHackSignals_h
+#define GnomeHackSignals_h
+
+#include <gtk/gtk.h>
+#include <gnome.h>
+#include "gnomeprv.h"
+#include "gnglyph.h"
+
+/* The list of custom signals */
+
+enum {
+  GHSIG_CURS,
+  GHSIG_PUTSTR,
+  GHSIG_PRINT_GLYPH,
+  GHSIG_CLEAR,
+  GHSIG_DISPLAY,
+  GHSIG_START_MENU,
+  GHSIG_ADD_MENU,
+  GHSIG_END_MENU,
+  GHSIG_SELECT_MENU,
+  GHSIG_CLIPAROUND,
+  GHSIG_FADE_HIGHLIGHT,
+  GHSIG_DELAY,
+  GHSIG_LAST_SIG
+};
+
+guint ghack_signals[GHSIG_LAST_SIG];
+
+extern void ghack_init_signals( void);
+
+
+void ghack_handle_key_press(GtkWidget *widget, GdkEventKey *event, 
+       gpointer data);
+void ghack_handle_button_press(GtkWidget *widget, GdkEventButton *event, 
+       gpointer data);
+
+typedef struct {
+        int x, y, mod;
+} GHClick;
+
+extern GList *g_keyBuffer;
+extern GList *g_clickBuffer;
+extern int g_numKeys;
+extern int g_numClicks;
+
+extern int g_askingQuestion;
+
+void ghack_delay( GtkWidget *win, int numMillisecs, gpointer data);
+
+
+#endif    /* GnomeHackSignals_h */
+