1 /* 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 * 4 * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. 5 * 6 * The contents of this file are subject to the terms of either the GNU Lesser 7 * General Public License Version 2.1 only ("LGPL") or the Common Development and 8 * Distribution License ("CDDL")(collectively, the "License"). You may not use this 9 * file except in compliance with the License. You can obtain a copy of the CDDL at 10 * http://www.opensource.org/licenses/cddl1.php and a copy of the LGPLv2.1 at 11 * http://www.opensource.org/licenses/lgpl-license.php. See the License for the 12 * specific language governing permissions and limitations under the License. When 13 * distributing the software, include this License Header Notice in each file and 14 * include the full text of the License in the License file as well as the 15 * following notice: 16 * 17 * NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE 18 * (CDDL) 19 * For Covered Software in this distribution, this License shall be governed by the 20 * laws of the State of California (excluding conflict-of-law provisions). 21 * Any litigation relating to this License shall be subject to the jurisdiction of 22 * the Federal Courts of the Northern District of California and the state courts 23 * of the State of California, with venue lying in Santa Clara County, California. 24 * 25 * Contributor(s): 26 * 27 * If you wish your version of this file to be governed by only the CDDL or only 28 * the LGPL Version 2.1, indicate your decision by adding "[Contributor]" elects to 29 * include this software in this distribution under the [CDDL or LGPL Version 2.1] 30 * license." If you don't indicate a single choice of license, a recipient has the 31 * option to distribute your version of this file under either the CDDL or the LGPL 32 * Version 2.1, or to extend the choice of license to its licensees as provided 33 * above. However, if you add LGPL Version 2.1 code and therefore, elected the LGPL 34 * Version 2 license, then the option applies only if the new code is made subject 35 * to such option by the copyright holder. 36 */ 37 38 #ifndef KEYDEFINE_GTK2IIIM_H 39 #define KEYDEFINE_GTK2IIIM_H 40 41 #ifndef IIIM_INTERFACE 42 #ifdef GTK_STANDALONE 43 44 #include <gdk/gdk.h> 45 #include <gdk/gdkkeysyms.h> 46 #include "KeycodeIIIM2GDK.h" 47 48 #define IM_SHIFT_MASK GDK_SHIFT_MASK 49 #define IM_CTRL_MASK GDK_CONTROL_MASK 50 #define IM_META_MASK GDK_LOCK_MASK 51 #define IM_ALT_MASK GDK_MOD1_MASK 52 53 #define IM_VK_DELETE GDK_Delete 54 #define IM_VK_ENTER GDK_Return 55 #define IM_VK_BACK_SPACE GDK_BackSpace 56 #define IM_VK_TAB GDK_Tab 57 #define IM_VK_SHIFT GDK_Shift_L 58 #define IM_VK_CONTROL GDK_Control_L 59 #define IM_VK_ALT GDK_Alt_L 60 #define IM_VK_CAPS_LOCK GDK_Caps_Lock 61 #define IM_VK_ESCAPE GDK_Escape 62 #define IM_VK_SPACE GDK_space 63 #define IM_VK_PAGE_UP GDK_Page_Up 64 #define IM_VK_PAGE_DOWN GDK_Page_Down 65 #define IM_VK_END GDK_End 66 #define IM_VK_HOME GDK_Home 67 #define IM_VK_LEFT GDK_Left 68 #define IM_VK_UP GDK_Up 69 #define IM_VK_RIGHT GDK_Right 70 #define IM_VK_DOWN GDK_Down 71 72 #define IM_VK_PAGE_UP GDK_Page_Up 73 #define IM_VK_PAGE_DOWN GDK_Page_Down 74 #define IM_VK_OPEN_BRACKET GDK_bracketleft 75 #define IM_VK_CLOSE_BRACKET GDK_bracketright 76 #define IM_VK_COMMA GDK_comma 77 #define IM_VK_PERIOD GDK_period 78 #define IM_VK_MINUS GDK_minus 79 #define IM_VK_EQUALS GDK_equal 80 81 #define IM_VK_SLASH GDK_slash 82 #define IM_VK_BACK_QUOTE GDK_quoteleft 83 #define IM_VK_QUOTE GDK_apostrophe 84 #define IM_VK_QUOTEDBL GDK_quotedbl 85 86 #define IM_VK_0 GDK_0 87 #define IM_VK_1 GDK_1 88 #define IM_VK_2 GDK_2 89 #define IM_VK_3 GDK_3 90 #define IM_VK_4 GDK_4 91 #define IM_VK_5 GDK_5 92 #define IM_VK_6 GDK_6 93 #define IM_VK_7 GDK_7 94 #define IM_VK_8 GDK_8 95 #define IM_VK_9 GDK_9 96 97 98 99 #endif 100 #endif 101 #endif 102