1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
/* $Id: ICtypes.h,v 1.3 1999/01/07 03:06:22 ishisone Exp $ */
/*
* Copyright (c) 1990 Software Research Associates, Inc.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Software Research Associates not be
* used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Software Research
* Associates makes no representations about the suitability of this software
* for any purpose. It is provided "as is" without express or implied
* warranty.
*
* Author: Makoto Ishisone, Software Research Associates, Inc., Japan
*/
#ifndef _ICtypes_h
#define _ICtypes_h
/*
* $B%"%H%j%S%e!<%H$D$-J8;zNs7?(B -- ICString
* nbytes $B$O!"(BICString $B$N(B data $B$N%G!<%?7?$rCN$i$J$/$F$b(B
* $B%3%T!<$G$-$k$h$&$K$D$1$F$"$k(B
*/
typedef struct {
unsigned short nchars; /* data $B$NJ8;z?t(B */
unsigned short nbytes; /* data $B$N%P%$%H?t(B */
char *data; /* $BJ8;zNs(B ($B%(%s%3!<%G%#%s%0$O%/%i%90MB8(B) */
int attr; /* $BJ8;zNs$NB0@-(B */
} ICString;
/*
* ICString.attr $B$NCM(B
*/
/* 1. $BJ8;zNs$,JQ49ESCf$N%F%-%9%H%;%0%a%s%H$rI=$7$F$$$k;~(B
* ($B2<5-$NCM$N(B bitwise-or)
*/
#define ICAttrNotConverted 0 /* $B$^$@JQ49$5$l$F$$$J$$%;%0%a%s%H(B */
#define ICAttrConverted 1 /* $BJQ49:Q$_%;%0%a%s%H(B */
#define ICAttrCurrentSegment 2 /* $B8=:_CmL\$7$F$$$k%;%0%a%s%H(B */
#define ICAttrCurrentSubSegment 4 /* $B8=:_CmL\$7$F$$$k%5%V%;%0%a%s%H(B */
/* 2. $B$=$l0J30!"Nc$($P8=:_$NF~NO%b!<%I$J$I$rI=$7$F$$$k;~(B ($B>o$K$3$NCM(B) */
#define ICAttrNormalString (-1)
/* $BA*Br$N0\F0J}8~(B */
#define ICMoveLeft 1
#define ICMoveRight 2
#define ICMoveUp 3
#define ICMoveDown 4
#define ICMoveLeftMost 5
#define ICMoveRightMost 6
#define ICMoveNextPage 7
#define ICMovePrevPage 8
#define ICMoveFirst 9
#define ICMoveLast 10
#endif /* _ICtypes_h */
|