1 /* SCCS Id: @(#)gnbind.h 3.4 2000/07/16 */
2 /* Copyright (C) 1998 by Erik Andersen <andersee@debian.org> */
3 /* NetHack may be freely redistributed. See license for details. */
5 #ifndef GnomeHackBind_h
6 #define GnomeHackBind_h
9 * This header files defines the interface between the window port specific
10 * code in the Gnome port and the rest of the nethack game engine.
14 #include <gdk/gdkkeysyms.h>
30 /* Create an array to keep track of the various windows */
36 typedef struct gnome_nhwindow_data {
43 void gnome_init_nhwindows(int* argc, char** argv);
44 void gnome_player_selection(void);
45 void gnome_askname(void);
46 void gnome_get_nh_event(void);
47 void gnome_exit_nhwindows(const char *);
48 void gnome_suspend_nhwindows(const char *);
49 void gnome_resume_nhwindows(void);
50 winid gnome_create_nhwindow(int type);
51 void gnome_create_nhwindow_by_id(int type, winid i);
52 void gnome_clear_nhwindow(winid wid);
53 void gnome_display_nhwindow(winid wid, BOOLEAN_P block);
54 void gnome_destroy_nhwindow(winid wid);
55 void gnome_curs(winid wid, int x, int y);
56 void gnome_putstr(winid wid, int attr, const char *text);
57 void gnome_display_file(const char *filename,BOOLEAN_P must_exist);
58 void gnome_start_menu(winid wid);
59 void gnome_add_menu(winid wid, int glyph, const ANY_P * identifier,
60 CHAR_P accelerator, CHAR_P group_accel, int attr,
61 const char *str, BOOLEAN_P presel);
62 void gnome_end_menu(winid wid, const char *prompt);
63 int gnome_select_menu(winid wid, int how, MENU_ITEM_P **selected);
64 /* No need for message_menu -- we'll use genl_message_menu instead */
65 void gnome_update_inventory(void);
66 void gnome_mark_synch(void);
67 void gnome_wait_synch(void);
68 void gnome_cliparound(int x, int y);
69 /* The following function does the right thing. The nethack
70 * gnome_cliparound (which lacks the winid) simply calls this funtion.
72 void gnome_cliparound_proper(winid wid, int x, int y);
73 void gnome_print_glyph(winid wid,XCHAR_P x,XCHAR_P y,int glyph);
74 void gnome_raw_print(const char *str);
75 void gnome_raw_print_bold(const char *str);
76 int gnome_nhgetch(void);
77 int gnome_nh_poskey(int *x, int *y, int *mod);
78 void gnome_nhbell(void);
79 int gnome_doprev_message(void);
80 char gnome_yn_function(const char *question, const char *choices,
82 void gnome_getlin(const char *question, char *input);
83 int gnome_get_ext_cmd(void);
84 void gnome_number_pad(int state);
85 void gnome_delay_output(void);
86 void gnome_start_screen(void);
87 void gnome_end_screen(void);
88 void gnome_outrip(winid wid, int how);
89 void gnome_delete_nhwindow_by_reference( GtkWidget *menuWin);
92 #endif /* GnomeHackBind_h */