< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XConstants.java

Print this page


   1 /*
   2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 187 
 188     /* modifier names.  Used to build a SetModifierMapping request or
 189        to read a GetModifierMapping request.  These correspond to the
 190        masks defined above. */
 191     public static final int ShiftMapIndex = 0 ;
 192     public static final int LockMapIndex = 1 ;
 193     public static final int ControlMapIndex = 2 ;
 194     public static final int Mod1MapIndex = 3 ;
 195     public static final int Mod2MapIndex = 4 ;
 196     public static final int Mod3MapIndex = 5 ;
 197     public static final int Mod4MapIndex = 6 ;
 198     public static final int Mod5MapIndex = 7 ;
 199 
 200     public static final int AnyModifier = (1<<15) ; /* used in GrabButton, GrabKey */
 201 
 202 
 203     /* button names. Used as arguments to GrabButton and as detail in ButtonPress
 204        and ButtonRelease events.  Not to be confused with button masks above.
 205        Note that 0 is already defined above as "AnyButton".  */
 206 
 207     public static final int buttons [] = new int [] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24};
 208 
 209     /* Notify modes */
 210 
 211     public static final int NotifyNormal = 0 ;
 212     public static final int NotifyGrab = 1 ;
 213     public static final int NotifyUngrab = 2 ;
 214     public static final int NotifyWhileGrabbed = 3 ;
 215 
 216     public static final int NotifyHint = 1 ; /* for MotionNotify events */
 217 
 218     /* Notify detail */
 219 
 220     public static final int NotifyAncestor = 0 ;
 221     public static final int NotifyVirtual = 1 ;
 222     public static final int NotifyInferior = 2 ;
 223     public static final int NotifyNonlinear = 3 ;
 224     public static final int NotifyNonlinearVirtual = 4 ;
 225     public static final int NotifyPointer = 5 ;
 226     public static final int NotifyPointerRoot = 6 ;
 227     public static final int NotifyDetailNone = 7 ;


   1 /*
   2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 187 
 188     /* modifier names.  Used to build a SetModifierMapping request or
 189        to read a GetModifierMapping request.  These correspond to the
 190        masks defined above. */
 191     public static final int ShiftMapIndex = 0 ;
 192     public static final int LockMapIndex = 1 ;
 193     public static final int ControlMapIndex = 2 ;
 194     public static final int Mod1MapIndex = 3 ;
 195     public static final int Mod2MapIndex = 4 ;
 196     public static final int Mod3MapIndex = 5 ;
 197     public static final int Mod4MapIndex = 6 ;
 198     public static final int Mod5MapIndex = 7 ;
 199 
 200     public static final int AnyModifier = (1<<15) ; /* used in GrabButton, GrabKey */
 201 
 202 
 203     /* button names. Used as arguments to GrabButton and as detail in ButtonPress
 204        and ButtonRelease events.  Not to be confused with button masks above.
 205        Note that 0 is already defined above as "AnyButton".  */
 206 
 207     public static final int[] buttons  = new int [] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24};
 208 
 209     /* Notify modes */
 210 
 211     public static final int NotifyNormal = 0 ;
 212     public static final int NotifyGrab = 1 ;
 213     public static final int NotifyUngrab = 2 ;
 214     public static final int NotifyWhileGrabbed = 3 ;
 215 
 216     public static final int NotifyHint = 1 ; /* for MotionNotify events */
 217 
 218     /* Notify detail */
 219 
 220     public static final int NotifyAncestor = 0 ;
 221     public static final int NotifyVirtual = 1 ;
 222     public static final int NotifyInferior = 2 ;
 223     public static final int NotifyNonlinear = 3 ;
 224     public static final int NotifyNonlinearVirtual = 4 ;
 225     public static final int NotifyPointer = 5 ;
 226     public static final int NotifyPointerRoot = 6 ;
 227     public static final int NotifyDetailNone = 7 ;


< prev index next >