OSDN Git Service

no bone
[nethackexpress/trunk.git] / sys / amiga / winproto.h
1 /*      SCCS Id: @(#)winproto.h 3.2     96/01/15        */
2 /* Copyright (c) Gregg Wonderly, Naperville, Illinois,  1991,1992,1993. */
3 /* NetHack may be freely redistributed.  See license for details. */
4
5 /* winreq.c */
6 void EditColor ( void );
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 );
18
19 /* winstr.c */
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, register struct amii_WinDesc *cw );
33
34 /* winkey.c */
35 int amii_nh_poskey ( int *x , int *y , int *mod );
36 int amii_nhgetch ( void );
37 void amii_get_nh_event ( void );
38 void amii_getret ( void );
39
40 /* winmenu.c */
41 void amii_start_menu ( winid window );
42 void FDECL(amii_add_menu, (winid,int,const anything *,CHAR_P,CHAR_P,int,const char *,BOOLEAN_P));
43 void FDECL(amii_end_menu, (winid, const char *));
44 int FDECL(amii_select_menu, (winid, int, menu_item **));
45 int DoMenuScroll ( int win , int blocking, int how, menu_item ** );
46 void ReDisplayData ( winid win );
47 void DisplayData ( winid win , int start );
48 void SetPropInfo ( struct Window *win , struct Gadget *gad , long vis , long total , long top );
49
50 /* amiwind.c */
51 struct Window *OpenShWindow ( struct NewWindow *nw );
52 void CloseShWindow ( struct Window *win );
53 int ConvertKey ( struct IntuiMessage *message );
54 int kbhit ( void );
55 int kbhit ( void );
56 int amikbhit ( void );
57 int WindowGetchar ( void );
58 WETYPE WindowGetevent ( void );
59 void amii_cleanup ( void );
60 #ifndef SHAREDLIB
61 void Abort ( long rc );
62 #endif
63 void CleanUp ( void );
64 void flush_glyph_buffer ( struct Window *w );
65 void amiga_print_glyph ( winid window , int color_index , int glyph );
66 void start_glyphout ( winid window );
67 void amii_end_glyphout ( winid window );
68 struct NewWindow *DupNewWindow ( struct NewWindow *win );
69 void FreeNewWindow ( struct NewWindow *win );
70 void bell ( void );
71 void amii_delay_output ( void );
72 void amii_number_pad ( int state );
73 #ifndef SHAREDLIB
74 void amiv_loadlib ( void );
75 void amii_loadlib ( void );
76 #endif
77 void preserve_icon( void );
78 void clear_icon( void );
79
80 /* winfuncs.c */
81 void amii_destroy_nhwindow ( winid win );
82 int amii_create_nhwindow ( int type );
83 void amii_init_nhwindows ( int *, char ** );
84 void amii_setdrawpens( struct Window *, int type );
85 void amii_sethipens( struct Window *, int type, int attr );
86 void amii_setfillpens( struct Window *, int type );
87 void amii_clear_nhwindow ( winid win );
88 void dismiss_nhwindow ( winid win );
89 void amii_exit_nhwindows ( const char *str );
90 void amii_display_nhwindow ( winid win , boolean blocking );
91 void amii_curs ( winid window , int x , int y );
92 void kill_nhwindows ( int all );
93 void amii_cl_end ( struct amii_WinDesc *cw , int i );
94 void cursor_off ( winid window );
95 void cursor_on ( winid window );
96 void amii_suspend_nhwindows ( const char *str );
97 void amii_resume_nhwindows ( void );
98 void amii_bell ( void );
99 void removetopl ( int cnt );
100 void port_help ( void );
101 void amii_print_glyph ( winid win , xchar x , xchar y , int glyph );
102 void amii_raw_print ( const char *s );
103 void amii_raw_print_bold ( const char *s );
104 void amii_update_inventory ( void );
105 void amii_mark_synch ( void );
106 void amii_wait_synch ( void );
107 void amii_setclipped ( void );
108 void amii_cliparound ( int x , int y );
109 void amii_set_text_font( char *font, int size );
110 BitMapHeader ReadImageFiles( char **, struct BitMap **, char ** );
111 BitMapHeader ReadTileImageFiles(void);
112 void FreeImageFiles( char **, struct BitMap ** );
113 void FreeTileImageFiles();
114
115 /* winami.c */
116 #ifdef  SHAREDLIB
117 int __UserLibInit ( void );
118 void __UserLibCleanup ( void );
119 #endif
120 void amii_askname ( void );
121 void amii_player_selection ( void );
122 void RandomWindow ( char *name );
123 int amii_get_ext_cmd ( void );
124 char amii_yn_function ( const char *prompt , const char *resp , char def );
125 char amii_yn_function ( const char *query , const char *resp , char def );
126 void amii_display_file ( const char *fn , boolean complain );
127 void SetBorder ( struct Gadget *gd );
128 void *malloc ( register unsigned size );
129 void free ( void *q );
130
131 #ifdef  SHAREDLIB
132 /* amilib.c */
133 void amii_loadlib ( void );
134 void amiv_loadlib ( void );
135 void CleanUp ( void );
136 void setup_librefs ( WinamiBASE *base );
137 #else
138 void Abort ( long rc );
139 #endif
140
141 /* amirip.c */
142 void FDECL(amii_outrip, ( winid tmpwin, int how ));
143
144 /* winchar.c */
145 void SetMazeType(MazeType);
146 int GlyphToIcon(int glyph);
147 #ifdef OPT_DISPMAP
148 void dispmap_sanity(void);
149 int dispmap_sanity1(int);
150 #endif
151 void FreeTileImageFiles(void);