1 /* 2 3 Copyright (c) 2003-2013 uim Project https://github.com/uim/uim 4 5 All rights reserved. 6 7 Redistribution and use in source and binary forms, with or without 8 modification, are permitted provided that the following conditions 9 are met: 10 11 1. Redistributions of source code must retain the above copyright 12 notice, this list of conditions and the following disclaimer. 13 2. Redistributions in binary form must reproduce the above copyright 14 notice, this list of conditions and the following disclaimer in the 15 documentation and/or other materials provided with the distribution. 16 3. Neither the name of authors nor the names of its contributors 17 may be used to endorse or promote products derived from this software 18 without specific prior written permission. 19 20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND 21 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE 24 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 SUCH DAMAGE. 31 */ 32 33 // -*- C++ -*- 34 // XIM related constant numbers 35 #ifndef UIM_XIM_XIMPN_H 36 #define UIM_XIM_XIMPN_H 37 38 // MAJOR number or XIM request 39 // 40 #define XIM_CONNECT 1 41 #define XIM_CONNECT_REPLY 2 42 #define XIM_DISCONNECT 3 43 #define XIM_DISCONNECT_REPLY 4 44 45 #define XIM_AUTH_REQUIRED 10 46 #define XIM_AUTH_REPLY 11 47 #define XIM_AUTH_NEXT 12 48 #define XIM_AUTH_SETUP 13 49 #define XIM_AUTH_NG 14 50 51 #define XIM_ERROR 20 52 53 #define XIM_OPEN 30 54 #define XIM_OPEN_REPLY 31 55 #define XIM_CLOSE 32 56 #define XIM_CLOSE_REPLY 33 57 #define XIM_REGISTER_TRIGGERKEYS 34 58 #define XIM_TRIGGER_NOTIFY 35 59 #define XIM_TRIGGER_NOTIFY_REPLY 36 60 #define XIM_SET_EVENT_MASK 37 61 #define XIM_ENCODING_NEGOTIATION 38 62 #define XIM_ENCODING_NEGOTIATION_REPLY 39 63 #define XIM_QUERY_EXTENSION 40 64 #define XIM_QUERY_EXTENSION_REPLY 41 65 #define XIM_SET_IM_VALUES 42 66 #define XIM_SET_IM_VALUES_REPLY 43 67 #define XIM_GET_IM_VALUES 44 68 #define XIM_GET_IM_VALUES_REPLY 45 69 70 #define XIM_CREATE_IC 50 71 #define XIM_CREATE_IC_REPLY 51 72 #define XIM_DESTROY_IC 52 73 #define XIM_DESTROY_IC_REPLY 53 74 #define XIM_SET_IC_VALUES 54 75 #define XIM_SET_IC_VALUES_REPLY 55 76 #define XIM_GET_IC_VALUES 56 77 #define XIM_GET_IC_VALUES_REPLY 57 78 #define XIM_SET_IC_FOCUS 58 79 #define XIM_UNSET_IC_FOCUS 59 80 #define XIM_FORWARD_EVENT 60 81 #define XIM_SYNC 61 82 #define XIM_SYNC_REPLY 62 83 #define XIM_COMMIT 63 84 #define XIM_RESET_IC 64 85 #define XIM_RESET_IC_REPLY 65 86 87 #define XIM_GEOMETRY 70 88 #define XIM_STR_CONVERSION 71 89 #define XIM_STR_CONVERSION_REPLY 72 90 #define XIM_PREEDIT_START 73 91 #define XIM_PREEDIT_START_REPLY 74 92 #define XIM_PREEDIT_DRAW 75 93 #define XIM_PREEDIT_CARET 76 94 #define XIM_PREEDIT_CARET_REPLY 77 95 #define XIM_PREEDIT_DONE 78 96 #define XIM_STATUS_START 79 97 #define XIM_STATUS_DRAW 80 98 #define XIM_STATUS_DONE 81 99 #define XIM_PREEDITSTATE 82 100 101 // 102 // 103 #define TYPE_SEPARATOR 0 104 #define TYPE_BYTE 1 105 #define TYPE_WORD 2 106 #define TYPE_LONG 3 107 #define TYPE_CHAR 4 108 #define TYPE_WINDOW 5 109 #define TYPE_XIMSTYLE 10 110 #define TYPE_XRECTANGLE 11 111 #define TYPE_POINT 12 112 #define TYPE_XFONTSET 13 113 #define TYPE_XIMHOTKEYTRIGGERS 15 114 #define TYPE_XIMHOTKEYSTATE 16 115 #define TYPE_XIMSTRINGCONVERSION 17 116 #define TYPE_XIMPREEDITSTATE 18 117 #define TYPE_XIMRESETSTATE 19 118 #define TYPE_NESTEDLIST 0x7fff 119 120 // ICATTRIBUTE 121 #define ICA_InputStyle 0 122 #define ICA_ClientWindow 1 123 #define ICA_FocusWindow 2 124 #define ICA_PreeditAttribute 3 125 #define ICA_Foreground 4 126 #define ICA_Background 5 127 #define ICA_SpotLocation 6 128 #define ICA_FontSet 7 129 #define ICA_Area 8 130 #define ICA_LineSpace 9 131 // 132 #define ICA_StatusAttributes 10 133 #define ICA_AreaNeeded 11 134 #define ICA_ColorMap 12 135 #define ICA_StdColorMap 13 136 #define ICA_BackgroundPixmap 14 137 #define ICA_Cursor 15 138 #define ICA_FilterEvents 16 139 140 // Style (Input Style) 141 #define IS_INVALID 0 142 #define IS_OVER_THE_SPOT 1 143 #define IS_ROOT_WINDOW 2 144 #define IS_OFF_THE_SPOT 3 145 #define IS_ON_THE_SPOT 4 146 147 // Error of XIM 148 #define ERR_BadAlloc 1 149 #define ERR_Style 2 150 #define ERR_BadClientWindow 3 151 #define ERR_BadFocusWindow 4 152 #define ERR_BadArea 5 153 #define ERR_BadSpotLocation 6 154 #define ERR_BadColormap 7 155 #define ERR_BadAtom 8 156 #define ERR_BadPixel 9 157 #define ERR_BadPixmap 10 158 #define ERR_BadName 11 159 #define ERR_BadCursor 12 160 #define ERR_BadProtocol 13 161 #define ERR_BadForeground 14 162 #define ERR_BadBackground 15 163 #define ERR_LocaleNotSupported 16 164 #define ERR_BadSomething 999 165 166 // Feedback for OnTheSpot input 167 #define FB_None 0 168 #define FB_Reverse 1 169 #define FB_Underline 2 170 #define FB_Highlight 4 171 172 #endif 173 /* 174 * Local variables: 175 * c-indent-level: 4 176 * c-basic-offset: 4 177 * End: 178 */ 179