1Tk_QueueWindowEvent(3) Tk Library Procedures Tk_QueueWindowEvent(3)
2
3
4
5______________________________________________________________________________
6
8 Tk_CollapseMotionEvents, Tk_QueueWindowEvent - Add a window event to
9 the Tcl event queue
10
12 #include <tk.h>
13
14 int
15 Tk_CollapseMotionEvents(display, collapse)
16
17 Tk_QueueWindowEvent(eventPtr, position)
18
20 Display *display (in) Display for which to control
21 motion event collapsing.
22
23 int collapse (in) Indicates whether motion
24 events should be collapsed or
25 not.
26
27 XEvent *eventPtr (in) An event to add to the event
28 queue. It is important that
29 all unused fields of the
30 structure be set to zero.
31
32 Tcl_QueuePosition position (in) Where to add the new event in
33 the queue: TCL_QUEUE_TAIL,
34 TCL_QUEUE_HEAD, or
35 TCL_QUEUE_MARK.
36_________________________________________________________________
37
38
40 Tk_QueueWindowEvent places a window event on Tcl's internal event queue
41 for eventual servicing. It creates a Tcl_Event structure, copies the
42 event into that structure, and calls Tcl_QueueEvent to add the event to
43 the queue. When the event is eventually removed from the queue it is
44 processed just like all window events.
45
46 When multiple motion events are received for the same window in rapid
47 succession, they are collapsed by default. This behavior can be con‐
48 trolled with Tk_CollapseMotionEvents. Tk_CollapseMotionEvents always
49 returns the previous value for collapse behavior on the display.
50
51 The position argument to Tk_QueueWindowEvent has the same significance
52 as for Tcl_QueueEvent; see the documentation for Tcl_QueueEvent for
53 details.
54
55
57 callback, clock, handler, modal timeout, events
58
59
60
61Tk 7.5 Tk_QueueWindowEvent(3)