Specifies the type of function passed to gdk_event_handler_set() to handle all GDK events.
event : the GdkEvent to process.
data : user data set when the event handler was installed with gdk_event_handler_set().
|
Sends an X ClientMessage event to a given window.
This could be used for communicating between different applications, though the amount of data is limited to 20 bytes.
event : the GdkEvent to send, which should be a GdkEventClient.
xid : the window to send the X ClientMessage event to.
Returns : non-zero on success.
|
Sends an X ClientMessage event to all toplevel windows.
Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM). If no windows are found with the WM_STATE property set, the message is sent to all children of the root window.
event : the GdkEvent to send, which should be a GdkEventClient.
|
Adds a filter to be called when X ClientMessage events are received.
message_type : the type of ClientMessage events to receive. This will be checked against the message_type field of the XClientMessage event struct.
func : the function to call to process the event.
data : user data to pass to func.
|
Returns non-zero if event debugging output is enabled.
Returns : non-zero if event debugging output is enabled.
|
Sets whether event debugging information is output. Note that GTK+ must be compiled with debugging enabled, i.e. using the '--enable-debug' configure option.
show_events : TRUE to output event debugging information.
See Also
Event Structures
The structs used for each type of event.
Event Structures
Name
Event Structures -- data structures specific to each type of event.
Synopsis
|
Description
The event structs contain data specific to each type of event in GDK.
Note: A common mistake is to forget to set the event mask of a widget so that the required events are received. See gtk_widget_set_events().
Details
union GdkEvent
|
The GdkEvent struct contains a union of all of the event structs, and allows access to the data fields in a number of ways.
The event type is always the first field in all of the event structs, and can always be accessed with the following code, no matter what type of event it is:
|
推荐文章
精彩文章
|