org.gnu.gdk

Class Event


public class Event
extends Boxed

Field Summary

Fields inherited from class org.gnu.glib.Boxed

handle

Constructor Summary

Event(Event event)
Creates a copy of an event.
Event(EventType type)
Create a new event of a given type.
Event(Handle handle)

Method Summary

static boolean
eventsPending()
Checks if any events are ready to be processed for any display.
protected void
finalize()
protected static Handle
gdk_event_copy(Handle event)
protected static void
gdk_event_free(Handle event)
protected static Handle
gdk_event_get()
protected static boolean
gdk_event_get_axis(Handle event, int axisUse, double[] value)
protected static boolean
gdk_event_get_coords(Handle event, double[] xWin, double[] yWin)
protected static Handle
gdk_event_get_graphics_expose(Handle window)
protected static boolean
gdk_event_get_root_coords(Handle event, double[] xRoot, double[] yRoot)
protected static int
gdk_event_get_time(Handle event)
protected static Handle
gdk_event_new(int type)
protected static Handle
gdk_event_peek()
protected static void
gdk_event_put(Handle event)
protected static boolean
gdk_events_pending()
static Event
get()
Checks all open displays for an Event to process, to be processed on, fetching events from the windowing system if necessary.
static EventExpose
getGraphicsExpose(Window window)
Waits for a GraphicsExpose or NoExpose event from the X server.
int
getTime()
Returns the timestamp of the event.
protected static int
getType(Handle obj)
static Event
peek()
If there is an event waiting in the event queue of some open display, returns a copy of it.
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.

Methods inherited from class org.gnu.glib.Boxed

equals, getHandle, hashCode, setHandle

Constructor Details

Event

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

Parameters:
event -


Event

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

Parameters:
type -


Event

public Event(Handle handle)

Method Details

eventsPending

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


finalize

protected void finalize()
            throws Throwable


gdk_event_copy

protected static final Handle gdk_event_copy(Handle event)


gdk_event_free

protected static final void gdk_event_free(Handle event)


gdk_event_get

protected static final Handle gdk_event_get()


gdk_event_get_axis

protected static final boolean gdk_event_get_axis(Handle event,
                                                  int axisUse,
                                                  double[] value)


gdk_event_get_coords

protected static final boolean gdk_event_get_coords(Handle event,
                                                    double[] xWin,
                                                    double[] yWin)


gdk_event_get_graphics_expose

protected static final Handle gdk_event_get_graphics_expose(Handle window)


gdk_event_get_root_coords

protected static final boolean gdk_event_get_root_coords(Handle event,
                                                         double[] xRoot,
                                                         double[] yRoot)


gdk_event_get_time

protected static final int gdk_event_get_time(Handle event)


gdk_event_new

protected static final Handle gdk_event_new(int type)


gdk_event_peek

protected static final Handle gdk_event_peek()


gdk_event_put

protected static final void gdk_event_put(Handle event)


gdk_events_pending

protected static final boolean gdk_events_pending()


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)
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.


getType

protected static final int getType(Handle obj)


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 -