view 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
line wrap: on
line source

/* $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 */