1 /* aNetHack 0.0.1 winproto.h $ANH-Date: 1433806597 2015/06/08 23:36:37 $ $ANH-Branch: master $:$ANH-Revision: 1.9 $ */
2 /* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
3 /* aNetHack may be freely redistributed. See license for details. */
7 void EditClipping(void);
8 void DrawCol(struct Window
*w
, int idx
, UWORD
*colors
);
9 void DispCol(struct Window
*w
, int idx
, UWORD
*colors
);
10 void amii_change_color(int, long, int);
11 char *amii_get_color_string();
12 void amii_getlin(const char *prompt
, char *bufp
);
13 void getlind(const char *prompt
, char *bufp
, const char *dflt
);
14 char *amii_get_color_string(void);
15 int filecopy(char *from
, char *to
);
16 char *basename(char *str
);
17 char *dirname(char *str
);
20 void amii_putstr(winid window
, int attr
, const char *str
);
21 void outmore(struct amii_WinDesc
*cw
);
22 void outsubstr(struct amii_WinDesc
*cw
, char *str
, int len
, int fudge
);
23 void amii_putsym(winid st
, int i
, int y
, CHAR_P c
);
24 void amii_addtopl(const char *s
);
25 void TextSpaces(struct RastPort
*rp
, int nr
);
26 void amii_remember_topl(void);
27 long CountLines(winid
);
28 long FindLine(winid
, int);
29 int amii_doprev_message(void);
30 void flushIDCMP(struct MsgPort
*);
31 int amii_msgborder(struct Window
*);
32 void amii_scrollmsg(register struct Window
*w
,
33 register struct amii_WinDesc
*cw
);
36 int amii_nh_poskey(int *x
, int *y
, int *mod
);
37 int amii_nhgetch(void);
38 void amii_get_nh_event(void);
39 void amii_getret(void);
42 void amii_start_menu(winid window
);
43 void FDECL(amii_add_menu
, (winid
, int, const anything
*, CHAR_P
, CHAR_P
, int,
44 const char *, BOOLEAN_P
));
45 void FDECL(amii_end_menu
, (winid
, const char *));
46 int FDECL(amii_select_menu
, (winid
, int, menu_item
**));
47 int DoMenuScroll(int win
, int blocking
, int how
, menu_item
**);
48 void ReDisplayData(winid win
);
49 void DisplayData(winid win
, int start
);
50 void SetPropInfo(struct Window
*win
, struct Gadget
*gad
, long vis
, long total
,
54 struct Window
*OpenShWindow(struct NewWindow
*nw
);
55 void CloseShWindow(struct Window
*win
);
56 int ConvertKey(struct IntuiMessage
*message
);
60 int WindowGetchar(void);
61 WETYPE
WindowGetevent(void);
62 void amii_cleanup(void);
67 void flush_glyph_buffer(struct Window
*w
);
68 void amiga_print_glyph(winid window
, int color_index
, int glyph
, int bkglyph
);
69 void start_glyphout(winid window
);
70 void amii_end_glyphout(winid window
);
71 struct NewWindow
*DupNewWindow(struct NewWindow
*win
);
72 void FreeNewWindow(struct NewWindow
*win
);
74 void amii_delay_output(void);
75 void amii_number_pad(int state
);
77 void amiv_loadlib(void);
78 void amii_loadlib(void);
80 void preserve_icon(void);
81 void clear_icon(void);
84 void amii_destroy_nhwindow(winid win
);
85 int amii_create_nhwindow(int type
);
86 void amii_init_nhwindows(int *, char **);
87 void amii_setdrawpens(struct Window
*, int type
);
88 void amii_sethipens(struct Window
*, int type
, int attr
);
89 void amii_setfillpens(struct Window
*, int type
);
90 void amii_clear_nhwindow(winid win
);
91 void dismiss_nhwindow(winid win
);
92 void amii_exit_nhwindows(const char *str
);
93 void amii_display_nhwindow(winid win
, boolean blocking
);
94 void amii_curs(winid window
, int x
, int y
);
95 void kill_nhwindows(int all
);
96 void amii_cl_end(struct amii_WinDesc
*cw
, int i
);
97 void cursor_off(winid window
);
98 void cursor_on(winid window
);
99 void amii_suspend_nhwindows(const char *str
);
100 void amii_resume_nhwindows(void);
101 void amii_bell(void);
102 void removetopl(int cnt
);
103 void port_help(void);
104 void amii_print_glyph(winid win
, xchar x
, xchar y
, int glyph
, int bkglyph
);
105 void amii_raw_print(const char *s
);
106 void amii_raw_print_bold(const char *s
);
107 void amii_update_inventory(void);
108 void amii_mark_synch(void);
109 void amii_wait_synch(void);
110 void amii_setclipped(void);
111 void amii_cliparound(int x
, int y
);
112 void amii_set_text_font(char *font
, int size
);
113 BitMapHeader
ReadImageFiles(char **, struct BitMap
**, char **);
114 BitMapHeader
ReadTileImageFiles(void);
115 void FreeImageFiles(char **, struct BitMap
**);
116 void FreeTileImageFiles();
120 int __UserLibInit(void);
121 void __UserLibCleanup(void);
123 void amii_askname(void);
124 void amii_player_selection(void);
125 void RandomWindow(char *name
);
126 int amii_get_ext_cmd(void);
127 char amii_yn_function(const char *prompt
, const char *resp
, char def
);
128 char amii_yn_function(const char *query
, const char *resp
, char def
);
129 void amii_display_file(const char *fn
, boolean complain
);
130 void SetBorder(struct Gadget
*gd
);
131 void *malloc(register unsigned size
);
136 void amii_loadlib(void);
137 void amiv_loadlib(void);
139 void setup_librefs(WinamiBASE
*base
);
145 void FDECL(amii_outrip
, (winid tmpwin
, int how
, time_t when
));
148 void SetMazeType(MazeType
);
149 int GlyphToIcon(int glyph
);
151 void dispmap_sanity(void);
152 int dispmap_sanity1(int);
154 void FreeTileImageFiles(void);