comparison include/OverConvP.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: OverConvP.h,v 1.18 1999/02/04 08:59:14 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 _OverTheSpotConversionP_h
20 #define _OverTheSpotConversionP_h
21
22 #include "ConvCtrlP.h"
23 #include "OverConv.h"
24
25 #define XtRModeLocation "ModeLocation"
26
27 typedef struct _canvasrec_ {
28 Widget canvas;
29 Position x, y;
30 Position maxx, maxy; /* for canvas reconfiguration */
31 Boolean shouldpopup;
32 Boolean poppedup;
33 struct _canvasrec_ *next;
34 } TextCanvas;
35
36 typedef struct {
37 TextCanvas *canvas;
38 Position x, y;
39 } DisplayLocation;
40
41 typedef struct _fragment_ {
42 unsigned short from; /* $BI=<(3+;OJ8;z0LCV(B */
43 unsigned short nchars; /* $BI=<(J8;z?t(B */
44 TextCanvas *canvas; /* $BI=<($9$k%-%c%s%P%9(B ($B?F(B widget $B$H$O8B$i$J$$(B) */
45 XRectangle region; /* $BI=<(NN0h(B */
46 struct _fragment_ *next; /* $B<!$N%U%i%0%a%s%H(B */
47 } DisplayFragment;
48
49 typedef struct {
50 ICString seg; /* $B%;%0%a%s%H(B */
51 short redrawpos; /* $B=q$-D>$7$,I,MW$JJ8;z$N3+;O0LCV(B
52 * (-1 $B$J$i=q$-D>$9I,MW$J$7(B)
53 */
54 DisplayFragment *fragments; /* $BI=<(%U%i%0%a%s%H(B */
55 } DisplaySegment;
56
57
58 /*
59 * over-the-spot conversion control widget data structure
60 */
61
62 typedef struct {
63 int empty;
64 } OverTheSpotConversionClassPart;
65
66 typedef struct _OverTheSpotConversionClassRec {
67 CoreClassPart core_class;
68 CompositeClassPart composite_class;
69 ShellClassPart shell_class;
70 WMShellClassPart wm_shell_class;
71 VendorShellClassPart vendor_shell_class;
72 TransientShellClassPart transient_shell_class;
73 ConversionControlClassPart conversionControl_class;
74 OverTheSpotConversionClassPart overTheSpotConversion_class;
75 } OverTheSpotConversionClassRec;
76
77 extern OverTheSpotConversionClassRec overTheSpotConversionClassRec;
78
79 typedef struct {
80 /* resources */
81 Position spotx, spoty;
82 Boolean spotforwarding;
83 Dimension linespacing;
84 XRectangle clientarea;
85 ModeLocation modelocation;
86 Boolean shrinkwindow;
87 Boolean ignorestatusarea;
88 Boolean borderforeground; /* force the border color to be same
89 * as foreground color
90 */
91 Boolean useoverride; /* use overrideShell widget for the
92 * mode displaying shell, instead
93 * of the default transient shell
94 */
95 /* private state */
96 Atom wm_state; /* WM_STATE atom */
97 Widget displayobj;
98 Widget selectionshell;
99 Widget selectionwidget;
100 Widget selectiondisplayobj;
101 Widget auxshell;
102 Widget auxwidget;
103 Widget auxdisplayobj;
104 Widget modeshell;
105 Widget modewidget;
106 Widget modedisplayobj;
107 Boolean modelocationspecified;
108 Widget modeshell_fix, modewidget_fix, modedisplayobj_fix;
109 Widget modeshell_float, modewidget_float, modedisplayobj_float;
110 Colormap colormap;
111 Pixel background;
112 Cursor canvascursor;
113 Position focusoffsetx;
114 Position focusoffsety;
115 TextCanvas *canvaslist;
116 TextCanvas *overflowcanvas;
117 Position overflowoffset;
118 DisplayLocation cursorlocation;
119 Boolean cursorvisible;
120 DisplaySegment *dispsegments;
121 Cardinal numsegments;
122 Cardinal dispsegmentsize;
123 ICString *candlist;
124 Cardinal numcands;
125 Boolean selectionpoppedup;
126 Boolean auxpoppedup;
127 Position ascent;
128 Dimension lineheight;
129 Dimension saved_bw;
130 } OverTheSpotConversionPart;
131
132 typedef struct _OverTheSpotConversionRec {
133 CorePart core;
134 CompositePart composite;
135 ShellPart shell;
136 WMShellPart wm;
137 VendorShellPart vendor;
138 TransientShellPart transient;
139 ConversionControlPart ccontrol;
140 OverTheSpotConversionPart overthespot;
141 } OverTheSpotConversionRec;
142
143 #endif