Source:NetHack 3.4.3/include/wingem.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/wingem.h from NetHack 3.4.3. To link to a particular line, write [[wingem.h#line123]], for example.

  1. /*	SCCS Id: @(#)wingem.h	3.4	1999/12/10	*/
  2. /* Copyright (c) Christian Bressler, 1999				  */
  3. /* NetHack may be freely redistributed.  See license for details. */

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1. #ifndef WINGEM_H
  2. #define WINGEM_H
  3.  
  4. #define E extern
  5.  
  6. /* menu structure */
  7. typedef struct Gmi{
  8. 	struct Gmi *Gmi_next;
  9. 	int Gmi_glyph;
  10. 	long Gmi_identifier;
  11. 	char Gmi_accelerator, Gmi_groupacc;
  12. 	int Gmi_attr;
  13. 	char *Gmi_str;
  14. 	long Gmi_count;
  15. 	int Gmi_selected;
  16. } Gem_menu_item;
  17.  
  18. #define MAXWIN 20		/* maximum number of windows, cop-out */
  19.  
  20. extern struct window_procs Gem_procs;
  21.  
  22. /* ### wingem1.c ### */
  23. #ifdef CLIPPING
  24. E void NDECL(setclipped);
  25. #endif
  26. E void FDECL(docorner, (int, int));
  27. E void NDECL(end_glyphout);
  28. E void FDECL(g_putch, (int));
  29. E void NDECL(win_Gem_init);
  30. E int NDECL(mar_gem_init);
  31. E char NDECL(mar_ask_class);
  32. E char * NDECL(mar_ask_name);
  33. E int FDECL(mar_create_window, (int));
  34. E void FDECL(mar_destroy_nhwindow, (int));
  35. E void FDECL(mar_print_glyph, (int, int, int, int));
  36. E void FDECL(mar_print_line, (int, int, int, char *));
  37. E void FDECL(mar_set_message, (char *, char *, char *));
  38. E Gem_menu_item *NDECL(mar_hol_inv);
  39. E void FDECL(mar_set_menu_type,(int));
  40. E void NDECL(mar_reverse_menu);
  41. E void FDECL(mar_set_menu_title, (const char *));
  42. E void NDECL(mar_set_accelerators);
  43. E void FDECL(mar_add_menu, (winid, Gem_menu_item *));
  44. E void FDECL(mar_change_menu_2_text, (winid));
  45. E void FDECL(mar_add_message, (const char *));
  46. E void NDECL(mar_status_dirty);
  47. E int FDECL(mar_hol_win_type, (int));
  48. E void NDECL(mar_clear_messagewin);
  49. E void FDECL(mar_set_no_glyph, (int));
  50. E void NDECL(mar_map_curs_weiter);
  51.  
  52. /* external declarations */
  53. E void FDECL(Gem_init_nhwindows, (int *, char **));
  54. E void NDECL(Gem_player_selection);
  55. E void NDECL(Gem_askname);
  56. E void NDECL(Gem_get_nh_event) ;
  57. E void FDECL(Gem_exit_nhwindows, (const char *));
  58. E void FDECL(Gem_suspend_nhwindows, (const char *));
  59. E void NDECL(Gem_resume_nhwindows);
  60. E winid FDECL(Gem_create_nhwindow, (int));
  61. E void FDECL(Gem_clear_nhwindow, (winid));
  62. E void FDECL(Gem_display_nhwindow, (winid, BOOLEAN_P));
  63. E void FDECL(Gem_dismiss_nhwindow, (winid));
  64. E void FDECL(Gem_destroy_nhwindow, (winid));
  65. E void FDECL(Gem_curs, (winid,int,int));
  66. E void FDECL(Gem_putstr, (winid, int, const char *));
  67. E void FDECL(Gem_display_file, (const char *, BOOLEAN_P));
  68. E void FDECL(Gem_start_menu, (winid));
  69. E void FDECL(Gem_add_menu, (winid,int,const ANY_P *,
  70. 			CHAR_P,CHAR_P,int,const char *, BOOLEAN_P));
  71. E void FDECL(Gem_end_menu, (winid, const char *));
  72. E int FDECL(Gem_select_menu, (winid, int, MENU_ITEM_P **));
  73. E char FDECL(Gem_message_menu, (CHAR_P,int,const char *));
  74. E void NDECL(Gem_update_inventory);
  75. E void NDECL(Gem_mark_synch);
  76. E void NDECL(Gem_wait_synch);
  77. #ifdef CLIPPING
  78. E void FDECL(Gem_cliparound, (int, int));
  79. #endif
  80. #ifdef POSITIONBAR
  81. E void FDECL(Gem_update_positionbar, (char *));
  82. #endif
  83. E void FDECL(Gem_print_glyph, (winid,XCHAR_P,XCHAR_P,int));
  84. E void FDECL(Gem_raw_print, (const char *));
  85. E void FDECL(Gem_raw_print_bold, (const char *));
  86. E int NDECL(Gem_nhgetch);
  87. E int FDECL(Gem_nh_poskey, (int *, int *, int *));
  88. E void NDECL(Gem_nhbell);
  89. E int NDECL(Gem_doprev_message);
  90. E char FDECL(Gem_yn_function, (const char *, const char *, CHAR_P));
  91. E void FDECL(Gem_getlin, (const char *,char *));
  92. E int NDECL(Gem_get_ext_cmd);
  93. E void FDECL(Gem_number_pad, (int));
  94. E void NDECL(Gem_delay_output);
  95. #ifdef CHANGE_COLOR
  96. E void FDECL(Gem_change_color,(int color,long rgb,int reverse));
  97. E char * NDECL(Gem_get_color_string);
  98. #endif
  99.  
  100. /* other defs that really should go away (they're tty specific) */
  101. E void NDECL(Gem_start_screen);
  102. E void NDECL(Gem_end_screen);
  103.  
  104. E void FDECL(genl_outrip, (winid,int));
  105.  
  106. #undef E
  107.  
  108. #endif /* WINGEM_H */