1 /*
2  * message.h  ʸ����ɽ���ط�
3  *
4  * Copyright (C) 1997-1998 Masaki Chikama (Wren) <chikama@kasumi.ipl.mech.nagoya-u.ac.jp>
5  *               1998-                           <masaki-c@is.aist-nara.ac.jp>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21 */
22 /* $Id: message.h,v 1.22 2002/05/07 21:43:53 chikama Exp $ */
23 
24 #ifndef __MESSAGE__
25 #define __MESSAGE__
26 
27 #include "portab.h"
28 #include "windowframe.h"
29 #include "graphics.h"
30 
31 extern void msg_init();
32 extern void msg_setFontSize(int size);
33 extern void msg_setStringDecorationColor(int col);
34 extern void msg_setStringDecorationType(int type);
35 extern void msg_putMessage(char *msg);
36 extern void msg_nextLine();
37 extern void msg_nextPage(boolean clear);
38 extern void msg_hitAnyKey();
39 extern void msg_openWindow(int W, int C1, int C2, int N, int M);
40 extern void msg_setMessageLocation(int x, int y);
41 extern void msg_getMessageLocation(MyPoint *loc);
42 extern void msg_mg6_command(int cmd);
43 
44 struct __message {
45 	/* ��å������ե���Ȥ��礭�� */
46 	int MsgFontSize;
47 	int MsgFontBoldSize;
48 	int MsgFont;
49 
50 	/* �Ƽ￧ */
51 	int MsgFontColor;
52 	int WinFrameColor;
53 	int WinBackgroundColor;
54 	int HitAnyKeyMsgColor;
55 	int WinBackgroundTransparentColor;
56 
57 	boolean AutoPageChange;
58 	int     LineIncrement;
59 	int     WinBackgroundTransparent;
60 
61 	/* MG command��Ϣ */
62 	boolean mg_getString;
63 	boolean mg_dspMsg;
64 	int     mg_startStrVarNo;
65 	int     mg_curStrVarNo;
66 	int     mg_policyR;
67 	int     mg_policyA;
68 
69 	/* ��å����� window */
70 	int              winno;
71 	Bcom_WindowInfo *win;  // ���߻������ window
72 	Bcom_WindowInfo  wininfo[MSGWINMAX];
73 };
74 typedef struct __message msg_t;
75 
76 #endif /* __MESSAGE__ */
77