org.gnu.gdk

Class Event

public class Event extends Boxed

Constructor Summary
Event(EventType type)
Create a new event of a given type.
Event(Event event)
Creates a copy of an event.
Method Summary
static booleaneventsPending()
Checks if any events are ready to be processed for any display.
static Eventget()
Checks all open displays for an Event to process, to be processed on, fetching events from the windowing system if necessary.
static EventExposegetGraphicsExpose(Window window)
Waits for a GraphicsExpose or NoExpose event from the X server.
intgetTime()
Returns the timestamp of the event.
static Eventpeek()
If there is an event waiting in the event queue of some open display, returns a copy of it.
static voidput(Event anEvent)
Appends a copy of a given event onto the front of the event queue the event window's display or the default event queue if the event's window is null.

Constructor Detail

Event

public Event(EventType type)
Create a new event of a given type.

Parameters: type

Event

public Event(Event event)
Creates a copy of an event.

Parameters: event

Method Detail

eventsPending

public static boolean eventsPending()
Checks if any events are ready to be processed for any display.

get

public static Event get()
Checks all open displays for an Event to process, to be processed on, fetching events from the windowing system if necessary.

Returns: The next Event to be processed or null if no events are pending.

getGraphicsExpose

public static EventExpose getGraphicsExpose(Window window)

Deprecated: This method is intented for use with deprecated GTK widgets and as such has been deprecated.

Waits for a GraphicsExpose or NoExpose event from the X server.

Parameters: window Window to wait for the events for.

Returns: An EventExpose event if a GraphicsExpose was received or null if a NoExpose event was received.

getTime

public int getTime()
Returns the timestamp of the event.

peek

public static Event peek()
If there is an event waiting in the event queue of some open display, returns a copy of it.

Returns: A copy of the first Event on some event queue or null if no events are in any queue.

put

public static void put(Event anEvent)
Appends a copy of a given event onto the front of the event queue the event window's display or the default event queue if the event's window is null.

Parameters: anEvent