comparison include/AuxPanelP.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: AuxPanelP.h,v 1.7 1993/09/08 01:38:20 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 /* Copyright 1991 NEC Corporation, Tokyo, Japan.
20 *
21 * Permission to use, copy, modify, and distribute this software and its
22 * documentation for any purpose and without fee is hereby granted,
23 * provided that the above copyright notice appear in all copies and that
24 * both that copyright notice and this permission notice appear in
25 * supporting documentation, and that the name of NEC Corporation
26 * not be used in advertising or publicity pertaining to distribution
27 * of the software without specific, written prior permission. NEC
28 * Corporation makes no representations about the suitability of this
29 * software for any purpose. It is provided "as is" without express
30 * or implied warranty.
31 *
32 * NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
33 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
34 * NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
35 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
36 * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
37 * OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
38 * PERFORMANCE OF THIS SOFTWARE.
39 *
40 * Author: Akira Kon, NEC Corporation. (kon@d1.bs2.mt.nec.co.jp)
41 */
42
43 #ifndef _AuxPanelP_h
44 #define _AuxPanelP_h
45
46 #include <X11/CoreP.h>
47 #include "AuxPanel.h"
48
49 typedef struct {
50 int empty;
51 } AuxPanelClassPart;
52
53 typedef struct _AuxPanelClassRec {
54 CoreClassPart super_class;
55 CompositeClassPart composite_class;
56 AuxPanelClassPart auxpanel_class;
57 } AuxPanelClassRec;
58
59 extern AuxPanelClassRec auxpanelClassRec;
60
61 typedef struct {
62 ICString seg; /* $B%;%0%a%s%H(B */
63 short redrawpos; /* $B=q$-D>$7$,I,MW$JJ8;z$N3+;O0LCV(B
64 * (-1 $B$J$i=q$-D>$9I,MW$J$7(B)
65 */
66 Cardinal width; /* $BI=<(I}(B */
67 } DisplaySegment;
68
69 typedef struct {
70 /* resources */
71 Pixel foreground;
72 Dimension defaultwidth;
73 Dimension hspace;
74 Dimension vspace;
75 Cursor cursor;
76 XtCallbackList callback;
77 /* private state */
78 Widget displayobj; /* actually, this is the only child */
79 GC invgc;
80 int fontheight;
81 /* int ascent; */
82 int maxwidth; /* $B%"%$%F%`$N:GBgD9(B */
83 int ncolumns;
84 int nrows;
85
86 DisplaySegment *dispauxsegments;
87 Cardinal numauxsegments;
88 Cardinal dispauxsegmentsize;
89 } AuxPanelPart;
90
91 typedef struct _AuxPanelRec {
92 CorePart core;
93 CompositePart composite;
94 AuxPanelPart cpanel;
95 } AuxPanelRec;
96
97 #endif