-
public Event copy ()
Copies a Event, copying or incrementing the reference count
of the resources associated with it (e.g. Window's and strings).
-
public bool get_axis (AxisUse axis_use, out double value)
Extract the axis value for a particular axis use from an event structure.
-
public bool get_coords (out double x_win, out double y_win)
Extract the event window relative x/y coordinates from an event.
-
public bool get_root_coords (out double x_root, out double y_root)
Extract the root window relative x/y coordinates from an event.
-
public weak Screen get_screen ()
Returns the screen for the event. The screen is typically the screen for event->any.window,
but for events such as mouse events, it is the screen where the pointer was when the event occurs - that is, the screen which has the
root window to which event->motion.x_root and event->motion.y_root are relative.
-
public bool get_state (out ModifierType state)
If the event contains a "state" field, puts that field in state. Otherwise stores an empty
state (0). Returns true if there was a state field in the event. event may be null, in which
case it's treated as if the event had no state field.
-
public uint32 get_time ()
Returns the time stamp from event, if there is one; otherwise returns
CURRENT_TIME. If event is null, returns
CURRENT_TIME.
-
public void put ()
Appends a copy of the given event onto the front of the event queue for event->any.window's display,
or the default event queue if event->any.window is null. See
put_event.
-
public bool send_client_message (NativeWindow winid)
Sends an X ClientMessage event to a given window (which must be on the default
Display.) This could be used for communicating between different applications, though the
amount of data is limited to 20 bytes.
-
public void send_clientmessage_toall ()
Sends an X ClientMessage event to all toplevel windows on the default
Screen.
-
public void set_screen (Screen screen)
Sets the screen for event to screen. The event must have been allocated by
GTK+, for instance, by copy.