gnu.x11.event
Class Input
java.lang.Object
gnu.x11.event.Event
gnu.x11.event.Input
- Direct Known Subclasses:
- ButtonPress, ButtonRelease, EnterNotify, KeyPress, KeyRelease, LeaveNotify, MotionNotify
public abstract class Input
- extends Event
X input-related event.
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Input
public Input(Display display,
ResponseInputStream in)
- Reads the event from the input stream.
Input
public Input(Display display,
int code)
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