Mercurial > kinput2.yaz
comparison include/ConvMgr.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: ConvMgr.h,v 1.5 1991/04/18 16:59:00 ishisone Rel $ */ | |
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 _ConversionManager_h | |
20 #define _ConversionManager_h | |
21 | |
22 typedef struct _ConversionManagerClassRec* ConversionManagerWidgetClass; | |
23 typedef struct _ConversionManagerRec* ConversionManagerWidget; | |
24 | |
25 extern WidgetClass conversionManagerWidgetClass; | |
26 | |
27 /* | |
28 * (semi)public functions | |
29 * | |
30 * these functions are for the protocol widgets | |
31 */ | |
32 | |
33 /* | |
34 * void CMGetConverter() | |
35 * returns a widget of the specified class that is on the | |
36 * same screen as the client window. | |
37 * first it searches its internal cache and if unused one found, | |
38 * take and returns it. otherwise make a new one and returns it. | |
39 */ | |
40 extern Widget CMGetConverter( | |
41 #if NeedFunctionPrototypes | |
42 Widget /* w */, | |
43 Window /* client */, | |
44 WidgetClass /* converterclass */, | |
45 WidgetClass /* inputobjclass */, | |
46 WidgetClass /* displayobjclass */ | |
47 #endif | |
48 ); | |
49 | |
50 /* | |
51 * void CMPrepareConverter() | |
52 * make a new converter widget of the specified class on the | |
53 * specified screen, add it to the internal cache for later use. | |
54 */ | |
55 extern void CMPrepareConverter( | |
56 #if NeedFunctionPrototypes | |
57 Widget /* w */, | |
58 Screen * /* screen */, | |
59 WidgetClass /* converterclass */, | |
60 WidgetClass /* inputobjclass */, | |
61 WidgetClass /* displayobjclass */ | |
62 #endif | |
63 ); | |
64 | |
65 /* | |
66 * void CMReleaseConverter() | |
67 * mark specified converter widget as unused, and enter it | |
68 * to the cache. | |
69 */ | |
70 extern void CMReleaseConverter( | |
71 #if NeedFunctionPrototypes | |
72 Widget /* w */, | |
73 Widget /* converter */ | |
74 #endif | |
75 ); | |
76 | |
77 #endif |