-
Notifications
You must be signed in to change notification settings - Fork 0
/
xim.h
54 lines (41 loc) · 1.56 KB
/
xim.h
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
#ifndef __XIM_H
#define __XIM_H
#include <IMdkit.h>
#include <Xi18n.h>
#include <gtk/gtk.h>
typedef struct _IC_locale {
CARD16 connect_id;
char* locale;
struct _IC_locale* next;
} IC_locale;
typedef struct _IC {
CARD16 id; /* ic id, sequentially assigned to new ICs starting from 0 */
CARD16 connect_id; /* id of connected client */
Window client_win; /* client window */
Window focus_win; /* focus window */
char* resource_name; /* resource name */
char* resource_class; /* resource class */
char* locale;
char* encoding;
struct _IC* next;
} IC;
int lpProtoHandler(XIMS ims, IMProtocol* call_data);
int XIMOpenHandler(XIMS ims, IMOpenStruct* call_data);
int XIMCloseHandler(XIMS ims, IMCloseStruct* call_data);
int createICHandler(XIMS ims, IMChangeICStruct* call_data);
int destroyICHandler(XIMS ims, IMDestroyICStruct* call_data);
int MyGetICValuesHandler(XIMS ims, IMChangeICStruct* call_data);
int MySetICValuesHandler(XIMS ims, IMChangeICStruct* call_data);
int setICFocusHandler(XIMS ims, IMChangeFocusStruct* call_data);
int forwardAllEventsHandler(XIMS ims, IMForwardEventStruct* call_data);
#define OUTBUF_SIZE 32768
int is_char_available(char ch1, char ch2);
size_t convert_char(char str[3], char outbuf[OUTBUF_SIZE]);
int commit_char(gchar ch1, gchar ch2);
char* locale2encoding(char* locale);
IC* ic_find(CARD16 icid);
extern XIMS ims;
extern IC* ic_list;
extern IC* free_list;
#endif /* __XIM_H */
/* $Id: xim.h,v 1.3 1999/11/30 11:22:42 ypwong Exp $ */