< prev index next >

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

Print this page




 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 ;
 228 




 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     // those shhould probably be wrapped in a method or such
 210     // as it may be possible to remap them via x11 configuration files
 211     public static final int MouseWheelUp = buttons[4];
 212     public static final int MouseWheelDown = buttons[5];
 213 
 214     /* Notify modes */
 215 
 216     public static final int NotifyNormal = 0 ;
 217     public static final int NotifyGrab = 1 ;
 218     public static final int NotifyUngrab = 2 ;
 219     public static final int NotifyWhileGrabbed = 3 ;
 220 
 221     public static final int NotifyHint = 1 ; /* for MotionNotify events */
 222 
 223     /* Notify detail */
 224 
 225     public static final int NotifyAncestor = 0 ;
 226     public static final int NotifyVirtual = 1 ;
 227     public static final int NotifyInferior = 2 ;
 228     public static final int NotifyNonlinear = 3 ;
 229     public static final int NotifyNonlinearVirtual = 4 ;
 230     public static final int NotifyPointer = 5 ;
 231     public static final int NotifyPointerRoot = 6 ;
 232     public static final int NotifyDetailNone = 7 ;
 233 


< prev index next >