1 /* # skkinput (Simple Kana-Kanji Input)
2  *
3  * This file is part of skkinput.
4  * Copyright (C) 2002
5  * Takashi SAKAMOTO (PXG01715@nifty.ne.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, or (at your option)
10  * 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 skkinput; see the file COPYING.  If not, write to
19  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21 #if !defined (TerminalP_h)
22 
23 #include "Char.h"
24 #include "TFontSet.h"
25 #include "varbuffer.h"
26 #include <X11/IntrinsicP.h>
27 #include <X11/CoreP.h>
28 #include <X11/StringDefs.h>
29 #include "TTerminal.h"
30 
31 typedef struct {
32 	int				m_nIndex ;		/*	�ƥ�������Ƭ��������Ʋ�ʸ������*/
33 	int				m_nLength ;		/*	��ʸ������Τ���*/
34 	int				m_nSize ;
35 	int				m_nPrev ;
36 	int				m_nNext ;
37 }	TTermLineInfo ;
38 
39 typedef struct tagTTerminalPart {
40 	Window			m_wndParent ;
41 	Pixel			m_pxlFore ;
42 	/*Pixel			m_pxlBack ;*/
43 	String			m_strFontSet ;	/* ������Ȱ������Τ�������� interface */
44 	TFontSet		m_FontSet ;
45 	GC				m_gc ;
46 	Boolean			m_fReverseVideo ;
47 
48 	int				m_iRow ;
49 	int				m_iColumn ;
50 	Boolean			m_fRev ;
51 
52 	/*	���β���Ĺ�Хåե��δ��ܤ��礭�������礭�᤮��Ȼפ���*/
53 	TVarbuffer		m_vbCurText ;
54 	TVarbuffer		m_vbCurLineInfo ;
55 	TVarbuffer		m_vbReqText ;
56 	TVarbuffer		m_vbReqLineInfo ;
57 	int				m_nReqTailLineIndex ;
58 }	TTerminalPart ;
59 
60 typedef struct tagTTerminalRec {
61 	CorePart		core ;
62 	TTerminalPart	tterminal ;
63 }	TTerminalRec ;
64 
65 typedef struct {
66 	int				dummy ;
67 }	TTerminalClassPart ;
68 
69 typedef struct tagTerminalClassRec {
70 	CoreClassPart		core_class ;
71 	TTerminalClassPart	tterminal_class ;
72 }	TTerminalClassRec ;
73 
74 extern	TTerminalClassRec	tterminalClassRec ;
75 
76 #endif
77 
78