gnu.x11.event
Class Input

java.lang.Object
  extended by gnu.x11.event.Event
      extended by gnu.x11.event.Input
Direct Known Subclasses:
ButtonPress, ButtonRelease, EnterNotify, KeyPress, KeyRelease, LeaveNotify, MotionNotify

public abstract class Input
extends Event

X input-related event.


Field Summary
 int child_window_id
           
 int event_window_id
           
 int event_x
           
 int event_y
           
 int root_window_id
           
 int root_x
           
 int root_y
           
 boolean same_screen
           
 int state
           
 int time
           
 
Fields inherited from class gnu.x11.event.Event
BUTTON_MOTION_MASK, BUTTON_PRESS_MASK, BUTTON_RELEASE_MASK, BUTTON1_MOTION_MASK, BUTTON2_MOTION_MASK, BUTTON3_MOTION_MASK, BUTTON4_MOTION_MASK, BUTTON5_MOTION_MASK, code, COLORMAP_CHANGE_MASK, detail, display, ENTER_WINDOW_MASK, EXPOSURE_MASK, FOCUS_CHANGE_MASK, KEY_PRESS_MASK, KEY_RELEASE_MASK, KEYMAP_STATE_MASK, LAST_MASK_INDEX, LEAVE_WINDOW_MASK, NO_EVENT_MASK, OWNER_GRAB_BUTTON_MASK, POINTER_MOTION_HINT_MASK, POINTER_MOTION_MASK, PROPERTY_CHANGE_MASK, RESIZE_REDIRECT_MASK, sequence_number, STRUCTURE_NOTIFY_MASK, SUBSTRUCTURE_NOTIFY_MASK, SUBSTRUCTURE_REDIRECT_MASK, VISIBILITY_CHANGE_MASK
 
Constructor Summary
Input(Display display, int code)
           
Input(Display display, ResponseInputStream in)
          Reads the event from the input stream.
 
Method Summary
 int child_id()
           
 Window child()
           
 int detail()
           
 int event_x()
           
 int event_y()
           
 int root_id()
           
 int root_x()
           
 int root_y()
           
 Window root()
           
 boolean same_screen()
           
 void set_detail(int d)
           
 void set_state(int s)
           
 void set_window(Window w)
           
 int state()
           
 void write(RequestOutputStream o)
          Writes this event into a request.
 
Methods inherited from class gnu.x11.event.Event
code, seq_no, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

time

public int time

root_window_id

public int root_window_id

event_window_id

public int event_window_id

child_window_id

public int child_window_id

root_x

public int root_x

root_y

public int root_y

event_x

public int event_x

event_y

public int event_y

state

public int state

same_screen

public boolean same_screen
Constructor Detail

Input

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


Input

public Input(Display display,
             int code)
Method Detail

detail

public int detail()

root_id

public int root_id()

child_id

public int child_id()

root_x

public int root_x()

root_y

public int root_y()

event_x

public int event_x()

event_y

public int event_y()

state

public int state()

same_screen

public boolean same_screen()

root

public Window root()

child

public Window child()

set_window

public void set_window(Window w)

set_detail

public void set_detail(int d)

set_state

public void set_state(int s)

write

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

Overrides:
write in class Event
Parameters:
o - the output stream to write to