File: winproto.h

package info (click to toggle)
glhack 1.2-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 26,744 kB
  • ctags: 21,239
  • sloc: ansic: 208,571; cpp: 13,139; yacc: 2,005; makefile: 1,155; lex: 377; sh: 121; awk: 89; sed: 11
file content (151 lines) | stat: -rw-r--r-- 5,300 bytes parent folder | download | duplicates (29)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*	SCCS Id: @(#)winproto.h	3.2	96/01/15	*/
/* Copyright (c) Gregg Wonderly, Naperville, Illinois,  1991,1992,1993. */
/* NetHack may be freely redistributed.  See license for details. */

/* winreq.c */
void EditColor ( void );
void EditClipping( void );
void DrawCol ( struct Window *w , int idx , UWORD *colors );
void DispCol ( struct Window *w , int idx , UWORD *colors );
void amii_change_color( int, long, int );
char *amii_get_color_string( );
void amii_getlin ( const char *prompt , char *bufp );
void getlind ( const char *prompt , char *bufp , const char *dflt );
char *amii_get_color_string( void );
int filecopy( char *from, char *to );
char *basename( char *str );
char *dirname( char *str );

/* winstr.c */
void amii_putstr ( winid window , int attr , const char *str );
void outmore ( struct amii_WinDesc *cw );
void outsubstr ( struct amii_WinDesc *cw , char *str , int len, int fudge );
void amii_putsym ( winid st , int i , int y , CHAR_P c );
void amii_addtopl ( const char *s );
void TextSpaces ( struct RastPort *rp , int nr );
void amii_remember_topl ( void );
long CountLines( winid );
long FindLine( winid, int );
int amii_doprev_message ( void );
void flushIDCMP( struct MsgPort * );
int amii_msgborder( struct Window * );
void amii_scrollmsg( register struct Window *w, register struct amii_WinDesc *cw );

/* winkey.c */
int amii_nh_poskey ( int *x , int *y , int *mod );
int amii_nhgetch ( void );
void amii_get_nh_event ( void );
void amii_getret ( void );

/* winmenu.c */
void amii_start_menu ( winid window );
void FDECL(amii_add_menu, (winid,int,const anything *,CHAR_P,CHAR_P,int,const char *,BOOLEAN_P));
void FDECL(amii_end_menu, (winid, const char *));
int FDECL(amii_select_menu, (winid, int, menu_item **));
int DoMenuScroll ( int win , int blocking, int how, menu_item ** );
void ReDisplayData ( winid win );
void DisplayData ( winid win , int start );
void SetPropInfo ( struct Window *win , struct Gadget *gad , long vis , long total , long top );

/* amiwind.c */
struct Window *OpenShWindow ( struct NewWindow *nw );
void CloseShWindow ( struct Window *win );
int ConvertKey ( struct IntuiMessage *message );
int kbhit ( void );
int kbhit ( void );
int amikbhit ( void );
int WindowGetchar ( void );
WETYPE WindowGetevent ( void );
void amii_cleanup ( void );
#ifndef	SHAREDLIB
void Abort ( long rc );
#endif
void CleanUp ( void );
void flush_glyph_buffer ( struct Window *w );
void amiga_print_glyph ( winid window , int color_index , int glyph );
void start_glyphout ( winid window );
void amii_end_glyphout ( winid window );
struct NewWindow *DupNewWindow ( struct NewWindow *win );
void FreeNewWindow ( struct NewWindow *win );
void bell ( void );
void amii_delay_output ( void );
void amii_number_pad ( int state );
#ifndef	SHAREDLIB
void amiv_loadlib ( void );
void amii_loadlib ( void );
#endif
void preserve_icon( void );
void clear_icon( void );

/* winfuncs.c */
void amii_destroy_nhwindow ( winid win );
int amii_create_nhwindow ( int type );
void amii_init_nhwindows ( int *, char ** );
void amii_setdrawpens( struct Window *, int type );
void amii_sethipens( struct Window *, int type, int attr );
void amii_setfillpens( struct Window *, int type );
void amii_clear_nhwindow ( winid win );
void dismiss_nhwindow ( winid win );
void amii_exit_nhwindows ( const char *str );
void amii_display_nhwindow ( winid win , boolean blocking );
void amii_curs ( winid window , int x , int y );
void kill_nhwindows ( int all );
void amii_cl_end ( struct amii_WinDesc *cw , int i );
void cursor_off ( winid window );
void cursor_on ( winid window );
void amii_suspend_nhwindows ( const char *str );
void amii_resume_nhwindows ( void );
void amii_bell ( void );
void removetopl ( int cnt );
void port_help ( void );
void amii_print_glyph ( winid win , xchar x , xchar y , int glyph );
void amii_raw_print ( const char *s );
void amii_raw_print_bold ( const char *s );
void amii_update_inventory ( void );
void amii_mark_synch ( void );
void amii_wait_synch ( void );
void amii_setclipped ( void );
void amii_cliparound ( int x , int y );
void amii_set_text_font( char *font, int size );
BitMapHeader ReadImageFiles( char **, struct BitMap **, char ** );
BitMapHeader ReadTileImageFiles(void);
void FreeImageFiles( char **, struct BitMap ** );
void FreeTileImageFiles();

/* winami.c */
#ifdef	SHAREDLIB
int __UserLibInit ( void );
void __UserLibCleanup ( void );
#endif
void amii_askname ( void );
void amii_player_selection ( void );
void RandomWindow ( char *name );
int amii_get_ext_cmd ( void );
char amii_yn_function ( const char *prompt , const char *resp , char def );
char amii_yn_function ( const char *query , const char *resp , char def );
void amii_display_file ( const char *fn , boolean complain );
void SetBorder ( struct Gadget *gd );
void *malloc ( register unsigned size );
void free ( void *q );

#ifdef	SHAREDLIB
/* amilib.c */
void amii_loadlib ( void );
void amiv_loadlib ( void );
void CleanUp ( void );
void setup_librefs ( WinamiBASE *base );
#else
void Abort ( long rc );
#endif

/* amirip.c */
void FDECL(amii_outrip, ( winid tmpwin, int how ));

/* winchar.c */
void SetMazeType(MazeType);
int GlyphToIcon(int glyph);
#ifdef OPT_DISPMAP
void dispmap_sanity(void);
int dispmap_sanity1(int);
#endif
void FreeTileImageFiles(void);