Mercurial > kinput2.yaz
comparison include/WcharDispP.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92745d501b9a |
---|---|
1 /* $Id: WcharDispP.h,v 1.6 1991/09/17 10:08:59 ishisone Rel $ */ | |
2 /* | |
3 * Copyright (c) 1990 Software Research Associates, Inc. | |
4 * | |
5 * Permission to use, copy, modify, and distribute this software and its | |
6 * documentation for any purpose and without fee is hereby granted, provided | |
7 * that the above copyright notice appear in all copies and that both that | |
8 * copyright notice and this permission notice appear in supporting | |
9 * documentation, and that the name of Software Research Associates not be | |
10 * used in advertising or publicity pertaining to distribution of the | |
11 * software without specific, written prior permission. Software Research | |
12 * Associates makes no representations about the suitability of this software | |
13 * for any purpose. It is provided "as is" without express or implied | |
14 * warranty. | |
15 * | |
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan | |
17 */ | |
18 | |
19 #ifndef _WcharDisplayP_h | |
20 #define _WcharDisplayP_h | |
21 | |
22 #include "ConvDispP.h" | |
23 #include "WcharDisp.h" | |
24 #include "XWStr.h" | |
25 | |
26 | |
27 #define XtRFontMapping "FontMapping" | |
28 | |
29 typedef struct { | |
30 String charset; /* <registry>-<encoding> ex) "JIX0208.1983-0" */ | |
31 int flag; | |
32 #define G0LCharSet (1<<0) /* font for G0 chars. use GL */ | |
33 #define G0RCharSet (1<<1) /* font for G0 chars. use GR */ | |
34 #define G1LCharSet (1<<2) | |
35 #define G1RCharSet (1<<3) | |
36 #define G2LCharSet (1<<4) | |
37 #define G2RCharSet (1<<5) | |
38 #define G3LCharSet (1<<6) | |
39 #define G3RCharSet (1<<7) | |
40 } WDCharSet; | |
41 | |
42 typedef struct { | |
43 WDCharSet *charset_specs; | |
44 Cardinal num_specs; | |
45 } WcharDisplayClassPart; | |
46 | |
47 typedef struct _WcharDisplayClassRec { | |
48 ObjectClassPart object_class; | |
49 ConvDisplayClassPart convDisplay_class; | |
50 WcharDisplayClassPart wcharDisplay_class; | |
51 } WcharDisplayClassRec; | |
52 | |
53 typedef struct { | |
54 Boolean grmapping[4]; | |
55 } FontMapping; | |
56 | |
57 typedef struct { | |
58 /* resources */ | |
59 XFontStruct *defaultfonts[4]; /* default fonts */ | |
60 FontMapping defaultmapping; /* use GR or not */ | |
61 /* private state */ | |
62 WDCharSet *charset_specs; /* same as the one in class structure. | |
63 * just for convenience | |
64 */ | |
65 FontSpec *fontspecs; | |
66 Cardinal num_specs; | |
67 XFontStruct *fonts[4]; /* fonts now in use */ | |
68 Boolean grmapping[4]; | |
69 Pixmap stipple; /* Stipple Bitmap */ | |
70 XWSGC gcset_normal; | |
71 XWSGC gcset_rev; | |
72 GC gc_normal; | |
73 GC gc_stipple; | |
74 int fontheight; | |
75 int ascent; | |
76 } WcharDisplayPart; | |
77 | |
78 typedef struct _WcharDisplayRec { | |
79 ObjectPart object; | |
80 ConvDisplayPart convDisplay; | |
81 WcharDisplayPart wcharDisplay; | |
82 } WcharDisplayRec; | |
83 | |
84 extern WcharDisplayClassRec wcharDisplayClassRec; | |
85 | |
86 | |
87 typedef struct { | |
88 int empry; | |
89 } JpWcharDisplayClassPart; | |
90 | |
91 typedef struct _JpWcharDisplayClassRec { | |
92 ObjectClassPart object_class; | |
93 ConvDisplayClassPart convDisplay_class; | |
94 WcharDisplayClassPart wcharDisplay_class; | |
95 JpWcharDisplayClassPart jpWcharDisplay_class; | |
96 } JpWcharDisplayClassRec; | |
97 | |
98 typedef struct { | |
99 int empty; | |
100 } JpWcharDisplayPart; | |
101 | |
102 typedef struct _JpWcharDisplayRec { | |
103 ObjectPart object; | |
104 ConvDisplayPart convDisplay; | |
105 WcharDisplayPart wcharDisplay; | |
106 JpWcharDisplayPart jpWcharDisplay; | |
107 } JpWcharDisplayRec; | |
108 | |
109 extern JpWcharDisplayClassRec jpWcharDisplayClassRec; | |
110 | |
111 #endif |