Mercurial > kinput2.yaz
comparison include/ICtypes.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: ICtypes.h,v 1.3 1999/01/07 03:06:22 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 _ICtypes_h | |
20 #define _ICtypes_h | |
21 | |
22 /* | |
23 * $B%"%H%j%S%e!<%H$D$-J8;zNs7?(B -- ICString | |
24 * nbytes $B$O!"(BICString $B$N(B data $B$N%G!<%?7?$rCN$i$J$/$F$b(B | |
25 * $B%3%T!<$G$-$k$h$&$K$D$1$F$"$k(B | |
26 */ | |
27 | |
28 typedef struct { | |
29 unsigned short nchars; /* data $B$NJ8;z?t(B */ | |
30 unsigned short nbytes; /* data $B$N%P%$%H?t(B */ | |
31 char *data; /* $BJ8;zNs(B ($B%(%s%3!<%G%#%s%0$O%/%i%90MB8(B) */ | |
32 int attr; /* $BJ8;zNs$NB0@-(B */ | |
33 } ICString; | |
34 | |
35 | |
36 /* | |
37 * ICString.attr $B$NCM(B | |
38 */ | |
39 | |
40 /* 1. $BJ8;zNs$,JQ49ESCf$N%F%-%9%H%;%0%a%s%H$rI=$7$F$$$k;~(B | |
41 * ($B2<5-$NCM$N(B bitwise-or) | |
42 */ | |
43 #define ICAttrNotConverted 0 /* $B$^$@JQ49$5$l$F$$$J$$%;%0%a%s%H(B */ | |
44 #define ICAttrConverted 1 /* $BJQ49:Q$_%;%0%a%s%H(B */ | |
45 #define ICAttrCurrentSegment 2 /* $B8=:_CmL\$7$F$$$k%;%0%a%s%H(B */ | |
46 #define ICAttrCurrentSubSegment 4 /* $B8=:_CmL\$7$F$$$k%5%V%;%0%a%s%H(B */ | |
47 | |
48 /* 2. $B$=$l0J30!"Nc$($P8=:_$NF~NO%b!<%I$J$I$rI=$7$F$$$k;~(B ($B>o$K$3$NCM(B) */ | |
49 #define ICAttrNormalString (-1) | |
50 | |
51 | |
52 /* $BA*Br$N0\F0J}8~(B */ | |
53 #define ICMoveLeft 1 | |
54 #define ICMoveRight 2 | |
55 #define ICMoveUp 3 | |
56 #define ICMoveDown 4 | |
57 #define ICMoveLeftMost 5 | |
58 #define ICMoveRightMost 6 | |
59 #define ICMoveNextPage 7 | |
60 #define ICMovePrevPage 8 | |
61 #define ICMoveFirst 9 | |
62 #define ICMoveLast 10 | |
63 | |
64 #endif /* _ICtypes_h */ |