1Tk_QueueWindowEvent(3)       Tk Library Procedures      Tk_QueueWindowEvent(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_CollapseMotionEvents,  Tk_QueueWindowEvent  -  Add a window event to
9       the Tcl event queue
10

SYNOPSIS

12       #include <tk.h>
13
14       int
15       Tk_CollapseMotionEvents(display, collapse)
16
17       Tk_QueueWindowEvent(eventPtr, position)
18

ARGUMENTS

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.
29
30       Tcl_QueuePosition position (in)          Where to add the new event  in
31                                                the   queue:   TCL_QUEUE_TAIL,
32                                                TCL_QUEUE_HEAD,             or
33                                                TCL_QUEUE_MARK.
34_________________________________________________________________
35
36

DESCRIPTION

38       Tk_QueueWindowEvent places a window event on Tcl's internal event queue
39       for eventual servicing.  It creates a Tcl_Event structure,  copies  the
40       event into that structure, and calls Tcl_QueueEvent to add the event to
41       the queue.  When the event is eventually removed from the queue  it  is
42       processed just like all window events.
43
44       When  multiple  motion events are received for the same window in rapid
45       succession, they are collapsed by default.  This behavior can  be  con‐
46       trolled  with  Tk_CollapseMotionEvents.  Tk_CollapseMotionEvents always
47       returns the previous value for collapse behavior on the display.
48
49       The position argument to Tk_QueueWindowEvent has the same  significance
50       as  for  Tcl_QueueEvent;   see the documentation for Tcl_QueueEvent for
51       details.
52
53

KEYWORDS

55       callback, clock, handler, modal timeout, events
56
57
58
59Tk                                    7.5               Tk_QueueWindowEvent(3)
Impressum