comparison include/OnConv.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: OnConv.h,v 10.6 1999/05/18 08:53:18 ishisone Exp $ */
2 /*
3 * Copyright (c) 1990 Software Research Associates, Inc.
4 * Copyright (c) 1999 Kazuki YASUMATSU
5 *
6 * Permission to use, copy, modify, and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of Software Research Associates not be
11 * used in adntising or publicity pertaining to distribution of the
12 * software without specific, written prior permission. Software Research
13 * Associates makes no representations about the suitability of this software
14 * for any purpose. It is provided "as is" without express or implied
15 * warranty.
16 *
17 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
18 * Author: Kazuki YASUMATSU (Kazuki.Yasumatsu@fujixerox.co.jp)
19 */
20
21
22 #ifndef _OnTheSpotConversion_h
23 #define _OnTheSpotConversion_h
24
25 /* OnTheSpotConversion widget public header file */
26
27 #include "ConvCtrl.h"
28
29 #define XtNpreeditStartCallback "preeditStartCallback"
30 #define XtNpreeditDoneCallback "preeditDoneCallback"
31 #define XtNpreeditDrawCallback "preeditDrawCallback"
32 #define XtNpreeditCaretCallback "preeditCaretCallback"
33 #define XtNstatusStartCallback "statusStartCallback"
34 #define XtNstatusDoneCallback "statusDoneCallback"
35 #define XtNstatusDrawCallback "statusDrawCallback"
36 #define XtNfeedbackAttributes "feedbackAttributes"
37 #define XtCFeedbackAttributes "FeedbackAttributes"
38
39 typedef struct {
40 int caret; /* cursor offset within pre-edit string */
41 int chg_first; /* starting change position */
42 int chg_length; /* length of the change in character count */
43 Atom encoding; /* text encoding e.g. COMPOUND_TEXT */
44 int format; /* text format (8/16/32) */
45 int text_length; /* text length */
46 XtPointer text; /* text data */
47 int attrs_length; /* attributes length */
48 unsigned long *attrs; /* attributes of the text */
49 } OCCPreeditDrawArg;
50
51 typedef struct _OnTheSpotConversionClassRec* OnTheSpotConversionWidgetClass;
52 typedef struct _OnTheSpotConversionRec* OnTheSpotConversionWidget;
53
54 extern WidgetClass onTheSpotConversionWidgetClass;
55
56 #endif
57