comparison include/CandPanel.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: CandPanel.h,v 1.5 1999/01/07 03:06:20 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 _CandidatePanel_h
20 #define _CandidatePanel_h
21
22 #include "ICtypes.h"
23
24 /*
25 CandidatePanel new resources:
26
27 name class type default access
28 ----------------------------------------------------------------------------
29 foreground Foreground Pixel default CSG
30 horizontalSpacing Spacing Dimension 6 CSG
31 verticalSpacing Spacing Dimension 4 CSG
32 list List Pointer NULL CSG
33 numStrings NumStrings Int 0 CSG
34 defaultWidth DefaultWidth Dimension 400 CSG
35 currentItem CurrentItem Int 0 CSG
36 cursor Cursor Cursor parent CSG
37 callback Callback Callback --
38
39 CandidatePanel widget $B$K$O<B:]$KJ8;zNs$rI=<($9$k$?$a$N(B widget $B$r;R(B widget
40 $B$H$7$FM?$($kI,MW$,$"$k!#$3$N(B widget $B$N%/%i%9$O(B ConvDisplayObject $B%/%i%9$N(B
41 $B%5%V%/%i%9$G$J$1$l$P$J$i$J$$!#(B
42 */
43
44 #define XtCSpacing "Spacing"
45 #define XtNhorizontalSpacing "horizontalSpacing"
46 #define XtNverticalSpacing "verticalSpacing"
47
48 #define XtCList "List"
49 #define XtNlist "list"
50 #define XtCNumStrings "NumStrings"
51 #define XtNnumStrings "numStrings"
52
53 #define XtCDefaultWidth "DefaultWidth"
54 #define XtNdefaultWidth "defaultWidth"
55
56 #define XtCCurrentItem "CurrentItem"
57 #define XtNcurrentItem "currentItem"
58
59 #define XtNcursor "cursor"
60
61 typedef struct _CandidatePanelClassRec* CandidatePanelWidgetClass;
62 typedef struct _CandidatePanelRec* CandidatePanelWidget;
63
64 extern WidgetClass candidatePanelWidgetClass;
65
66 /*
67 * Public Interface Functions
68 */
69
70 /*
71 * void CPanelSetList(Widget w, ICString *list, int nstrings,
72 * int current, int resize)
73 * $B%j%9%H$r?7$?$K%;%C%H$9$k(B
74 * current $B$K$O%+%l%s%H%"%$%F%`$NHV9f$r;XDj$9$k(B
75 * resize $B$,(B True $B$J$i$P@_Dj$5$l$?%j%9%H$K9g$o$;$F%j%5%$%:$r9T$J$&(B
76 * list $B$,(B NULL $B$J$i$P%j%9%H$OJQ99$5$l$J$$$,!"%5%$%:$N7W;;$r$d$jD>$9$N$G(B
77 * $B;R(B widget (ConvDisplayObject) $B$N%U%)%s%H$J$I$N%j%=!<%9$rJQ$($?;~$K$O(B
78 * CPanelSetList(w, NULL, 0, 0, 0);
79 * $B$r<B9T$9$k$H$h$$(B
80 */
81 extern void CPanelSetList(
82 #if NeedFunctionPrototypes
83 Widget /* w */,
84 ICString * /* list (or NULL) */,
85 int /* nstrings */,
86 int /* current */,
87 int /* resize */
88 #endif
89 );
90
91 /*
92 * void CPanelSetCurrent(Widget w, int current)
93 * $B%+%l%s%H%"%$%F%`$r(B idx $B$G;XDj$7$?HV9f$N$b$N$K%;%C%H$9$k(B
94 */
95 extern void CPanelSetCurrent(
96 #if NeedFunctionPrototypes
97 Widget /* w */,
98 int /* current */
99 #endif
100 );
101
102 /*
103 * void CPanelMoveCurrent(Widget w, int dir)
104 * $B%+%l%s%H%"%$%F%`$r(B dir $B$G;XDj$7$?J}8~$N%"%$%F%`$KJQ$($k(B
105 * dir $B$NCM$O(B ICtypes.h $B$KDj5A$5$l$F$$$k(B
106 */
107 extern void CPanelMoveCurrent(
108 #if NeedFunctionPrototypes
109 Widget /* w */,
110 int /* dir */
111 #endif
112 );
113
114 #endif