gnu.x11.event
Class Event

java.lang.Object
  extended by gnu.x11.event.Event
Direct Known Subclasses:
CirculateNotify, CirculateRequest, ClientMessage, ColormapNotify, ConfigureNotify, ConfigureRequest, CreateNotify, DestroyNotify, Expose, FocusEvent, GraphicsExpose, GravityNotify, Input, KeymapNotify, MapNotify, MappingNotify, MapRequest, NoExposure, PbufferClobberEvent, Print.AttributeNotifyEvent, Print.PrintNotifyEvent, PropertyNotify, ReparentNotify, ResizeRequest, SelectionClear, SelectionNotify, SelectionRequest, Shape.NotifyEvent, UnmapNotify, VisibilityNotify

public abstract class Event
extends java.lang.Object

The base class for all X events.


Field Summary
static int BUTTON_MOTION_MASK
           
static int BUTTON_PRESS_MASK
           
static int BUTTON_RELEASE_MASK
           
static int BUTTON1_MOTION_MASK
           
static int BUTTON2_MOTION_MASK
           
static int BUTTON3_MOTION_MASK
           
static int BUTTON4_MOTION_MASK
           
static int BUTTON5_MOTION_MASK
           
 int code
          The event code;
static int COLORMAP_CHANGE_MASK
           
 int detail
          Event-specific detail information.
 Display display
          The display from which this event originated.
static int ENTER_WINDOW_MASK
           
static int EXPOSURE_MASK
           
static int FOCUS_CHANGE_MASK
           
static int KEY_PRESS_MASK
           
static int KEY_RELEASE_MASK
           
static int KEYMAP_STATE_MASK
           
static int LAST_MASK_INDEX
           
static int LEAVE_WINDOW_MASK
           
static int NO_EVENT_MASK
           
static int OWNER_GRAB_BUTTON_MASK
           
static int POINTER_MOTION_HINT_MASK
           
static int POINTER_MOTION_MASK
           
static int PROPERTY_CHANGE_MASK
           
static int RESIZE_REDIRECT_MASK
           
 int sequence_number
          The sequence number of the event.
static int STRUCTURE_NOTIFY_MASK
           
static int SUBSTRUCTURE_NOTIFY_MASK
           
static int SUBSTRUCTURE_REDIRECT_MASK
           
static int VISIBILITY_CHANGE_MASK
           
 
Constructor Summary
Event(Display disp, int c)
           
Event(Display display, ResponseInputStream in)
          Reads the event from the input stream.
 
Method Summary
 int code()
           
 int seq_no()
           
 java.lang.String toString()
           
 void write(RequestOutputStream o)
          Writes this event into a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_EVENT_MASK

public static final int NO_EVENT_MASK
See Also:
Constant Field Values

KEY_PRESS_MASK

public static final int KEY_PRESS_MASK
See Also:
Constant Field Values

KEY_RELEASE_MASK

public static final int KEY_RELEASE_MASK
See Also:
Constant Field Values

BUTTON_PRESS_MASK

public static final int BUTTON_PRESS_MASK
See Also:
Constant Field Values

BUTTON_RELEASE_MASK

public static final int BUTTON_RELEASE_MASK
See Also:
Constant Field Values

ENTER_WINDOW_MASK

public static final int ENTER_WINDOW_MASK
See Also:
Constant Field Values

LEAVE_WINDOW_MASK

public static final int LEAVE_WINDOW_MASK
See Also:
Constant Field Values

POINTER_MOTION_MASK

public static final int POINTER_MOTION_MASK
See Also:
Constant Field Values

POINTER_MOTION_HINT_MASK

public static final int POINTER_MOTION_HINT_MASK
See Also:
Constant Field Values

BUTTON1_MOTION_MASK

public static final int BUTTON1_MOTION_MASK
See Also:
Constant Field Values

BUTTON2_MOTION_MASK

public static final int BUTTON2_MOTION_MASK
See Also:
Constant Field Values

BUTTON3_MOTION_MASK

public static final int BUTTON3_MOTION_MASK
See Also:
Constant Field Values

BUTTON4_MOTION_MASK

public static final int BUTTON4_MOTION_MASK
See Also:
Constant Field Values

BUTTON5_MOTION_MASK

public static final int BUTTON5_MOTION_MASK
See Also:
Constant Field Values

BUTTON_MOTION_MASK

public static final int BUTTON_MOTION_MASK
See Also:
Constant Field Values

KEYMAP_STATE_MASK

public static final int KEYMAP_STATE_MASK
See Also:
Constant Field Values

EXPOSURE_MASK

public static final int EXPOSURE_MASK
See Also:
Constant Field Values

VISIBILITY_CHANGE_MASK

public static final int VISIBILITY_CHANGE_MASK
See Also:
Constant Field Values

STRUCTURE_NOTIFY_MASK

public static final int STRUCTURE_NOTIFY_MASK
See Also:
Constant Field Values

RESIZE_REDIRECT_MASK

public static final int RESIZE_REDIRECT_MASK
See Also:
Constant Field Values

SUBSTRUCTURE_NOTIFY_MASK

public static final int SUBSTRUCTURE_NOTIFY_MASK
See Also:
Constant Field Values

SUBSTRUCTURE_REDIRECT_MASK

public static final int SUBSTRUCTURE_REDIRECT_MASK
See Also:
Constant Field Values

FOCUS_CHANGE_MASK

public static final int FOCUS_CHANGE_MASK
See Also:
Constant Field Values

PROPERTY_CHANGE_MASK

public static final int PROPERTY_CHANGE_MASK
See Also:
Constant Field Values

COLORMAP_CHANGE_MASK

public static final int COLORMAP_CHANGE_MASK
See Also:
Constant Field Values

OWNER_GRAB_BUTTON_MASK

public static final int OWNER_GRAB_BUTTON_MASK
See Also:
Constant Field Values

LAST_MASK_INDEX

public static final int LAST_MASK_INDEX
See Also:
Constant Field Values

display

public Display display
The display from which this event originated.


code

public int code
The event code;


detail

public int detail
Event-specific detail information.


sequence_number

public int sequence_number
The sequence number of the event.

Constructor Detail

Event

public Event(Display display,
             ResponseInputStream in)
Reads the event from the input stream.


Event

public Event(Display disp,
             int c)
Method Detail

code

public int code()

seq_no

public int seq_no()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

write

public void write(RequestOutputStream o)
Writes this event into a request. This is used in Window.send_event(boolean, int, Event).

Parameters:
o - the output stream to write to