LibreOffice Module vcl (master)  1
XIM.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_VCL_INC_UNX_XIM_H
20 #define INCLUDED_VCL_INC_UNX_XIM_H
21 
22 #include <X11/Xlib.h>
23 
24 #ifndef XIMCallback1
25 typedef int (*XIMProc1)(XIC, XPointer, XPointer);
26 typedef struct {
27  XPointer client_data;
29 } XIMCallback1;
30 #endif
31 
32 typedef struct {
35  XPointer data;
37 
38 /*
39  XIMUText: XIMText extension for UTF16
40  */
41 typedef struct {
42  unsigned short length;
43  XIMFeedback *feedback;
45  union {
46  char *multi_byte;
47  wchar_t *wide_char;
48  unsigned short *utf16_char;
49  } string;
50  unsigned int count_annotations;
53 
54 /* lookup choice */
55 typedef enum {
59 
60 typedef struct {
61  int choice_per_window; /* Number of choices can be display
62  * in the region
63  */
64  int nrows;
65  int ncolumns;
68 
69 typedef struct {
73 
74 typedef struct {
75  XIMUnicodeChoiceObject *choices; /* the lookup choices */
76  int n_choices; /* Total number of lookup choices */
82 
83 /* Unicode Subset */
84 typedef enum {
87 
88 typedef struct {
91  char *name;
94 
95 typedef struct {
96  unsigned short count_subsets;
99 
100 typedef struct {
104 
105 /* XIC attributes for multilingual IM extension */
106 
107 #define XNUnicodeCharacterSubset "UnicodeChararcterSubset"
108 
109 #endif
110 
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XIMFeedback * feedback
Definition: XIM.h:43
unsigned short * utf16_char
Definition: XIM.h:48
Bool encoding_is_wchar
Definition: XIM.h:44
XIMUnicodeCharacterSubsetID subset_id
Definition: XIM.h:90
Definition: XIM.h:85
const wchar_t *typedef int(__stdcall *DllNativeUnregProc)(int
wchar_t * wide_char
Definition: XIM.h:47
XPointer client_data
Definition: XIM.h:27
unsigned short count_subsets
Definition: XIM.h:96
unsigned short length
Definition: XIM.h:42
XIMUnicodeText * title
Definition: XIM.h:80
unsigned int count_annotations
Definition: XIM.h:50
XIMDrawUpDirection
Definition: XIM.h:55
XIMUnicodeText * label
Definition: XIM.h:70
int start_position
Definition: XIM.h:33
int end_position
Definition: XIM.h:34
XIMUnicodeCharacterSubset * to
Definition: XIM.h:102
XIMDrawUpDirection draw_up_direction
Definition: XIM.h:66
char * multi_byte
Definition: XIM.h:46
XIMAnnotation * annotations
Definition: XIM.h:51
int(* XIMProc1)(XIC, XPointer, XPointer)
Definition: XIM.h:25
XIMUnicodeChoiceObject * choices
Definition: XIM.h:75
XPointer data
Definition: XIM.h:35
XIMUnicodeCharacterSubset * supported_subsets
Definition: XIM.h:97
XIMUnicodeText * value
Definition: XIM.h:71
XIMUnicodeCharacterSubsetID
Definition: XIM.h:84
XIMProc1 callback
Definition: XIM.h:28
XIMUnicodeCharacterSubset * from
Definition: XIM.h:101
XIMUnicodeCharacterSubsetID index
Definition: XIM.h:89