NAME
TkCollapseMotionEvents, TkQueueWindowEvent - Add a window event to
the Tcl event queueSYNOPSIS
##iinncclluuddee <
int TTkkCCoollllaappsseeMMoottiioonnEEvveennttss(display, collapse) TTkkQQuueeuueeWWiinnddoowwEEvveenntt(eventPtr, position) AARRGGUUMMEENNTTSS Display *display (in) Display for which to control motion event collapsing. int collapse (in) Indicates whether motion events should be collapsed or not. XEvent *eventPtr (in) An event to add to the event queue. TclQueuePosition position (in) Where to add the new event in the queue: TTCCLLQQUUEEUUEETTAAIILL, TTCCLLQQUUEEUUEEHHEEAADD, or TTCCLLQQUUEEUUEEMMAARRKK.> DESCRIPTION
TTkkQQuueeuueeWWiinnddoowwEEvveenntt places a window event on Tcl's internal event queue for eventual servicing. It creates a TclEvent structure, copies the event into that structure, and calls TTccllQQuueeuueeEEvveenntt to add the event to the queue. When the event is eventually removed from the queue it is processed just like all window events. When multiple motion events are received for the same window in rapidsuccession, they are collapsed by default. This behavior can be con-
trolled with TTkkCCoollllaappsseeMMoottiioonnEEvveennttss. TTkkCCoollllaappsseeMMoottiioonnEEvveennttss always returns the previous value for collapse behavior on the display. The position argument to TTkkQQuueeuueeWWiinnddoowwEEvveenntt has the same significance as for TTccllQQuueeuueeEEvveenntt; see the documentation for TTccllQQuueeuueeEEvveenntt for details. KKEEYYWWOORRDDSS callback, clock, handler, modal timeout, events Tk 7.5 TkQueueWindowEvent(3)