src/solaris/classes/sun/awt/X11/XConstants.java

Print this page




 113     public static final long PointerMotionMask = (1L<<6) ;
 114     public static final long PointerMotionHintMask = (1L<<7) ;
 115     public static final long Button1MotionMask = (1L<<8) ;
 116     public static final long Button2MotionMask = (1L<<9) ;
 117     public static final long Button3MotionMask = (1L<<10) ;
 118     public static final long Button4MotionMask = (1L<<11) ;
 119     public static final long Button5MotionMask = (1L<<12) ;
 120     public static final long ButtonMotionMask = (1L<<13) ;
 121     public static final long KeymapStateMask = (1L<<14) ;
 122     public static final long ExposureMask = (1L<<15) ;
 123     public static final long VisibilityChangeMask = (1L<<16) ;
 124     public static final long StructureNotifyMask = (1L<<17) ;
 125     public static final long ResizeRedirectMask = (1L<<18) ;
 126     public static final long SubstructureNotifyMask = (1L<<19) ;
 127     public static final long SubstructureRedirectMask = (1L<<20) ;
 128     public static final long FocusChangeMask = (1L<<21) ;
 129     public static final long PropertyChangeMask = (1L<<22) ;
 130     public static final long ColormapChangeMask = (1L<<23) ;
 131     public static final long OwnerGrabButtonMask = (1L<<24) ;
 132 



 133     /* Event names.  Used in "type" field in XEvent structures.  Not to be
 134     confused with event masks above.  They start from 2 because 0 and 1
 135     are reserved in the protocol for errors and replies. */
 136 
 137     public static final int KeyPress = 2 ;
 138     public static final int KeyRelease = 3 ;
 139     public static final int ButtonPress = 4 ;
 140     public static final int ButtonRelease = 5 ;
 141     public static final int MotionNotify = 6 ;
 142     public static final int EnterNotify = 7 ;
 143     public static final int LeaveNotify = 8 ;
 144     public static final int FocusIn = 9 ;
 145     public static final int FocusOut = 10 ;
 146     public static final int KeymapNotify = 11 ;
 147     public static final int Expose = 12 ;
 148     public static final int GraphicsExpose = 13 ;
 149     public static final int NoExpose = 14 ;
 150     public static final int VisibilityNotify = 15 ;
 151     public static final int CreateNotify = 16 ;
 152     public static final int DestroyNotify = 17 ;


 177     public static final int LockMask = (1<<1) ;
 178     public static final int ControlMask = (1<<2) ;
 179     public static final int Mod1Mask = (1<<3) ;
 180     public static final int Mod2Mask = (1<<4) ;
 181     public static final int Mod3Mask = (1<<5) ;
 182     public static final int Mod4Mask = (1<<6) ;
 183     public static final int Mod5Mask = (1<<7) ;
 184 
 185     /* modifier names.  Used to build a SetModifierMapping request or
 186        to read a GetModifierMapping request.  These correspond to the
 187        masks defined above. */
 188     public static final int ShiftMapIndex = 0 ;
 189     public static final int LockMapIndex = 1 ;
 190     public static final int ControlMapIndex = 2 ;
 191     public static final int Mod1MapIndex = 3 ;
 192     public static final int Mod2MapIndex = 4 ;
 193     public static final int Mod3MapIndex = 5 ;
 194     public static final int Mod4MapIndex = 6 ;
 195     public static final int Mod5MapIndex = 7 ;
 196 
 197 
 198     /* button masks.  Used in same manner as Key masks above. Not to be confused
 199        with button names below. */
 200     public static final int [] buttonsMask = new int []{ 1<<8,
 201                                                          1<<9,
 202                                                          1<<10,
 203                                                          1<<11,
 204                                                          1<<12,
 205                                                          1<<13,
 206                                                          1<<14,
 207                                                          1<<15,
 208                                                          1<<16,
 209                                                          1<<17,
 210                                                          1<<18,
 211                                                          1<<19,
 212                                                          1<<20,
 213                                                          1<<21,
 214                                                          1<<22,
 215                                                          1<<23,
 216                                                          1<<24,
 217                                                          1<<25,
 218                                                          1<<26,
 219                                                          1<<27,
 220                                                          1<<28,
 221                                                          1<<29,
 222                                                          1<<30,
 223                                                          1<<31 };
 224 
 225     public static final int AnyModifier = (1<<15) ; /* used in GrabButton, GrabKey */
 226 
 227 
 228     /* button names. Used as arguments to GrabButton and as detail in ButtonPress
 229        and ButtonRelease events.  Not to be confused with button masks above.
 230        Note that 0 is already defined above as "AnyButton".  */
 231 
 232     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};
 233 
 234     /* Notify modes */
 235 
 236     public static final int NotifyNormal = 0 ;
 237     public static final int NotifyGrab = 1 ;
 238     public static final int NotifyUngrab = 2 ;
 239     public static final int NotifyWhileGrabbed = 3 ;
 240 
 241     public static final int NotifyHint = 1 ; /* for MotionNotify events */
 242 
 243     /* Notify detail */
 244 




 113     public static final long PointerMotionMask = (1L<<6) ;
 114     public static final long PointerMotionHintMask = (1L<<7) ;
 115     public static final long Button1MotionMask = (1L<<8) ;
 116     public static final long Button2MotionMask = (1L<<9) ;
 117     public static final long Button3MotionMask = (1L<<10) ;
 118     public static final long Button4MotionMask = (1L<<11) ;
 119     public static final long Button5MotionMask = (1L<<12) ;
 120     public static final long ButtonMotionMask = (1L<<13) ;
 121     public static final long KeymapStateMask = (1L<<14) ;
 122     public static final long ExposureMask = (1L<<15) ;
 123     public static final long VisibilityChangeMask = (1L<<16) ;
 124     public static final long StructureNotifyMask = (1L<<17) ;
 125     public static final long ResizeRedirectMask = (1L<<18) ;
 126     public static final long SubstructureNotifyMask = (1L<<19) ;
 127     public static final long SubstructureRedirectMask = (1L<<20) ;
 128     public static final long FocusChangeMask = (1L<<21) ;
 129     public static final long PropertyChangeMask = (1L<<22) ;
 130     public static final long ColormapChangeMask = (1L<<23) ;
 131     public static final long OwnerGrabButtonMask = (1L<<24) ;
 132 
 133     public static final int MAX_BUTTON_MASK = 5;
 134     public static final int ALL_BUTTONS_MASK = (int) (Button1MotionMask | Button2MotionMask | Button3MotionMask | Button4MotionMask | Button5MotionMask);
 135 
 136     /* Event names.  Used in "type" field in XEvent structures.  Not to be
 137     confused with event masks above.  They start from 2 because 0 and 1
 138     are reserved in the protocol for errors and replies. */
 139 
 140     public static final int KeyPress = 2 ;
 141     public static final int KeyRelease = 3 ;
 142     public static final int ButtonPress = 4 ;
 143     public static final int ButtonRelease = 5 ;
 144     public static final int MotionNotify = 6 ;
 145     public static final int EnterNotify = 7 ;
 146     public static final int LeaveNotify = 8 ;
 147     public static final int FocusIn = 9 ;
 148     public static final int FocusOut = 10 ;
 149     public static final int KeymapNotify = 11 ;
 150     public static final int Expose = 12 ;
 151     public static final int GraphicsExpose = 13 ;
 152     public static final int NoExpose = 14 ;
 153     public static final int VisibilityNotify = 15 ;
 154     public static final int CreateNotify = 16 ;
 155     public static final int DestroyNotify = 17 ;


 180     public static final int LockMask = (1<<1) ;
 181     public static final int ControlMask = (1<<2) ;
 182     public static final int Mod1Mask = (1<<3) ;
 183     public static final int Mod2Mask = (1<<4) ;
 184     public static final int Mod3Mask = (1<<5) ;
 185     public static final int Mod4Mask = (1<<6) ;
 186     public static final int Mod5Mask = (1<<7) ;
 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