comparison include/OffConvP.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: OffConvP.h,v 1.7 1999/01/07 03:06:23 ishisone Exp $ */
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 _OffTheSpotConversionP_h
20 #define _OffTheSpotConversionP_h
21
22 #include "ConvCtrlP.h"
23 #include "OffConv.h"
24
25 typedef struct {
26 Position x, y;
27 } DisplayLocation;
28
29 typedef struct _fragment_ {
30 unsigned short from; /* $BI=<(3+;OJ8;z0LCV(B */
31 unsigned short nchars; /* $BI=<(J8;z?t(B */
32 XRectangle region; /* $BI=<(NN0h(B */
33 struct _fragment_ *next; /* $B<!$N%U%i%0%a%s%H(B */
34 } DisplayFragment;
35
36 typedef struct {
37 ICString seg; /* $B%;%0%a%s%H(B */
38 short redrawpos; /* $B=q$-D>$7$,I,MW$JJ8;z$N3+;O0LCV(B
39 * (-1 $B$J$i=q$-D>$9I,MW$J$7(B)
40 */
41 DisplayFragment *fragments; /* $BI=<(%U%i%0%a%s%H(B */
42 } DisplaySegment;
43
44
45 /*
46 * off-the-spot conversion control widget data structure
47 */
48
49 typedef struct {
50 int empty;
51 } OffTheSpotConversionClassPart;
52
53 typedef struct _OffTheSpotConversionClassRec {
54 CoreClassPart core_class;
55 CompositeClassPart composite_class;
56 ShellClassPart shell_class;
57 WMShellClassPart wm_shell_class;
58 VendorShellClassPart vendor_shell_class;
59 TransientShellClassPart transient_shell_class;
60 ConversionControlClassPart conversionControl_class;
61 OffTheSpotConversionClassPart offTheSpotConversion_class;
62 } OffTheSpotConversionClassRec;
63
64 extern OffTheSpotConversionClassRec offTheSpotConversionClassRec;
65
66 typedef struct {
67 /* resources */
68 Dimension leftmargin;
69 Dimension rightmargin;
70 /* private state */
71 Widget displayobj;
72 Widget selectionshell;
73 Widget selectionwidget;
74 Widget formwidget;
75 Widget modewidget;
76 Widget modeshell;
77 Widget modedisplayobj;
78 Widget canvaswidget;
79 DisplayLocation cursorlocation;
80 Boolean cursorvisible;
81 DisplaySegment *dispsegments;
82 Cardinal numsegments;
83 Cardinal dispsegmentsize;
84 ICString *candlist;
85 Cardinal numcands;
86 Boolean selectionpoppedup;
87 Dimension lineheight;
88 Position ascent;
89 Widget auxshell;
90 Widget auxwidget;
91 Boolean auxpoppedup;
92 } OffTheSpotConversionPart;
93
94 typedef struct _OffTheSpotConversionRec {
95 CorePart core;
96 CompositePart composite;
97 ShellPart shell;
98 WMShellPart wm;
99 VendorShellPart vendor;
100 TransientShellPart transient;
101 ConversionControlPart ccontrol;
102 OffTheSpotConversionPart offthespot;
103 } OffTheSpotConversionRec;
104
105
106 /*
107 * separate conversion control widget data structure
108 */
109
110 typedef struct {
111 int empty;
112 } SeparateConversionClassPart;
113
114 typedef struct _SeparateConversionClassRec {
115 CoreClassPart core_class;
116 CompositeClassPart composite_class;
117 ShellClassPart shell_class;
118 WMShellClassPart wm_shell_class;
119 VendorShellClassPart vendor_shell_class;
120 TransientShellClassPart transient_shell_class;
121 ConversionControlClassPart conversionControl_class;
122 OffTheSpotConversionClassPart offTheSpotConversion_class;
123 SeparateConversionClassPart separateConversion_class;
124 } SeparateConversionClassRec;
125
126 extern SeparateConversionClassRec separateConversionClassRec;
127
128 typedef struct {
129 Widget formwidget;
130 } SeparateConversionPart;
131
132 typedef struct _SeparateConversionRec {
133 CorePart core;
134 CompositePart composite;
135 ShellPart shell;
136 WMShellPart wm;
137 VendorShellPart vendor;
138 TransientShellPart transient;
139 ConversionControlPart ccontrol;
140 OffTheSpotConversionPart offthespot;
141 SeparateConversionPart separate;
142 } SeparateConversionRec;
143
144 #endif