Debian Codegraph @

pod/pTk/HandleEvent.pod

raw
1 # Copyright (c) 1990-1992 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk_HandleEvent - invoke event handlers for window system events
11
12 =for category C Programming
13
14 =head1 SYNOPSIS
15
16 B<#include E<lt>tk.hE<gt>>
17
18 B<Tk_HandleEvent>(I<eventPtr>)
19
20 =head1 ARGUMENTS
21
22 =over 4
23
24 =item XEvent *eventPtr (in)
25
26 Pointer to X event to dispatch to relevant handler(s).
27
28 =back
29
30 =head1 DESCRIPTION
31
32 B<Tk_HandleEvent> is a lower-level procedure that deals with window
33 events. It is called by B<Tk_ServiceEvent> (and indirectly by
34 B<Tk_DoOneEvent>), and in a few other cases within Tk.
35 It makes callbacks to any window event
36 handlers (created by calls to B<Tk_CreateEventHandler>)
37 that match I<eventPtr> and then returns. In some cases
38 it may be useful for an application to bypass the Tk event
39 queue and call B<Tk_HandleEvent> directly instead of
40 calling B<Tk_QueueEvent> followed by
41 B<Tk_ServiceEvent>.
42
43 This procedure may be invoked recursively. For example,
44 it is possible to invoke B<Tk_HandleEvent> recursively
45 from a handler called by B<Tk_HandleEvent>. This sort
46 of operation is useful in some modal situations, such
47 as when a
48 notifier has been popped up and an application wishes to
49 wait for the user to click a button in the notifier before
50 doing anything else.
51
52 =head1 KEYWORDS
53
54 callback, event, handler, window