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
39 Tk_QueueWindowEvent places a window event on Tcl's internal event queue
40 for eventual servicing. It creates a Tcl_Event structure, copies the
41 event into that structure, and calls Tcl_QueueEvent to add the event to
42 the queue. When the event is eventually removed from the queue it is
43 processed just like all window events.
44
45 When multiple motion events are received for the same window in rapid
46 succession, they are collapsed by default. This behavior can be con‐
47 trolled with Tk_CollapseMotionEvents. Tk_CollapseMotionEvents always
48 returns the previous value for collapse behavior on the display.
49
50 The position argument to Tk_QueueWindowEvent has the same significance
51 as for Tcl_QueueEvent; see the documentation for Tcl_QueueEvent for
52 details.
53
55 callback, clock, handler, modal timeout, events
56
57
58
59Tk 7.5 Tk_QueueWindowEvent(3)